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

Method LoadFromFile

crengine/src/lvfntman.cpp:2787–2797  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2785 return true;
2786}
2787int LBitmapFont::LoadFromFile( const char * fname )
2788{
2789 Clear();
2790 int res = (void*)lvfontOpen( fname, &m_font )!=NULL;
2791 if (!res)
2792 return 0;
2793 lvfont_header_t * hdr = (lvfont_header_t*) m_font;
2794 _typeface = lString8( hdr->fontName );
2795 _family = (css_font_family_t) hdr->fontFamily;
2796 return 1;
2797}
2798#endif
2799
2800LVFontCacheItem * LVFontCache::findDuplicate( const LVFontDef * def )

Callers 2

GetFontMethod · 0.80
LoadFontFromFileFunction · 0.80

Calls 2

lvfontOpenFunction · 0.85
lString8Class · 0.85

Tested by

no test coverage detected