HomeSort by relevance Sort by last modified time
    Searched refs:hfont (Results 1 - 18 of 18) sorted by null

  /external/chromium_org/third_party/WebKit/Source/platform/fonts/win/
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...]
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...]
UniscribeHelperTextRun.cpp 44 font.primaryFont()->platformData().hfont(),
77 HFONT hfont,
80 : UniscribeHelper(input, inputLength, isRtl, hfont,
87 void UniscribeHelperTextRun::tryToPreloadFont(HFONT font)
96 HFONT& hfont,
131 m_hfonts.append(simpleFontData->platformData().hfont());
138 hfont = m_hfonts[m_fontIndex - 1];
UniscribeHelperTextRun.h 56 HFONT hfont,
61 virtual void tryToPreloadFont(HFONT);
64 // This function retrieves the Windows font data (HFONT, etc) for the next
70 virtual bool nextWinFontData(HFONT&, SCRIPT_CACHE*&, SCRIPT_FONTPROPERTIES*&, int& ascent, WORD& spaceGlyph);
90 Vector<HFONT, kNumberOfFonts> m_hfonts;
GlyphPageTreeNodeWin.cpp 55 static bool getGlyphIndices(HFONT font, HDC dc, const UChar* characters, unsigned charactersLength, WORD* glyphBuffer, DWORD flag)
70 static bool initSpaceGlyph(HFONT font, HDC dc, Glyph* spaceGlyph)
87 HGDIOBJ oldFont = SelectObject(dc, fontData->platformData().hfont());
91 if (FontPlatformData::ensureFontLoaded(fontData->platformData().hfont())) {
142 if (!getGlyphIndices(fontData->platformData().hfont(), dc, buffer, length, localGlyphBuffer, GGI_MARK_NONEXISTING_GLYPHS)) {
170 initSpaceGlyph(fontData->platformData().hfont(), dc, &spaceGlyph);
215 fontData->platformData().hfont(),
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...]
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
FontPlatformDataWin.cpp 154 PassRefPtr<SkTypeface> CreateTypefaceFromHFont(HFONT hfont, int* size, int* paintTextFlags)
157 GetObject(hfont, sizeof(info), &info);
203 FontPlatformData::FontPlatformData(HFONT font, float size, FontOrientation orientation)
278 // uses of hfont() has been eliminated.
285 HFONT hFont = CreateFontIndirect(&logFont);
286 m_font = hFont ? RefCountedHFONT::create(hFont) : 0;
324 HGDIOBJ oldFont = static_cast<HFONT>(SelectObject(dc, hfont()))
    [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...]
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);
  /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.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...]
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...]
  /external/chromium_org/third_party/WebKit/Source/platform/fonts/skia/
SkiaFontWin.cpp 106 // FIXME: Only needed to support the HFONT based paintSkiaText
107 // version where a new typeface is created from the HFONT.
108 // As such it can go away once the HFONT code path is removed.
163 HFONT hfont,
176 FontPlatformData::ensureFontLoaded(hfont);
178 RefPtr<SkTypeface> face = CreateTypefaceFromHFont(hfont, &size, &paintTextFlags);
  /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;

Completed in 343 milliseconds