42 if (!m_identifier)
43 return;
44
45 QHash <String, QFont::StyleHint> qFontHint;
46
47 qFontHint["StandardFontFamily"] = QFont::Serif;
48 qFontHint["CursiveFontFamily"] = QFont::Cursive;
49 qFontHint["FantasyFontFamily"] = QFont::Fantasy;
50 qFontHint["FixedFontFamily"] = QFont::Monospace;
51 qFontHint["SansSerifFontFamily"] = QFont::SansSerif;
52 qFontHint["SerifFontFamily"] = QFont::Serif;
53 qFontHint["PictographFontFamily"] = QFont::Serif;
54
55#define INITIALIZE_PREFERENCE_FROM_NSUSERDEFAULTS(KeyUpper, KeyLower, TypeName, Type, DefaultValue) \
56 set##TypeName##ValueIfInUserDefaults(WebPreferencesKey::KeyLower##Key(), m_store, qFontHint);
57
58 FOR_EACH_WEBKIT_FONT_FAMILY_PREFERENCE(INITIALIZE_PREFERENCE_FROM_NSUSERDEFAULTS)
59
60#undef INITIALIZE_PREFERENCE_FROM_NSUSERDEFAULTS