| 2785 | return true; |
| 2786 | } |
| 2787 | int 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 | |
| 2800 | LVFontCacheItem * LVFontCache::findDuplicate( const LVFontDef * def ) |
no test coverage detected