Home
last modified time | relevance | path

Searched refs:platformData (Results 1 – 25 of 26) sorted by relevance

12

/external/chromium_org/third_party/WebKit/Source/platform/fonts/mac/
DFontMac.cpp59 const FontPlatformData& platformData = fontData->platformData(); in setupPaint() local
60 const float textSize = platformData.m_size >= 0 ? platformData.m_size : 12; in setupPaint()
65 paint->setVerticalText(platformData.orientation() == Vertical); in setupPaint()
66 paint->setTypeface(platformData.typeface()); in setupPaint()
67 paint->setFakeBoldText(platformData.m_syntheticBold); in setupPaint()
68 paint->setTextSkewX(platformData.m_syntheticOblique ? -SK_Scalar1 / 4 : 0); in setupPaint()
113 if (font->platformData().orientation() == Vertical) in drawGlyphs()
131 if (font->platformData().orientation() == Vertical) { in drawGlyphs()
168 if (font->platformData().orientation() == Vertical) in drawGlyphs()
DSimpleFontDataCoreText.cpp54 CFDictionarySetValue(mutableAttributes, kCTFontAttributeName, platformData().ctFont()); in getCFStringAttributes()
62 …bool allowLigatures = (orientation == Horizontal && platformData().allowsLigatures()) || (typesett… in getCFStringAttributes()
77 if (fontData->platformData().isCompositeFontReference()) in shouldUseCoreText()
89 if (fontData->platformData().widthVariant() != RegularWidth || fontData->hasVerticalGlyphs()) { in shouldUseCoreText()
106 CGFontGetGlyphsForUnichars(platformData().cgFont(), buffer, glyphs.data(), bufferLength); in fillGlyphPage()
113 …} else if (!platformData().isCompositeFontReference() && platformData().widthVariant() != RegularW… in fillGlyphPage()
114 … && CTFontGetGlyphsForCharacters(platformData().ctFont(), buffer, glyphs.data(), bufferLength)) { in fillGlyphPage()
139 RetainPtr<CGFontRef> cgFont(AdoptCF, CTFontCopyGraphicsFont(platformData().ctFont(), 0)); in fillGlyphPage()
152 if (gotBaseFont || platformData().isCompositeFontReference()) { in fillGlyphPage()
DFontCacheMac.mm118 const FontPlatformData& platformData = fontDataToSubstitute->platformData();
119 NSFont *nsFont = platformData.font();
149 if (platformData.m_syntheticBold)
151 if (platformData.m_syntheticOblique)
178 FontPlatformData alternateFont(substituteFont, platformData.size(),
181 platformData.m_orientation);
225 // In that case, we don't want to use the platformData.
226 …OwnPtr<FontPlatformData> platformData = adoptPtr(new FontPlatformData(platformFont, size, syntheti…
227 if (!platformData->font())
229 return platformData.leakPtr();
DSimpleFontDataMac.mm99 if (!fontData->platformData().cgFont())
135 bool syntheticBold = platformData().syntheticBold() && !(traits & kCTFontBoldTrait);
136 … bool syntheticOblique = platformData().syntheticOblique() && !(traits & kCTFontItalicTrait);
138 …tePlatform(substituteFont, platformData().size(), syntheticBold, syntheticOblique, platformData().…
246 if (platformData().orientation() == Vertical && !isTextOrientationFallback())
251 if (platformData().orientation() == Horizontal) {
272 static CFDataRef copyFontTableForTag(FontPlatformData& platformData, FourCharCode tableName)
274 return CGFontCopyTableForTag(platformData.cgFont(), tableName);
377 …boundingBox = CTFontGetBoundingRectsForGlyphs(m_platformData.ctFont(), platformData().orientation(…
388 if (platformData().orientation() == Horizontal || m_isBrokenIdeographFallback) {
[all …]
DComplexTextControllerCoreText.mm87 fontDescriptor = CTFontCopyFontDescriptor(fontData->platformData().ctFont());
205 …gAttributes(m_font.fontDescription().typesettingFeatures(), fontData->platformData().orientation()…
210 …fontWithCascadeList(AdoptCF, CTFontCreateCopyWithAttributes(fontData->platformData().ctFont(), m_f…
213 …gAttributes(m_font.fontDescription().typesettingFeatures(), fontData->platformData().orientation()…
257 if (!CFEqual(runFont, fontData->platformData().ctFont())) {
263 …ainPtr<CGFontRef> cgFont(AdoptCF, CTFontCopyGraphicsFont(runFontData->platformData().ctFont(), 0));
DFontComplexTextMac.cpp178 if (simpleFontData->platformData().orientation() == Vertical) { in fontDataForCombiningCharacterSequence()
DComplexTextController.cpp529 bool roundsAdvances = fontData->platformData().roundsGlyphAdvances(); in adjustGlyphsAndAdvances()
/external/chromium_org/third_party/WebKit/Source/platform/fonts/
DFontCache.cpp132 …ticalData> FontCache::getVerticalData(const FontFileKey& key, const FontPlatformData& platformData) in getVerticalData() argument
139 RefPtr<OpenTypeVerticalData> verticalData = OpenTypeVerticalData::create(platformData); in getVerticalData()
151 …if (FontPlatformData* platformData = getFontPlatformData(fontDescription, adjustFamilyNameToAvoidU… in getFontData() local
152 return fontDataFromFontPlatformData(platformData, shouldRetain); in getFontData()
157 …Data> FontCache::fontDataFromFontPlatformData(const FontPlatformData* platformData, ShouldRetain s… in fontDataFromFontPlatformData() argument
167 return gFontDataCache->get(platformData, shouldRetain); in fontDataFromFontPlatformData()
196 …tPlatformDataCache::iterator platformData = gFontPlatformDataCache->begin(); platformData != platf… in purgePlatformFontDataCache() local
197 if (platformData->value && !gFontDataCache->contains(platformData->value.get())) in purgePlatformFontDataCache()
198 keysToRemove.append(platformData->key); in purgePlatformFontDataCache()
DFontDataCache.cpp48 PassRefPtr<SimpleFontData> FontDataCache::get(const FontPlatformData* platformData, ShouldRetain sh… in get() argument
50 if (!platformData) in get()
53 Cache::iterator result = m_cache.find(*platformData); in get()
55 …pair<RefPtr<SimpleFontData>, unsigned> newValue(SimpleFontData::create(*platformData), shouldRetai… in get()
56 m_cache.set(*platformData, newValue); in get()
87 Cache::iterator it = m_cache.find(fontData->platformData()); in release()
133 m_cache.remove(fontData->platformData()); in purgeLeastRecentlyUsed()
DSimpleFontData.cpp42 SimpleFontData::SimpleFontData(const FontPlatformData& platformData, PassRefPtr<CustomFontData> cus… in SimpleFontData() argument
45 , m_platformData(platformData) in SimpleFontData()
59 if (platformData.orientation() == Vertical && !isTextOrientationFallback) { in SimpleFontData()
60 m_verticalData = platformData.verticalData(); in SimpleFontData()
233 return platformData().description(); in description()
DFontDataCache.h44 static unsigned hash(const FontPlatformData& platformData) in hash()
46 return platformData.hash(); in hash()
DSimpleFontData.h59 …static PassRefPtr<SimpleFontData> create(const FontPlatformData& platformData, PassRefPtr<CustomFo…
61 return adoptRef(new SimpleFontData(platformData, customData, isTextOrientationFallback));
74 const FontPlatformData& platformData() const { return m_platformData; } in platformData() function
108 …float sizePerUnit() const { return platformData().size() / (fontMetrics().unitsPerEm() ? fontMetri… in sizePerUnit()
DFont.cpp433 …if (data.fontData && (data.fontData->platformData().orientation() == Horizontal || data.fontData->… in glyphDataAndPageForCharacter()
516 …if (characterFontData->platformData().orientation() == Vertical && !characterFontData->hasVertical… in glyphDataAndPageForCharacter()
529 …if (!Character::isCJKIdeographOrSymbol(c) && data.fontData->platformData().orientation() != Horizo… in glyphDataAndPageForCharacter()
724 if (fontData->platformData().orientation() == Horizontal) { in offsetToMiddleOfGlyph()
/external/chromium_org/third_party/WebKit/Source/platform/fonts/skia/
DFontCacheSkia.cpp83 FontPlatformData platformData = FontPlatformData(*substitutePlatformData); in fallbackFontForCharacter() local
84 platformData.setSyntheticBold(shouldSetSyntheticBold); in fallbackFontForCharacter()
85 platformData.setSyntheticItalic(shouldSetSyntheticItalic); in fallbackFontForCharacter()
86 return fontDataFromFontPlatformData(&platformData, DoNotRetain); in fallbackFontForCharacter()
DSimpleFontDataSkia.cpp110 …if (platformData().fontRenderStyle().useSubpixelPositioning && descent < SkScalarToFloat(metrics.f… in platformInit()
141 if (platformData().orientation() == Vertical && !isTextOrientationFallback()) { in platformInit()
205 m_treatAsFixedPitch = platformData().isFixedPitch(); in determinePitch()
294 SkTypeface* typeface = platformData().typeface(); in fillGlyphPage()
/external/chromium_org/third_party/WebKit/Source/platform/fonts/opentype/
DOpenTypeVerticalData.cpp400 OpenTypeVerticalData::OpenTypeVerticalData(const FontPlatformData& platformData) in OpenTypeVerticalData() argument
403 loadMetrics(platformData); in OpenTypeVerticalData()
404 loadVerticalGlyphSubstitutions(platformData); in OpenTypeVerticalData()
407 void OpenTypeVerticalData::loadMetrics(const FontPlatformData& platformData) in loadMetrics() argument
411 RefPtr<SharedBuffer> buffer = platformData.openTypeTable(OpenType::HheaTag); in loadMetrics()
421 buffer = platformData.openTypeTable(OpenType::HmtxTag); in loadMetrics()
432 buffer = platformData.openTypeTable(OpenType::VheaTag); in loadMetrics()
443 buffer = platformData.openTypeTable(OpenType::VORGTag); in loadMetrics()
460 buffer = platformData.openTypeTable(OpenType::VmtxTag); in loadMetrics()
492 void OpenTypeVerticalData::loadVerticalGlyphSubstitutions(const FontPlatformData& platformData) in loadVerticalGlyphSubstitutions() argument
[all …]
DOpenTypeVerticalData.h45 static PassRefPtr<OpenTypeVerticalData> create(const FontPlatformData& platformData) in create() argument
47 return adoptRef(new OpenTypeVerticalData(platformData)); in create()
/external/chromium_org/third_party/WebKit/Source/platform/fonts/harfbuzz/
DHarfBuzzFace.h50 static PassRefPtr<HarfBuzzFace> create(FontPlatformData* platformData, uint64_t uniqueID) in create() argument
52 return adoptRef(new HarfBuzzFace(platformData, uniqueID)); in create()
DHarfBuzzFace.cpp80 HarfBuzzFace::HarfBuzzFace(FontPlatformData* platformData, uint64_t uniqueID) in HarfBuzzFace() argument
81 : m_platformData(platformData) in HarfBuzzFace()
DFontHarfBuzz.cpp68 font->platformData().setupPaint(&paint, gc); in paintGlyphs()
80 font->platformData().setupPaint(&paint, gc); in paintGlyphs()
112 if (font->platformData().orientation() == Vertical && verticalData) { in drawGlyphs()
DHarfBuzzShaper.cpp809 … FontPlatformData* platformData = const_cast<FontPlatformData*>(&currentFontData->platformData()); in shapeHarfBuzzRuns() local
810 HarfBuzzFace* face = platformData->harfBuzzFace(); in shapeHarfBuzzRuns()
/external/chromium_org/third_party/WebKit/Source/core/page/
DDragData.h62 DataObject* platformData() const { return m_platformDragData; } in platformData() function
DDragController.cpp126 return Clipboard::create(Clipboard::DragAndDrop, policy, dragData->platformData()); in createDraggingClipboard()
/external/chromium_org/third_party/WebKit/Source/core/css/
DRemoteFontFaceSource.cpp117 return SimpleFontData::create(temporaryFont->platformData(), cssFontData); in createLoadingFallbackFontData()
/external/chromium_org/third_party/WebKit/Source/core/rendering/svg/
DSVGTextRunRenderingContext.cpp118 float scale = scaleEmToUnits(fontData->platformData().size(), fontFaceElement->unitsPerEm()); in drawSVGGlyphs()

12