Home | History | Annotate | Download | only in gfx

Lines Matching defs:hfont

66 void GetTextMetricsForFont(HDC hdc, HFONT font, TEXTMETRIC* text_metrics) {
126 HFONT hfont = CreateFontIndirect(&font_info);
127 return DeriveWithCorrectedSize(hfont);
140 HFONT hfont = CreateFontIndirect(&font_info);
141 return Font(new PlatformFontWin(CreateHFontRef(hfont)));
171 // the font name taken from the HFONT handle, but it's not the name that comes
183 base::win::ScopedSelectObject font(memory_dc.Get(), font_ref_->hfont());
203 return font_ref_->hfont();
209 void PlatformFontWin::InitWithCopyOfHFONT(HFONT hfont) {
210 DCHECK(hfont);
212 GetObject(hfont, sizeof(LOGFONT), &font_info);
218 HFONT hf = ::CreateFont(-font_size, 0, 0, 0, FW_DONTCARE, FALSE, FALSE, FALSE,
238 HFONT font = CreateFontIndirect(&metrics.lfMessageFont);
247 PlatformFontWin::HFontRef* PlatformFontWin::CreateHFontRef(HFONT font) {
260 HFONT font,
281 Font PlatformFontWin::DeriveWithCorrectedSize(HFONT base_font) {
285 base::win::ScopedGDIObject<HFONT> best_font(base_font);
300 base::win::ScopedGDIObject<HFONT> font(CreateFontIndirect(&font_info));
318 PlatformFontWin::HFontRef::HFontRef(HFONT hfont,
325 : hfont_(hfont),
334 DLOG_ASSERT(hfont);