Home | History | Annotate | Download | only in win

Lines Matching refs:hfont

82 static int CALLBACK linkedFontEnumProc(CONST LOGFONT* logFont, CONST TEXTMETRIC* metrics, DWORD fontType, LPARAM hfont)
84 *reinterpret_cast<HFONT*>(hfont) = CreateFontIndirect(logFont);
175 static HFONT createMLangFont(IMLangFontLink2* langFontLink, HDC hdc, DWORD codePageMask, UChar character = 0)
177 HFONT MLangFont;
178 HFONT hfont = 0;
183 hfont = CreateFontIndirect(&lf);
185 return hfont;
193 HFONT primaryFont = font.primaryFont()->fontDataForCharacter(character)->platformData().hfont();
195 HFONT hfont = 0;
208 for (unsigned i = 0; i < numCodePages && !hfont; ++i) {
209 hfont = createMLangFont(langFontLink, hdc, CJKCodePageMasks[i]);
210 if (hfont && !(codePages & CJKCodePageMasks[i])) {
213 SelectObject(hdc, hfont);
215 DeleteObject(hfont);
216 hfont = 0;
222 hfont = createMLangFont(langFontLink, hdc, codePages, character);
226 bool containsCharacter = hfont;
228 if (!hfont) {
250 hfont = CreateFontIndirect(&logFont);
258 while (hfont) {
259 SelectObject(hdc, hfont);
270 DeleteObject(hfont);
271 hfont = 0;
280 EnumFontFamiliesEx(hdc, &logFont, linkedFontEnumProc, reinterpret_cast<LPARAM>(&hfont), 0);
284 if (hfont) {
292 DeleteObject(hfont);
341 if (HFONT defaultGUIFont = static_cast<HFONT>(GetStockObject(DEFAULT_GUI_FONT))) {
448 static HFONT createGDIFont(const AtomicString& family, LONG desiredWeight, bool desiredItalic, int size, bool synthesizeItalic)
485 HFONT result = CreateFontIndirect(&matchData.m_chosen);
563 // This masks rounding errors related to the HFONT metrics being different from the CGFont metrics.
567 HFONT hfont = createGDIFont(family, weight, fontDescription.italic(),
570 if (!hfont)
577 GetObject(hfont, sizeof(LOGFONT), &logFont);
582 FontPlatformData* result = new FontPlatformData(hfont, fontDescription.computedPixelSize(), synthesizeBold, synthesizeItalic, useGDI);
595 DeleteObject(hfont);