/external/chromium_org/third_party/WebKit/Source/platform/fonts/win/ |
FontCustomPlatformDataWin.cpp | 105 HFONT hfont = CreateFontIndirect(&logFont); local 106 return FontPlatformData(hfont, size, orientation); 120 // font namespace (Windows has no API for creating an HFONT from data without exposing the font to the
|
SimpleFontDataWin.cpp | 59 HGDIOBJ oldFont = SelectObject(dc, m_platformData.hfont()); 63 if (FontPlatformData::ensureFontLoaded(m_platformData.hfont())) { 114 GetObject(m_platformData.hfont(), sizeof(LOGFONT), &winFont); 117 HFONT hfont = CreateFontIndirect(&winFont); local 118 return SimpleFontData::create(FontPlatformData(hfont, scaledSize, m_platformData.orientation()), isCustomFont() ? CustomFontData::create(false) : 0); 137 HGDIOBJ oldFont = SelectObject(hdc, m_platformData.hfont()); 142 if (FontPlatformData::ensureFontLoaded(m_platformData.hfont())) { 163 HGDIOBJ oldFont = SelectObject(dc, m_platformData.hfont()); 168 if (FontPlatformData::ensureFontLoaded(m_platformData.hfont())) { [all...] |
FontFallbackWin.cpp | 48 HFONT hfont = CreateFont(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, fontName); local 49 if (!hfont) 52 HGDIOBJ oldFont = static_cast<HFONT>(SelectObject(dc, hfont)); 57 DeleteObject(hfont);
|
FontPlatformDataWin.h | 51 typedef struct HFONT__ *HFONT; 55 // Return a typeface associated with the hfont, and return its size and 56 // lfQuality from the hfont's LOGFONT. 57 PassRefPtr<SkTypeface> CreateTypefaceFromHFont(HFONT, int* size, int* paintTextFlags); 73 // This constructor takes ownership of the HFONT 74 FontPlatformData(HFONT, float size, FontOrientation); 94 HFONT hfont() const { return m_font ? m_font->hfont() : 0; } function in class:WebCore::FontPlatformData 128 static bool ensureFontLoaded(HFONT); 147 HFONT hfont() const { return m_hfont; } function in class:WebCore::FontPlatformData::RefCountedHFONT [all...] |
FontCacheWin.cpp | 235 static HFONT createFontIndirectAndGetWinName(const String& family, LOGFONT* winfont, String* winName) 240 HFONT hfont = CreateFontIndirect(winfont); local 241 if (!hfont) 245 HGDIOBJ oldFont = static_cast<HFONT>(SelectObject(dc, hfont)); 253 return hfont; 280 HFONT hfont = fontData->hfont(); 571 HFONT hfont = createFontIndirectAndGetWinName(family, &winfont, &winName); local [all...] |
UniscribeHelper.cpp | 103 // HFONT is the 'incarnation' of 'everything' about font, but it's an opaque 104 // handle and we can't directly query it to make a new HFONT sharing 106 // This function uses GetObject to convert HFONT back to LOGFONT, 108 // for the creation of a font identical to HFONT other than family name. 109 static void setLogFontAndStyle(HFONT hfont, LOGFONT *logfont, int *style) 111 ASSERT(hfont && logfont); 112 if (!hfont || !logfont) 115 GetObject(hfont, sizeof(LOGFONT), logfont); 118 // a new font similar to hfont 646 HFONT hfont; member in struct:WebCore::ShaperFontData 735 HFONT hfont = m_hfont; local [all...] |
/external/chromium_org/third_party/WebKit/Source/web/tests/ |
UniscribeHelperTest.cpp | 48 // Returns an HFONT with the given name. The caller does not have to free 51 HFONT MakeFont(const wchar_t* fontName, SCRIPT_CACHE** cache) 58 HFONT hfont = CreateFontIndirect(&lf); local 59 if (!hfont) 64 createdFonts.append(std::make_pair(hfont, *cache)); 65 return hfont; 95 Vector< std::pair<HFONT, SCRIPT_CACHE*> > createdFonts; 110 HFONT hfont = MakeFont(L"Times New Roman", &scriptCache) local [all...] |
/external/chromium_org/ui/base/l10n/ |
l10n_util_win.cc | 48 HFONT hfont = CreateFont(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, local 50 if (hfont == NULL) 53 HGDIOBJ oldFont = static_cast<HFONT>(SelectObject(dc, hfont)); 58 DeleteObject(hfont); 180 HFONT hfont = CreateFontIndirect(&logfont); local 181 if (hfont) 182 SetWindowFont(hwnd, hfont, FALSE) [all...] |
/external/chromium_org/ui/gfx/ |
platform_font_win.h | 74 // HFONT (an opaque handle into Windows). To avoid lots of GDI object 75 // allocation and destruction, Font indirectly refers to the HFONT by way of 76 // an HFontRef. That is, every Font has an HFontRef, which has an HFONT. 78 // HFontRef is reference counted. Upon deletion, it deletes the HFONT. 79 // By making HFontRef maintain the reference to the HFONT, multiple 80 // HFontRefs can share the same HFONT, and Font can provide value semantics. 83 // This constructor takes control of the HFONT, and will delete it when 85 HFontRef(HFONT hfont, 94 HFONT hfont() const { return hfont_; function in class:gfx::PlatformFontWin::HFontRef [all...] |
platform_font_win.cc | 118 HFONT hfont = CreateFontIndirect(&font_info); local 119 return Font(new PlatformFontWin(CreateHFontRef(hfont))); 132 HFONT hfont = CreateFontIndirect(&font_info); local 133 return Font(new PlatformFontWin(CreateHFontRef(hfont))); 172 // the font name taken from the HFONT handle, but it's not the name that comes 184 base::win::ScopedSelectObject font(memory_dc, font_ref_->hfont()); 198 return font_ref_->hfont(); 204 void PlatformFontWin::InitWithCopyOfHFONT(HFONT hfont) [all...] |
/external/chromium_org/ui/views/widget/ |
tooltip_manager_win.cc | 91 HFONT hfont = reinterpret_cast<HFONT>(SendMessage(window, WM_GETFONT, 0, 0)); 92 gfx::Font font = hfont ? gfx::Font(hfont) : gfx::Font(); 285 HFONT hfont = reinterpret_cast<HFONT>( local 287 if (hfont != NULL) { 289 base::win::ScopedSelectObject font(dc, hfont); [all...] |
/external/harfbuzz_ng/src/ |
hb-uniscribe.cc | 110 HFONT hfont; member in struct:hb_uniscribe_shaper_font_data_t 163 data->hfont = CreateFontIndirectW (&data->log_font); 164 if (unlikely (!data->hfont)) { 170 if (!SelectObject (data->hdc, data->hfont)) { 184 if (data->hfont) 185 DeleteObject (data->hfont); 199 HFONT 204 return font_data->hfont;
|
/external/chromium_org/third_party/harfbuzz-ng/src/ |
hb-uniscribe.cc | 483 HFONT hfont; member in struct:hb_uniscribe_shaper_font_data_t 520 data->hfont = CreateFontIndirectW (&data->log_font); 521 if (unlikely (!data->hfont)) { 527 if (!SelectObject (data->hdc, data->hfont)) { 541 if (data->hfont) 542 DeleteObject (data->hfont); 556 HFONT 561 return font_data->hfont;
|