MCPcopy Create free account
hub / github.com/carbonengine/trinity / FaceRequester

Method FaceRequester

trinity/Font/Tr2FontManager.cpp:408–420  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Font reading callbacks. -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

406// Font reading callbacks.
407//-----------------------------------------------------------------------------
408FT_Error Tr2FontManager::FaceRequester( FTC_FaceID face_id, FT_Library library, FT_Pointer request_data, FT_Face* aface )
409{
410 Tr2FontManager* fm = reinterpret_cast<Tr2FontManager*>( request_data );
411
412 *aface = fm->LoadFromDisk( face_id );
413 if( *aface == NULL )
414 {
415 // Font wasn't found, or otherwise failed to load
416 return -1;
417 }
418
419 return 0;
420}
421
422//A function to get the bit value from a b/w bitmap
423inline int GetBit( uint8_t* line, int bit )

Callers

nothing calls this directly

Calls 1

LoadFromDiskMethod · 0.80

Tested by

no test coverage detected