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

  /external/webkit/WebKit/chromium/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/webkit/WebCore/platform/graphics/wx/
FontPlatformDataWx.cpp 138 HFONT FontPlatformData::hfont() const function in class:WebCore::FontPlatformData
140 return static_cast<HFONT>(m_font->font()->GetHFONT());
  /external/webkit/WebCore/platform/graphics/chromium/
FontCustomPlatformData.cpp 100 HFONT hfont = CreateFontIndirect(&logFont); local
101 return FontPlatformData(hfont, size);
185 // font namespace (Windows has no API for creating an HFONT from data without exposing the font to the
FontPlatformDataChromiumWin.h 43 typedef struct HFONT__ *HFONT;
59 FontPlatformData(HFONT, float size);
69 HFONT hfont() const { return m_font ? m_font->hfont() : 0; } function in class:WebCore::FontPlatformData
90 // We refcount the internal HFONT so that FontPlatformData can be
92 // don't really want to re-create the HFONT.
95 static PassRefPtr<RefCountedHFONT> create(HFONT hfont)
97 return adoptRef(new RefCountedHFONT(hfont));
102 HFONT hfont() const { return m_hfont; } function in class:WebCore::FontPlatformData::RefCountedHFONT
    [all...]
SimpleFontDataChromiumWin.cpp 57 HGDIOBJ oldFont = SelectObject(dc, m_platformData.hfont());
61 if (ChromiumBridge::ensureFontLoaded(m_platformData.hfont())) {
110 GetObject(m_platformData.hfont(), sizeof(LOGFONT), &winFont);
115 HFONT hfont = CreateFontIndirect(&winFont); local
117 new SimpleFontData(FontPlatformData(hfont, smallCapsSize));
133 HGDIOBJ oldFont = SelectObject(dc, m_platformData.hfont());
139 if (ChromiumBridge::ensureFontLoaded(m_platformData.hfont())) {
157 HGDIOBJ oldFont = SelectObject(dc, m_platformData.hfont());
162 if (ChromiumBridge::ensureFontLoaded(m_platformData.hfont())) {
    [all...]
FontUtilsChromiumWin.cpp 171 // Given an HFONT, return the ascent. If GetTextMetrics fails,
173 int getAscent(HFONT hfont)
176 HGDIOBJ oldFont = SelectObject(dc, hfont);
186 : hfont(0)
192 HFONT hfont; member in struct:WebCore::__anon8062::FontData
301 HFONT* hfont,
326 derived->hfont = CreateFontIndirect(logfont)
    [all...]
FontCacheChromiumWin.cpp 237 static HFONT createFontIndirectAndGetWinName(const String& family, LOGFONT* winfont, String* winName)
243 HFONT hfont = CreateFontIndirect(winfont); local
244 if (!hfont)
248 HGDIOBJ oldFont = static_cast<HFONT>(SelectObject(dc, hfont));
257 return hfont;
284 HFONT hfont = fontData->hfont();
527 HFONT hfont = createFontIndirectAndGetWinName(family, &winfont, &winName); local
    [all...]
UniscribeHelper.cpp 73 // HFONT is the 'incarnation' of 'everything' about font, but it's an opaque
74 // handle and we can't directly query it to make a new HFONT sharing
76 // This function uses GetObject to convert HFONT back to LOGFONT,
78 // for the creation of a font identical to HFONT other than family name.
79 static void setLogFontAndStyle(HFONT hfont, LOGFONT *logfont, int *style)
81 ASSERT(hfont && logfont);
82 if (!hfont || !logfont)
85 GetObject(hfont, sizeof(LOGFONT), logfont);
88 // a new font similar to hfont
546 HFONT hfont = m_hfont; local
    [all...]
  /external/webkit/WebCore/platform/graphics/win/
FontPlatformData.h 36 typedef struct HFONT__* HFONT;
61 FontPlatformData(HFONT, float size, bool bold, bool oblique, bool useGDI);
65 FontPlatformData(HFONT, CGFontRef, float size, bool bold, bool oblique, bool useGDI);
77 HFONT hfont() const { return m_font->hfont(); } function in class:WebCore::FontPlatformData
117 static PassRefPtr<RefCountedHFONT> create(HFONT hfont) { return adoptRef(new RefCountedHFONT(hfont)); }
118 static PassRefPtr<RefCountedHFONT> createDeleted() { return adoptRef(new RefCountedHFONT(reinterpret_cast<HFONT>(-1)));
122 HFONT hfont() const { return m_hfont; } function in class:WebCore::FontPlatformData::RefCountedHFONT
    [all...]
SimpleFontDataWin.cpp 69 HGDIOBJ oldFont = SelectObject(hdc, m_platformData.hfont());
115 GetObject(m_platformData.hfont(), sizeof(LOGFONT), &winfont);
117 HFONT hfont = CreateFontIndirect(&winfont); local
118 m_smallCapsFontData = new SimpleFontData(FontPlatformData(hfont, smallCapsHeight, m_platformData.syntheticBold(), m_platformData.syntheticOblique(), m_platformData.useGDI()));
143 langFontLink->GetFontCodePages(dc, m_platformData.hfont(), &fontCodePages);
170 SelectObject(dc, m_platformData.hfont());
186 HGDIOBJ oldFont = SelectObject(hdc, m_platformData.hfont());
204 SelectObject(dc, m_platformData.hfont());
FontCustomPlatformData.cpp 89 HFONT hfont = CreateFontIndirect(&logFont); local
93 return FontPlatformData(hfont, cgFont.get(), size, bold, italic, renderingMode == AlternateRenderingMode);
97 return FontPlatformData(hfont, m_cgFont, size, bold, italic, renderingMode == AlternateRenderingMode);
210 // font namespace (Windows has no API for creating an HFONT from data without exposing the font to the
UniscribeController.cpp 244 // The script cache isn't primed with enough info yet. We need to select our HFONT into
247 HFONT hfont = fontData->platformData().hfont(); local
248 HFONT oldFont = (HFONT)SelectObject(hdc, hfont);
407 HFONT oldFont = 0;
414 // The script cache isn't primed with enough info yet. We need to select our HFONT into
418 HFONT hfont = fontData->platformData().hfont() local
    [all...]
FontCacheWin.cpp 82 static int CALLBACK linkedFontEnumProc(CONST LOGFONT* logFont, CONST TEXTMETRIC* metrics, DWORD fontType, LPARAM hfont)
84 *reinterpret_cast<HFONT*>(hfont) = CreateFontIndirect(logFont);
175 static HFONT createMLangFont(IMLangFontLink2* langFontLink, HDC hdc, DWORD codePageMask, UChar character = 0)
177 HFONT MLangFont;
178 HFONT hfont = 0; local
183 hfont = CreateFontIndirect(&lf);
185 return hfont;
193 HFONT primaryFont = font.primaryFont()->fontDataForCharacter(character)->platformData().hfont()
195 HFONT hfont = 0; local
526 HFONT hfont = createGDIFont(family, weight, fontDescription.italic(), local
    [all...]
  /external/webkit/WebCore/platform/graphics/wince/
FontCacheWince.cpp 98 static bool currentFontContainsCharacter(IMLangFontLink* langFontLink, HDC hdc, HFONT hfont, UChar character, const wchar_t* faceName)
101 HRESULT result = langFontLink->GetFontCodePages(hdc, hfont, &fontCodePages);
117 static HFONT createMLangFont(IMLangFontLink2* langFontLink, HDC hdc, DWORD codePageMask, UChar character = 0)
119 HFONT mlangFont;
126 static HFONT createMLangFont(IMLangFontLink* langFontLink, HDC hdc, const FontPlatformData& refFont, DWORD codePageMask)
128 HFONT mlangFont;
129 LRESULT result = langFontLink->MapFont(hdc, codePageMask, refFont.hfont(), &mlangFont);
243 HFONT hfont = 0 local
    [all...]
FontPlatformData.cpp 100 OwnPtr<HFONT> m_hfont;
315 OwnPtr<HFONT> m_hfontScaled;
386 HFONT FontPlatformData::hfont() const function in class:WebCore::FontPlatformData
400 HFONT FontPlatformData::getScaledFontHandle(int height, int width) const

Completed in 649 milliseconds