/external/webkit/Source/WebCore/platform/graphics/chromium/ |
FontPlatformDataChromiumWin.h | 45 typedef struct HFONT__ *HFONT; 60 FontPlatformData(HFONT, float size); 70 HFONT hfont() const { return m_font ? m_font->hfont() : 0; } function in class:WebCore::FontPlatformData 94 // We refcount the internal HFONT so that FontPlatformData can be 96 // don't really want to re-create the HFONT. 99 static PassRefPtr<RefCountedHFONT> create(HFONT hfont) 101 return adoptRef(new RefCountedHFONT(hfont)); 106 HFONT hfont() const { return m_hfont; } function in class:WebCore::FontPlatformData::RefCountedHFONT [all...] |
FontUtilsChromiumWin.cpp | 49 HFONT hfont = CreateFont(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, local 51 if (!hfont) 54 HGDIOBJ oldFont = static_cast<HFONT>(SelectObject(dc, hfont)); 59 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::__anon17846::FontData [all...] |
SimpleFontDataChromiumWin.cpp | 64 HGDIOBJ oldFont = SelectObject(dc, m_platformData.hfont()); 68 if (PlatformBridge::ensureFontLoaded(m_platformData.hfont())) { 118 GetObject(m_platformData.hfont(), sizeof(LOGFONT), &winFont); 121 HFONT hfont = CreateFontIndirect(&winFont); local 122 return new SimpleFontData(FontPlatformData(hfont, scaledSize), isCustomFont(), false); 156 HGDIOBJ oldFont = SelectObject(dc, m_platformData.hfont()); 162 if (PlatformBridge::ensureFontLoaded(m_platformData.hfont())) { 188 HGDIOBJ oldFont = SelectObject(dc, m_platformData.hfont()); 193 if (PlatformBridge::ensureFontLoaded(m_platformData.hfont())) { [all...] |
UniscribeHelperTextRun.h | 55 HFONT hfont, 60 virtual void tryToPreloadFont(HFONT); 63 // This function retrieves the Windows font data (HFONT, etc) for the next 69 virtual bool nextWinFontData(HFONT*, SCRIPT_CACHE**, SCRIPT_FONTPROPERTIES**, int* ascent); 85 Vector<HFONT, kNumberOfFonts> m_hfonts;
|
UniscribeHelperTextRun.cpp | 44 font.primaryFont()->platformData().hfont(), 69 HFONT hfont, 72 : UniscribeHelper(input, inputLength, isRtl, hfont, 79 void UniscribeHelperTextRun::tryToPreloadFont(HFONT font) 88 HFONT* hfont, 122 m_hfonts.append(simpleFontData->platformData().hfont()); 128 *hfont = m_hfonts[m_fontIndex - 1];
|
FontPlatformDataChromiumWin.cpp | 60 FontPlatformData::FontPlatformData(HFONT font, float size) 112 if (m_hfont != reinterpret_cast<HFONT>(-1)) { 121 RefCountedHFONT::create(reinterpret_cast<HFONT>(-1)); 135 HGDIOBJ oldFont = SelectObject(dc, hfont()); 139 if (PlatformBridge::ensureFontLoaded(hfont())) {
|
FontCacheChromiumWin.cpp | 240 static HFONT createFontIndirectAndGetWinName(const String& family, LOGFONT* winfont, String* winName) 246 HFONT hfont = CreateFontIndirect(winfont); local 247 if (!hfont) 251 HGDIOBJ oldFont = static_cast<HFONT>(SelectObject(dc, hfont)); 260 return hfont; 287 HFONT hfont = fontData->hfont(); 619 HFONT hfont = createFontIndirectAndGetWinName(family, &winfont, &winName); local [all...] |
FontUtilsChromiumWin.h | 63 // Derive a new HFONT by replacing lfFaceName of LOGFONT with |family|, 64 // calculate the ascent for the derived HFONT, and initialize SCRIPT_CACHE 81 bool getDerivedFontData(const UChar* family, int style, LOGFONT*, int* ascent, HFONT*, SCRIPT_CACHE**, WORD* spaceGlyph);
|
UniscribeHelper.cpp | 44 // HFONT is the 'incarnation' of 'everything' about font, but it's an opaque 45 // handle and we can't directly query it to make a new HFONT sharing 47 // This function uses GetObject to convert HFONT back to LOGFONT, 49 // for the creation of a font identical to HFONT other than family name. 50 static void setLogFontAndStyle(HFONT hfont, LOGFONT *logfont, int *style) 52 ASSERT(hfont && logfont); 53 if (!hfont || !logfont) 56 GetObject(hfont, sizeof(LOGFONT), logfont); 59 // a new font similar to hfont 518 HFONT hfont = m_hfont; local [all...] |
/external/webkit/Source/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/Source/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.h | 60 HFONT hfont() const; 68 HFONT getScaledFontHandle(int height, int width) const;
|
/external/webkit/Source/WebCore/platform/graphics/win/ |
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 567 HFONT hfont = createGDIFont(family, weight, fontDescription.italic(), local [all...] |
SimpleFontDataWin.cpp | 75 HGDIOBJ oldFont = SelectObject(hdc, m_platformData.hfont()); 121 GetObject(m_platformData.hfont(), sizeof(LOGFONT), &winfont); 123 HFONT hfont = CreateFontIndirect(&winfont); local 124 return new SimpleFontData(FontPlatformData(hfont, scaledSize, m_platformData.syntheticBold(), m_platformData.syntheticOblique(), m_platformData.useGDI()), isCustomFont(), false); 166 langFontLink->GetFontCodePages(dc, m_platformData.hfont(), &fontCodePages); 193 SelectObject(dc, m_platformData.hfont()); 209 HGDIOBJ oldFont = SelectObject(hdc, m_platformData.hfont()); 226 HGDIOBJ oldFont = SelectObject(hdc, m_platformData.hfont()); 248 SelectObject(dc, m_platformData.hfont()); [all...] |
FontCustomPlatformDataCairo.cpp | 53 HFONT font = reinterpret_cast<HFONT>(buffer);
|
UniscribeController.cpp | 249 // The script cache isn't primed with enough info yet. We need to select our HFONT into 252 HFONT hfont = fontData->platformData().hfont(); local 253 HFONT oldFont = (HFONT)SelectObject(hdc, hfont); 384 HFONT oldFont = 0; 391 // The script cache isn't primed with enough info yet. We need to select our HFONT into 395 HFONT hfont = fontData->platformData().hfont() local [all...] |
FontPlatformDataCGWin.cpp | 110 void FontPlatformData::platformDataInit(HFONT font, float size, HDC hdc, WCHAR* faceName) 117 FontPlatformData::FontPlatformData(HFONT hfont, CGFontRef font, float size, bool bold, bool oblique, bool useGDI) 124 , m_font(RefCountedGDIHandle<HFONT>::create(hfont))
|
FontPlatformDataWin.cpp | 38 FontPlatformData::FontPlatformData(HFONT font, float size, bool bold, bool oblique, bool useGDI) 39 : m_font(RefCountedGDIHandle<HFONT>::create(font))
|
/external/webkit/Source/WebCore/platform/wx/wxcode/win/ |
fontprops.cpp | 51 WXHFONT hFont = font->GetHFONT(); 52 ::SelectObject(dc, hFont); 92 langFontLink->GetFontCodePages(dc, (HFONT)font, &fontCodePages); 113 WXHFONT hFont = font.GetHFONT(); 114 ::SelectObject(dc, hFont); 116 HFONT hfontOld; 121 hfontOld = (HFONT)::SelectObject(dc, hFont);
|
/external/webkit/Source/WebCore/platform/graphics/skia/ |
SkiaFontWin.cpp | 51 CachedOutlineKey(HFONT f, WORD g) : font(f), glyph(g), path(0) {} 53 HFONT font; 182 const SkPath* SkiaWinOutlineCache::lookupOrCreatePathForGlyph(HDC hdc, HFONT font, WORD glyph) 207 void SkiaWinOutlineCache::removePathsForFont(HFONT hfont) 279 static bool skiaDrawText(HFONT hfont, 310 const SkPath* path = SkiaWinOutlineCache::lookupOrCreatePathForGlyph(dc, hfont, glyphs[i]); 330 static void setupPaintForFont(HFONT hfont, SkPaint* paint [all...] |
SkiaFontWin.h | 48 static const SkPath* lookupOrCreatePathForGlyph(HDC, HFONT, WORD); 51 static void removePathsForFont(HFONT); 89 HFONT hfont,
|
/external/icu4c/samples/layout/ |
GDIFontInstance.h | 55 HFONT fFont; 79 HFONT getFont() const; 106 inline HFONT GDIFontInstance::getFont() const
|
/external/webkit/Source/WebCore/platform/graphics/ |
FontPlatformData.h | 86 typedef struct HFONT__* HFONT; 201 FontPlatformData(HFONT, float size, bool syntheticBold, bool syntheticOblique, bool useGDI); 203 FontPlatformData(HFONT, CGFontRef, float size, bool syntheticBold, bool syntheticOblique, bool useGDI); 213 HFONT hfont() const { return m_font ? m_font->handle() : 0; } function in class:WebCore::FontPlatformData 311 void platformDataInit(HFONT, float size, HDC, WCHAR* faceName); 330 RefPtr<RefCountedGDIHandle<HFONT> > m_font;
|
/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/webkit/Source/JavaScriptCore/wtf/ |
OwnPtrCommon.h | 35 typedef struct HFONT__* HFONT; 66 void deleteOwnedPtr(HFONT);
|