Commit 16b36087 authored by Pino Toscano's avatar Pino Toscano
Browse files

dvi: fix build without freetype

always use the "no full font" case for this build configuration
parent 94daa325
......@@ -425,6 +425,7 @@ Okular::FontInfo::List DviGenerator::fontsForPage( int page )
Okular::FontInfo of;
QString name;
int zoom = (int)(font->enlargement*100 + 0.5);
#ifdef HAVE_FREETYPE
if ( font->getFullFontName().isEmpty() )
{
name = QString( "%1, %2%" )
......@@ -438,6 +439,11 @@ Okular::FontInfo::List DviGenerator::fontsForPage( int page )
.arg( font->getFullFontName() )
.arg( zoom );
}
#else
name = QString( "%1, %2%" )
.arg( font->fontname )
.arg( zoom );
#endif
of.setName( name );
QString fontFileName;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment