Lines Matching defs:font
19 #include "font-substitution.h"
45 #include "libnrtype/font-instance.h"
66 int show_dlg = prefs->getInt("/options/font/substitutedlg", 0);
123 prefs->setInt("/options/font/substitutedlg", 0);
218 // CSS font fallbacks can have more that one font listed, split the font list
222 Glib::ustring font = vFonts[i];
224 size_t startpos = font.find_first_not_of(" \n\r\t");
225 size_t endpos = font.find_last_not_of(" \n\r\t");
227 continue; // empty font name
229 font = font.substr( startpos, endpos-startpos+1 );
230 std::set<Glib::ustring>::const_iterator iter = setFontSpans.find(font);
232 font == Glib::ustring("sans-serif") ||
233 font == Glib::ustring("Sans") ||
234 font == Glib::ustring("serif") ||
235 font == Glib::ustring("Serif") ||
236 font == Glib::ustring("monospace") ||
237 font == Glib::ustring("Monospace")) {
262 Glib::ustring FontSubstitution::getSubstituteFontName (Glib::ustring font)
264 Glib::ustring out = font;
267 pango_font_description_set_family(descr,font.c_str());