/external/chromium_org/third_party/WebKit/Source/core/platform/graphics/win/ |
FontCustomPlatformDataWin.cpp | 106 HFONT hfont = CreateFontIndirect(&logFont); local 107 return FontPlatformData(hfont, size, orientation); 121 // font namespace (Windows has no API for creating an HFONT from data without exposing the font to the
|
/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/third_party/WebKit/Source/core/platform/graphics/chromium/ |
FontPlatformDataChromiumWin.h | 52 typedef struct HFONT__ *HFONT; 56 // Return a typeface associated with the hfont, and return its size and 57 // lfQuality from the hfont's LOGFONT. 58 PassRefPtr<SkTypeface> CreateTypefaceFromHFont(HFONT, int* size, int* paintTextFlags); 71 // This constructor takes ownership of the HFONT 72 FontPlatformData(HFONT, float size, FontOrientation); 88 HFONT hfont() const { return m_font ? m_font->hfont() : 0; } function in class:WebCore::FontPlatformData 118 static bool ensureFontLoaded(HFONT); 133 HFONT hfont() const { return m_hfont; } function in class:WebCore::FontPlatformData::RefCountedHFONT [all...] |
SimpleFontDataChromiumWin.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(), false); 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...] |
FontUtilsChromiumWin.cpp | 50 HFONT hfont = CreateFont(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, local 52 if (!hfont) 55 HGDIOBJ oldFont = static_cast<HFONT>(SelectObject(dc, hfont)); 60 DeleteObject(hfont); 240 // Given an HFONT, return the ascent. If GetTextMetrics fails, 242 int getAscent(HFONT hfont) 245 HGDIOBJ oldFont = SelectObject(dc, hfont); 274 HFONT hfont; member in struct:WebCore::__anon12686::FontData [all...] |
FontCacheChromiumWin.cpp | 236 static HFONT createFontIndirectAndGetWinName(const String& family, LOGFONT* winfont, String* winName) 241 HFONT hfont = CreateFontIndirect(winfont); local 242 if (!hfont) 246 HGDIOBJ oldFont = static_cast<HFONT>(SelectObject(dc, hfont)); 254 return hfont; 281 HFONT hfont = fontData->hfont(); 622 HFONT hfont = createFontIndirectAndGetWinName(family, &winfont, &winName); local [all...] |
UniscribeHelper.cpp | 83 // HFONT is the 'incarnation' of 'everything' about font, but it's an opaque 84 // handle and we can't directly query it to make a new HFONT sharing 86 // This function uses GetObject to convert HFONT back to LOGFONT, 88 // for the creation of a font identical to HFONT other than family name. 89 static void setLogFontAndStyle(HFONT hfont, LOGFONT *logfont, int *style) 91 ASSERT(hfont && logfont); 92 if (!hfont || !logfont) 95 GetObject(hfont, sizeof(LOGFONT), logfont); 98 // a new font similar to hfont 597 HFONT hfont = m_hfont; local [all...] |
/external/chromium_org/ui/base/l10n/ |
l10n_util_win.cc | 47 HFONT hfont = CreateFont(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, local 49 if (hfont == NULL) 52 HGDIOBJ oldFont = static_cast<HFONT>(SelectObject(dc, hfont)); 57 DeleteObject(hfont); 174 HFONT hfont = CreateFontIndirect(&logfont); local 175 if (hfont) 176 SetWindowFont(hwnd, hfont, FALSE) [all...] |
/external/chromium_org/ui/gfx/ |
platform_font_win.h | 72 // HFONT (an opaque handle into Windows). To avoid lots of GDI object 73 // allocation and destruction, Font indirectly refers to the HFONT by way of 74 // an HFontRef. That is, every Font has an HFontRef, which has an HFONT. 76 // HFontRef is reference counted. Upon deletion, it deletes the HFONT. 77 // By making HFontRef maintain the reference to the HFONT, multiple 78 // HFontRefs can share the same HFONT, and Font can provide value semantics. 81 // This constructor takes control of the HFONT, and will delete it when 83 HFontRef(HFONT hfont, 91 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))); 173 base::win::ScopedSelectObject font(memory_dc, font_ref_->hfont()); 187 return font_ref_->hfont(); 193 void PlatformFontWin::InitWithCopyOfHFONT(HFONT hfont) { [all...] |
/external/chromium_org/third_party/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/ui/views/widget/ |
tooltip_manager_win.cc | 48 HFONT hfont = reinterpret_cast<HFONT>(SendMessage(window, WM_GETFONT, 0, 0)); 49 gfx::Font font = hfont ? gfx::Font(hfont) : gfx::Font(); 255 HFONT hfont = reinterpret_cast<HFONT>( local 257 if (hfont != NULL) { 259 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;
|