MCPcopy Create free account
hub / github.com/buggins/coolreader / LoadFontFromFile

Function LoadFontFromFile

crengine/src/lvfntman.cpp:2555–2568  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2553#if (USE_BITMAP_FONTS==1)
2554
2555LVFontRef 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

Callers 1

OnBtnChooseFontMethod · 0.85

Calls 1

LoadFromFileMethod · 0.80

Tested by

no test coverage detected