| 2553 | #if (USE_BITMAP_FONTS==1) |
| 2554 | |
| 2555 | LVFontRef LoadFontFromFile( const char * fname ) |
| 2556 | { |
| 2557 | LVFontRef ref; |
| 2558 | LBitmapFont * font = new LBitmapFont; |
| 2559 | if (font->LoadFromFile( fname ) ) |
| 2560 | { |
| 2561 | ref = font; |
| 2562 | } |
| 2563 | else |
| 2564 | { |
| 2565 | delete font; |
| 2566 | } |
| 2567 | return ref; |
| 2568 | } |
| 2569 | |
| 2570 | #endif |
| 2571 |
no test coverage detected