Changeset View
Changeset View
Standalone View
Standalone View
generators/poppler/generator_pdf.cpp
Show First 20 Lines • Show All 936 Lines • ▼ Show 20 Line(s) | 936 | if (it->hasNext()) { | |||
---|---|---|---|---|---|
937 | fonts = it->next(); | 937 | fonts = it->next(); | ||
938 | } | 938 | } | ||
939 | userMutex()->unlock(); | 939 | userMutex()->unlock(); | ||
940 | 940 | | |||
941 | foreach (const Poppler::FontInfo &font, fonts) | 941 | foreach (const Poppler::FontInfo &font, fonts) | ||
942 | { | 942 | { | ||
943 | Okular::FontInfo of; | 943 | Okular::FontInfo of; | ||
944 | of.setName( font.name() ); | 944 | of.setName( font.name() ); | ||
945 | #ifdef HAVE_POPPLER_0_80 | ||||
946 | of.setSubstituteName( font.substituteName() ); | ||||
947 | #endif | ||||
945 | of.setType( convertPopplerFontInfoTypeToOkularFontInfoType( font.type() ) ); | 948 | of.setType( convertPopplerFontInfoTypeToOkularFontInfoType( font.type() ) ); | ||
946 | of.setEmbedType( embedTypeForPopplerFontInfo( font) ); | 949 | of.setEmbedType( embedTypeForPopplerFontInfo( font) ); | ||
947 | of.setFile( font.file() ); | 950 | of.setFile( font.file() ); | ||
948 | of.setCanBeExtracted( of.embedType() != Okular::FontInfo::NotEmbedded ); | 951 | of.setCanBeExtracted( of.embedType() != Okular::FontInfo::NotEmbedded ); | ||
949 | 952 | | |||
950 | QVariant nativeId; | 953 | QVariant nativeId; | ||
951 | nativeId.setValue( font ); | 954 | nativeId.setValue( font ); | ||
952 | of.setNativeId( nativeId ); | 955 | of.setNativeId( nativeId ); | ||
▲ Show 20 Lines • Show All 1122 Lines • Show Last 20 Lines |