----------------------------------------------------------------------------- Font reading callbacks. -----------------------------------------------------------------------------
| 406 | // Font reading callbacks. |
| 407 | //----------------------------------------------------------------------------- |
| 408 | FT_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 |
| 423 | inline int GetBit( uint8_t* line, int bit ) |
nothing calls this directly
no test coverage detected