Home | History | Annotate | Download | only in chromium

Lines Matching refs:hfont

49     HFONT hfont = CreateFont(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
51 if (!hfont)
54 HGDIOBJ oldFont = static_cast<HFONT>(SelectObject(dc, hfont));
59 DeleteObject(hfont);
240 // Given an HFONT, return the ascent. If GetTextMetrics fails,
242 int getAscent(HFONT hfont)
245 HGDIOBJ oldFont = SelectObject(dc, hfont);
253 WORD getSpaceGlyph(HFONT hfont)
256 HGDIOBJ oldFont = SelectObject(dc, hfont);
267 : hfont(0)
274 HFONT hfont;
395 HFONT* hfont,
421 derived->hfont = CreateFontIndirect(logfont);
424 // more for HFONT next time.
425 derived->ascent = getAscent(derived->hfont);
426 derived->spaceGlyph = getSpaceGlyph(derived->hfont);
429 // Last time, GetAscent failed so that only HFONT was
433 derived->ascent = getAscent(derived->hfont);
435 *hfont = derived->hfont;