Lines Matching refs:hfont
171 // Given an HFONT, return the ascent. If GetTextMetrics fails,
173 int getAscent(HFONT hfont)
176 HGDIOBJ oldFont = SelectObject(dc, hfont);
186 : hfont(0)
192 HFONT hfont;
301 HFONT* hfont,
326 derived->hfont = CreateFontIndirect(logfont);
329 // more for HFONT next time.
330 derived->ascent = getAscent(derived->hfont);
333 // Last time, GetAscent failed so that only HFONT was
337 derived->ascent = getAscent(derived->hfont);
339 *hfont = derived->hfont;