Home
last modified time | relevance | path

Searched refs:typeface (Results 1 – 25 of 104) sorted by relevance

12345

/external/chromium_org/third_party/WebKit/Source/platform/fonts/skia/
DFontCustomPlatformDataSkia.cpp47 FontCustomPlatformData::FontCustomPlatformData(PassRefPtr<SkTypeface> typeface) in FontCustomPlatformData() argument
48 : m_typeface(typeface) in FontCustomPlatformData()
80 …RefPtr<SkTypeface> typeface = adoptRef(FontCache::fontCache()->fontManager()->legacyCreateTypeface… in fontPlatformData() local
83 …return FontPlatformData(typeface.release(), "", size, syntheticBold, syntheticItalic, orientation); in fontPlatformData()
102 …RefPtr<SkTypeface> typeface = adoptRef(FontCache::fontCache()->fontManager()->createFromStream(str… in create() local
104 RefPtr<SkTypeface> typeface = adoptRef(SkTypeface::CreateFromStream(stream.get())); in create() local
106 if (!typeface) in create()
109 return adoptPtr(new FontCustomPlatformData(typeface.release())); in create()
/external/chromium_org/third_party/WebKit/Source/platform/fonts/harfbuzz/
DHarfBuzzFaceSkia.cpp128 SkTypeface* typeface = hbFontData->m_paint.getTypeface(); in harfBuzzGetGlyphHorizontalKerning() local
133 if (typeface->getKerningPairAdjustments(glyphs, 2, kerningAdjustments)) { in harfBuzzGetGlyphHorizontalKerning()
134 SkScalar upm = SkIntToScalar(typeface->getUnitsPerEm()); in harfBuzzGetGlyphHorizontalKerning()
150 SkTypeface* typeface = hbFontData->m_paint.getTypeface(); in harfBuzzGetGlyphVerticalKerning() local
155 if (typeface->getKerningPairAdjustments(glyphs, 2, kerningAdjustments)) { in harfBuzzGetGlyphVerticalKerning()
156 SkScalar upm = SkIntToScalar(typeface->getUnitsPerEm()); in harfBuzzGetGlyphVerticalKerning()
193 SkTypeface* typeface = reinterpret_cast<SkTypeface*>(userData); in harfBuzzSkiaGetTable() local
195 const size_t tableSize = typeface->getTableSize(tag); in harfBuzzSkiaGetTable()
202 size_t actualSize = typeface->getTableData(tag, 0, tableSize, buffer); in harfBuzzSkiaGetTable()
219 … hb_face_t* face = hb_face_create_for_tables(harfBuzzSkiaGetTable, m_platformData->typeface(), 0); in createFace()
DFontPlatformDataHarfBuzz.cpp181 if (!this->typeface()) in fontFamilyName()
183 SkTypeface::LocalizedStrings* fontFamilyIterator = this->typeface()->createFamilyNameIterator(); in fontFamilyName()
211 return typeface() && typeface()->isFixedPitch(); in isFixedPitch()
/external/chromium_org/third_party/WebKit/Source/platform/fonts/mac/
DFontCustomPlatformDataMac.cpp35 FontCustomPlatformData::FontCustomPlatformData(CGFontRef cgFont, PassRefPtr<SkTypeface> typeface) in FontCustomPlatformData() argument
37 , m_typeface(typeface) in FontCustomPlatformData()
71 RefPtr<SkTypeface> typeface = adoptRef(SkTypeface::CreateFromStream(stream.get())); in create() local
72 if (!typeface) in create()
75 return adoptPtr(new FontCustomPlatformData(cgFontRef.leakRef(), typeface.release())); in create()
/external/chromium_org/third_party/skia/src/core/
DSkGlyphCache.h161 static SkGlyphCache* DetachCache(SkTypeface* typeface, in DetachCache() argument
163 return VisitCache(typeface, desc, DetachProc, NULL); in DetachCache()
262 SkAutoGlyphCacheBase(SkTypeface* typeface, const SkDescriptor* desc) { in SkAutoGlyphCacheBase() argument
263 fCache = SkGlyphCache::DetachCache(typeface, desc); in SkAutoGlyphCacheBase()
288 SkAutoGlyphCache(SkTypeface* typeface, const SkDescriptor* desc) : in SkAutoGlyphCache() argument
289 SkAutoGlyphCacheBase(typeface, desc) {} in SkAutoGlyphCache()
304 SkAutoGlyphCacheNoGamma(SkTypeface* typeface, const SkDescriptor* desc) : in SkAutoGlyphCacheNoGamma() argument
305 SkAutoGlyphCacheBase(typeface, desc) {} in SkAutoGlyphCacheNoGamma()
/external/skia/src/core/
DSkGlyphCache.h161 static SkGlyphCache* DetachCache(SkTypeface* typeface, in DetachCache() argument
163 return VisitCache(typeface, desc, DetachProc, NULL); in DetachCache()
262 SkAutoGlyphCacheBase(SkTypeface* typeface, const SkDescriptor* desc) { in SkAutoGlyphCacheBase() argument
263 fCache = SkGlyphCache::DetachCache(typeface, desc); in SkAutoGlyphCacheBase()
288 SkAutoGlyphCache(SkTypeface* typeface, const SkDescriptor* desc) : in SkAutoGlyphCache() argument
289 SkAutoGlyphCacheBase(typeface, desc) {} in SkAutoGlyphCache()
304 SkAutoGlyphCacheNoGamma(SkTypeface* typeface, const SkDescriptor* desc) : in SkAutoGlyphCacheNoGamma() argument
305 SkAutoGlyphCacheBase(typeface, desc) {} in SkAutoGlyphCacheNoGamma()
/external/chromium_org/ui/gfx/
Dplatform_font_pango.cc165 skia::RefPtr<SkTypeface> typeface = skia::AdoptRef( in DeriveFont() local
170 return Font(new PlatformFontPango(typeface, in DeriveFont()
243 PlatformFontPango::PlatformFontPango(const skia::RefPtr<SkTypeface>& typeface, in PlatformFontPango() argument
247 InitWithTypefaceNameSizeAndStyle(typeface, name, size, style); in PlatformFontPango()
272 skia::RefPtr<SkTypeface> typeface = skia::AdoptRef( in InitWithNameAndSize() local
274 if (!typeface) { in InitWithNameAndSize()
277 typeface = skia::AdoptRef( in InitWithNameAndSize()
280 CHECK(typeface) << "Could not find any font: " in InitWithNameAndSize()
286 InitWithTypefaceNameSizeAndStyle(typeface, in InitWithNameAndSize()
293 const skia::RefPtr<SkTypeface>& typeface, in InitWithTypefaceNameSizeAndStyle() argument
[all …]
/external/skia/src/pdf/
DSkPDFFontImpl.h32 SkPDFType0Font(SkAdvancedTypefaceMetrics* info, SkTypeface* typeface);
45 SkPDFCIDFont(SkAdvancedTypefaceMetrics* info, SkTypeface* typeface,
61 SkPDFType1Font(SkAdvancedTypefaceMetrics* info, SkTypeface* typeface,
78 SkPDFType3Font(SkAdvancedTypefaceMetrics* info, SkTypeface* typeface, uint16_t glyphID);
DSkPDFFont.cpp572 const SkTypeface* typeface, in get_subset_font_stream() argument
576 SkAutoTUnref<SkStream> fontData(typeface->openStream(&ttcIndex)); in get_subset_font_stream()
756 SkTypeface* SkPDFFont::typeface() { in typeface() function in SkPDFFont
806 SkPDFFont* SkPDFFont::GetFontResource(SkTypeface* typeface, uint16_t glyphID) { in GetFontResource() argument
809 SkAutoResolveDefaultTypeface autoResolve(typeface); in GetFontResource()
810 typeface = autoResolve.get(); in GetFontResource()
812 const uint32_t fontID = typeface->uniqueID(); in GetFontResource()
849 typeface->getAdvancedTypefaceMetrics(info, NULL, 0)); in GetFontResource()
857 typeface->getAdvancedTypefaceMetrics(info, NULL, 0)); in GetFontResource()
862 SkPDFFont* font = Create(fontMetrics.get(), typeface, glyphID, in GetFontResource()
[all …]
DSkPDFFont.h91 SkTypeface* typeface();
132 static SkPDFFont* GetFontResource(SkTypeface* typeface, uint16_t glyphID);
144 SkPDFFont(SkAdvancedTypefaceMetrics* fontInfo, SkTypeface* typeface,
175 SkTypeface* typeface, uint16_t glyphID,
/external/chromium_org/third_party/skia/src/pdf/
DSkPDFFontImpl.h32 SkPDFType0Font(SkAdvancedTypefaceMetrics* info, SkTypeface* typeface);
45 SkPDFCIDFont(SkAdvancedTypefaceMetrics* info, SkTypeface* typeface,
61 SkPDFType1Font(SkAdvancedTypefaceMetrics* info, SkTypeface* typeface,
78 SkPDFType3Font(SkAdvancedTypefaceMetrics* info, SkTypeface* typeface, uint16_t glyphID);
DSkPDFFont.cpp572 const SkTypeface* typeface, in get_subset_font_stream() argument
576 SkAutoTUnref<SkStream> fontData(typeface->openStream(&ttcIndex)); in get_subset_font_stream()
756 SkTypeface* SkPDFFont::typeface() { in typeface() function in SkPDFFont
806 SkPDFFont* SkPDFFont::GetFontResource(SkTypeface* typeface, uint16_t glyphID) { in GetFontResource() argument
809 SkAutoResolveDefaultTypeface autoResolve(typeface); in GetFontResource()
810 typeface = autoResolve.get(); in GetFontResource()
812 const uint32_t fontID = typeface->uniqueID(); in GetFontResource()
849 typeface->getAdvancedTypefaceMetrics(info, NULL, 0)); in GetFontResource()
857 typeface->getAdvancedTypefaceMetrics(info, NULL, 0)); in GetFontResource()
862 SkPDFFont* font = Create(fontMetrics.get(), typeface, glyphID, in GetFontResource()
[all …]
DSkPDFFont.h91 SkTypeface* typeface();
132 static SkPDFFont* GetFontResource(SkTypeface* typeface, uint16_t glyphID);
144 SkPDFFont(SkAdvancedTypefaceMetrics* fontInfo, SkTypeface* typeface,
175 SkTypeface* typeface, uint16_t glyphID,
/external/skia/src/animator/
DSkDrawPaint.cpp58 SK_MEMBER(typeface, Typeface),
73 textSkewX(SK_ScalarNaN), typeface((SkDrawTypeface*) -1), in SkDrawPaint()
88 delete typeface; in ~SkDrawPaint()
141 typeface->dump(maker); in dump()
208 if (fOwnsTypeface && maker.resolveID(typeface, original->typeface) == false) in resolveIDs()
259 if (typeface == NULL) in setupPaint()
261 else if (typeface != (SkDrawTypeface*) -1) in setupPaint()
262 SkSafeUnref(paint->setTypeface(typeface->getTypeface())); in setupPaint()
/external/chromium_org/third_party/skia/src/animator/
DSkDrawPaint.cpp58 SK_MEMBER(typeface, Typeface),
73 textSkewX(SK_ScalarNaN), typeface((SkDrawTypeface*) -1), in SkDrawPaint()
88 delete typeface; in ~SkDrawPaint()
141 typeface->dump(maker); in dump()
208 if (fOwnsTypeface && maker.resolveID(typeface, original->typeface) == false) in resolveIDs()
259 if (typeface == NULL) in setupPaint()
261 else if (typeface != (SkDrawTypeface*) -1) in setupPaint()
262 SkSafeUnref(paint->setTypeface(typeface->getTypeface())); in setupPaint()
/external/chromium_org/third_party/skia/tests/
DFontNamesTest.cpp154 SkAutoTUnref<SkTypeface> typeface(set->createTypeface(j)); in test_systemfonts() local
155 if (NULL == typeface.get()) { in test_systemfonts()
161 typeface->getFamilyName(&familyName); in test_systemfonts()
167 typeface->createFamilyNameIterator()); in test_systemfonts()
176 size_t nameTableSize = typeface->getTableSize(nameTag); in test_systemfonts()
181 size_t copied = typeface->getTableData(nameTag, 0, nameTableSize, nameTableData.get()); in test_systemfonts()
/external/skia/tests/
DFontNamesTest.cpp154 SkAutoTUnref<SkTypeface> typeface(set->createTypeface(j)); in test_systemfonts() local
155 if (NULL == typeface.get()) { in test_systemfonts()
161 typeface->getFamilyName(&familyName); in test_systemfonts()
167 typeface->createFamilyNameIterator()); in test_systemfonts()
176 size_t nameTableSize = typeface->getTableSize(nameTag); in test_systemfonts()
181 size_t copied = typeface->getTableData(nameTag, 0, nameTableSize, nameTableData.get()); in test_systemfonts()
/external/chromium_org/chrome/common/
Dbadge_util.cc71 skia::RefPtr<SkTypeface> typeface = skia::AdoptRef( in GetBadgeTextPaintSingleton() local
75 if (typeface) { in GetBadgeTextPaintSingleton()
84 typeface = skia::AdoptRef(SkTypeface::CreateFromName( in GetBadgeTextPaintSingleton()
86 DCHECK(typeface); in GetBadgeTextPaintSingleton()
89 text_paint->setTypeface(typeface.get()); in GetBadgeTextPaintSingleton()
/external/chromium_org/third_party/skia/experimental/PdfViewer/
DSkPdfFont.cpp130 SkTypeface* typeface = NULL; in SkTypefaceFromPdfStandardFont() local
139 typeface = SkTypeface::CreateFromName( in SkTypefaceFromPdfStandardFont()
144 typeface = SkTypeface::CreateFromName( in SkTypefaceFromPdfStandardFont()
149 if (typeface) { in SkTypefaceFromPdfStandardFont()
150 typeface->ref(); in SkTypefaceFromPdfStandardFont()
152 return typeface; in SkTypefaceFromPdfStandardFont()
197 SkTypeface* typeface = SkTypefaceFromPdfStandardFont(fontName, false, false); in fontFromName() local
198 if (typeface != NULL) { in fontFromName()
199 return new SkPdfStandardFont(typeface); in fontFromName()
/external/skia/experimental/PdfViewer/
DSkPdfFont.cpp130 SkTypeface* typeface = NULL; in SkTypefaceFromPdfStandardFont() local
139 typeface = SkTypeface::CreateFromName( in SkTypefaceFromPdfStandardFont()
144 typeface = SkTypeface::CreateFromName( in SkTypefaceFromPdfStandardFont()
149 if (typeface) { in SkTypefaceFromPdfStandardFont()
150 typeface->ref(); in SkTypefaceFromPdfStandardFont()
152 return typeface; in SkTypefaceFromPdfStandardFont()
197 SkTypeface* typeface = SkTypefaceFromPdfStandardFont(fontName, false, false); in fontFromName() local
198 if (typeface != NULL) { in fontFromName()
199 return new SkPdfStandardFont(typeface); in fontFromName()
/external/chromium_org/third_party/skia/src/ports/
DSkScalerContext_win_dw.cpp36 static bool is_hinted_without_gasp(DWriteFontTypeface* typeface) { in is_hinted_without_gasp() argument
37 AutoTDWriteTable<SkOTTableMaximumProfile> maxp(typeface->fDWriteFontFace.get()); in is_hinted_without_gasp()
53 AutoTDWriteTable<SkOTTableGridAndScanProcedure> gasp(typeface->fDWriteFontFace.get()); in is_hinted_without_gasp()
66 static void expand_range_if_gridfit_only(DWriteFontTypeface* typeface, int size, PPEMRange* range) { in expand_range_if_gridfit_only() argument
67 AutoTDWriteTable<SkOTTableGridAndScanProcedure> gasp(typeface->fDWriteFontFace.get()); in expand_range_if_gridfit_only()
107 static bool has_bitmap_strike(DWriteFontTypeface* typeface, PPEMRange range) { in has_bitmap_strike() argument
109 AutoTDWriteTable<SkOTTableEmbeddedBitmapLocation> eblc(typeface->fDWriteFontFace.get()); in has_bitmap_strike()
148 AutoTDWriteTable<SkOTTableEmbeddedBitmapScaling> ebsc(typeface->fDWriteFontFace.get()); in has_bitmap_strike()
192 SkScalerContext_DW::SkScalerContext_DW(DWriteFontTypeface* typeface, in SkScalerContext_DW() argument
194 : SkScalerContext(typeface, desc) in SkScalerContext_DW()
[all …]
/external/skia/src/ports/
DSkScalerContext_win_dw.cpp36 static bool is_hinted_without_gasp(DWriteFontTypeface* typeface) { in is_hinted_without_gasp() argument
37 AutoTDWriteTable<SkOTTableMaximumProfile> maxp(typeface->fDWriteFontFace.get()); in is_hinted_without_gasp()
53 AutoTDWriteTable<SkOTTableGridAndScanProcedure> gasp(typeface->fDWriteFontFace.get()); in is_hinted_without_gasp()
66 static void expand_range_if_gridfit_only(DWriteFontTypeface* typeface, int size, PPEMRange* range) { in expand_range_if_gridfit_only() argument
67 AutoTDWriteTable<SkOTTableGridAndScanProcedure> gasp(typeface->fDWriteFontFace.get()); in expand_range_if_gridfit_only()
107 static bool has_bitmap_strike(DWriteFontTypeface* typeface, PPEMRange range) { in has_bitmap_strike() argument
109 AutoTDWriteTable<SkOTTableEmbeddedBitmapLocation> eblc(typeface->fDWriteFontFace.get()); in has_bitmap_strike()
148 AutoTDWriteTable<SkOTTableEmbeddedBitmapScaling> ebsc(typeface->fDWriteFontFace.get()); in has_bitmap_strike()
192 SkScalerContext_DW::SkScalerContext_DW(DWriteFontTypeface* typeface, in SkScalerContext_DW() argument
194 : SkScalerContext(typeface, desc) in SkScalerContext_DW()
[all …]
/external/chromium_org/third_party/WebKit/Source/web/win/
DWebFontRendering.cpp31 void WebFontRendering::addSideloadedFontForTesting(SkTypeface* typeface) in addSideloadedFontForTesting() argument
33 WebCore::FontCache::addSideloadedFontForTesting(typeface); in addSideloadedFontForTesting()
/external/skia/src/fonts/
DSkFontMgr_indirect.cpp228 SkAutoTUnref<SkTypeface> typeface(fImpl->createFromStream(stream, id.fTtcIndex)); in createTypefaceFromFontId() local
229 if (typeface.get() == NULL) { in createTypefaceFromFontId()
234 typeface->weak_ref(); in createTypefaceFromFontId()
237 newEntry.fTypeface = typeface.get(); // weak reference passed to new entry. in createTypefaceFromFontId()
239 return typeface.detach(); in createTypefaceFromFontId()
/external/chromium_org/third_party/skia/src/fonts/
DSkFontMgr_indirect.cpp228 SkAutoTUnref<SkTypeface> typeface(fImpl->createFromStream(stream, id.fTtcIndex)); in createTypefaceFromFontId() local
229 if (typeface.get() == NULL) { in createTypefaceFromFontId()
234 typeface->weak_ref(); in createTypefaceFromFontId()
237 newEntry.fTypeface = typeface.get(); // weak reference passed to new entry. in createTypefaceFromFontId()
239 return typeface.detach(); in createTypefaceFromFontId()

12345