/external/chromium_org/ui/base/l10n/ |
l10n_util_win.cc | 50 HFONT hfont = CreateFont(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, local 52 if (hfont == NULL) 55 HGDIOBJ oldFont = static_cast<HFONT>(SelectObject(dc, hfont)); 60 DeleteObject(hfont); 182 HFONT hfont = CreateFontIndirect(&logfont); local 183 if (hfont) 184 SetWindowFont(hwnd, hfont, FALSE) [all...] |
/external/chromium_org/ui/gfx/ |
platform_font_win.h | 73 // HFONT (an opaque handle into Windows). To avoid lots of GDI object 74 // allocation and destruction, Font indirectly refers to the HFONT by way of 75 // an HFontRef. That is, every Font has an HFontRef, which has an HFONT. 77 // HFontRef is reference counted. Upon deletion, it deletes the HFONT. 78 // By making HFontRef maintain the reference to the HFONT, multiple 79 // HFontRefs can share the same HFONT, and Font can provide value semantics. 82 // This constructor takes control of the HFONT, and will delete it when 84 HFontRef(HFONT hfont, 93 HFONT hfont() const { return hfont_; function in class:gfx::PlatformFontWin::HFontRef [all...] |
platform_font_win.cc | 66 void GetTextMetricsForFont(HDC hdc, HFONT font, TEXTMETRIC* text_metrics) { 126 HFONT hfont = CreateFontIndirect(&font_info); local 127 return DeriveWithCorrectedSize(hfont); 140 HFONT hfont = CreateFontIndirect(&font_info); local 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(); [all...] |
/external/chromium_org/third_party/harfbuzz-ng/src/ |
hb-uniscribe.cc | 481 HFONT hfont; member in struct:hb_uniscribe_shaper_font_data_t 518 data->hfont = CreateFontIndirectW (&data->log_font); 519 if (unlikely (!data->hfont)) { 525 if (!SelectObject (data->hdc, data->hfont)) { 539 if (data->hfont) 540 DeleteObject (data->hfont); 554 HFONT 559 return font_data->hfont;
|
/external/harfbuzz_ng/src/ |
hb-uniscribe.cc | 480 HFONT hfont; member in struct:hb_uniscribe_shaper_font_data_t 517 data->hfont = CreateFontIndirectW (&data->log_font); 518 if (unlikely (!data->hfont)) { 524 if (!SelectObject (data->hdc, data->hfont)) { 538 if (data->hfont) 539 DeleteObject (data->hfont); 553 HFONT 558 return font_data->hfont;
|