Searched refs:typeface (Results 1 - 25 of 105) sorted by relevance

12345

/external/chromium_org/third_party/skia/src/gpu/
H A DGrPathRendering.cpp17 GlyphGenerator(const SkTypeface& typeface, const SkDescriptor& desc) argument
19 fScalerContext(typeface.createScalerContext(fDesc)) {
50 GrPathRange* GrPathRendering::createGlyphs(const SkTypeface* typeface, argument
53 if (NULL == typeface) {
54 typeface = SkTypeface::GetDefaultTypeface();
55 SkASSERT(NULL != typeface);
59 SkAutoTUnref<GlyphGenerator> generator(SkNEW_ARGS(GlyphGenerator, (*typeface, *desc)));
65 rec.fFontID = typeface->uniqueID();
77 SkAutoTUnref<GlyphGenerator> generator(SkNEW_ARGS(GlyphGenerator, (*typeface, *genericDesc)));
/external/chromium_org/content/public/renderer/
H A Drender_font_warmup_win.h17 CONTENT_EXPORT void DoPreSandboxWarmupForTypeface(SkTypeface* typeface);
/external/chromium_org/third_party/WebKit/Source/platform/fonts/skia/
H A DFontCustomPlatformDataSkia.cpp47 FontCustomPlatformData::FontCustomPlatformData(PassRefPtr<SkTypeface> typeface) argument
48 : m_typeface(typeface)
80 RefPtr<SkTypeface> typeface = adoptRef(FontCache::fontCache()->fontManager()->legacyCreateTypeface(name.c_str(), static_cast<SkTypeface::Style>(style))); local
83 return FontPlatformData(typeface.release(), "", size, syntheticBold, syntheticItalic, orientation);
102 RefPtr<SkTypeface> typeface = adoptRef(FontCache::fontCache()->fontManager()->createFromStream(stream.get())); local
104 RefPtr<SkTypeface> typeface = adoptRef(SkTypeface::CreateFromStream(stream.get())); local
106 if (!typeface)
109 return adoptPtr(new FontCustomPlatformData(typeface.release()));
/external/chromium_org/third_party/WebKit/Source/web/win/
H A DWebFontRendering.cpp37 void WebFontRendering::addSideloadedFontForTesting(SkTypeface* typeface) argument
39 blink::FontCache::addSideloadedFontForTesting(typeface);
/external/chromium_org/third_party/WebKit/Source/platform/fonts/mac/
H A DFontCustomPlatformDataMac.cpp35 FontCustomPlatformData::FontCustomPlatformData(CGFontRef cgFont, PassRefPtr<SkTypeface> typeface) argument
37 , m_typeface(typeface)
71 RefPtr<SkTypeface> typeface = adoptRef(SkTypeface::CreateFromStream(stream.get())); local
72 if (!typeface)
75 return adoptPtr(new FontCustomPlatformData(cgFontRef.leakRef(), typeface.release()));
/external/chromium_org/third_party/skia/src/pdf/
H A DSkPDFFontImpl.h32 SkPDFType0Font(const SkAdvancedTypefaceMetrics* info, SkTypeface* typeface);
45 SkPDFCIDFont(const SkAdvancedTypefaceMetrics* info, SkTypeface* typeface,
61 SkPDFType1Font(const SkAdvancedTypefaceMetrics* info, SkTypeface* typeface,
79 SkTypeface* typeface, uint16_t glyphID);
H A DSkPDFFont.h88 /** Returns the typeface represented by this class. Returns NULL for the
89 * default typeface.
91 SkTypeface* typeface();
124 /** Get the font resource for the passed typeface and glyphID. The
129 * @param typeface The typeface to find.
132 static SkPDFFont* GetFontResource(SkTypeface* typeface, uint16_t glyphID);
144 SkPDFFont(const SkAdvancedTypefaceMetrics* fontInfo, SkTypeface* typeface,
175 SkTypeface* typeface, uint16_t glyphID,
H A DSkPDFFont.cpp585 const SkTypeface* typeface,
589 SkAutoTUnref<SkStream> fontData(typeface->openStream(&ttcIndex));
770 SkTypeface* SkPDFFont::typeface() {
820 SkPDFFont* SkPDFFont::GetFontResource(SkTypeface* typeface, uint16_t glyphID) {
823 SkAutoResolveDefaultTypeface autoResolve(typeface);
824 typeface = autoResolve.get();
826 const uint32_t fontID = typeface->uniqueID();
863 typeface->getAdvancedTypefaceMetrics(info, NULL, 0));
871 typeface->getAdvancedTypefaceMetrics(info, NULL, 0));
876 SkPDFFont* font = Create(fontMetrics.get(), typeface, glyphI
[all...]
/external/skia/src/pdf/
H A 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);
H A DSkPDFFont.h88 /** Returns the typeface represented by this class. Returns NULL for the
89 * default typeface.
91 SkTypeface* typeface();
124 /** Get the font resource for the passed typeface and glyphID. The
129 * @param typeface The typeface to find.
132 static SkPDFFont* GetFontResource(SkTypeface* typeface, uint16_t glyphID);
144 SkPDFFont(SkAdvancedTypefaceMetrics* fontInfo, SkTypeface* typeface,
175 SkTypeface* typeface, uint16_t glyphID,
H A DSkPDFFont.cpp572 const SkTypeface* typeface,
576 SkAutoTUnref<SkStream> fontData(typeface->openStream(&ttcIndex));
756 SkTypeface* SkPDFFont::typeface() {
806 SkPDFFont* SkPDFFont::GetFontResource(SkTypeface* typeface, uint16_t glyphID) {
809 SkAutoResolveDefaultTypeface autoResolve(typeface);
810 typeface = autoResolve.get();
812 const uint32_t fontID = typeface->uniqueID();
849 typeface->getAdvancedTypefaceMetrics(info, NULL, 0));
857 typeface->getAdvancedTypefaceMetrics(info, NULL, 0));
862 SkPDFFont* font = Create(fontMetrics.get(), typeface, glyphI
[all...]
/external/chromium_org/third_party/skia/src/core/
H A DSkGlyphCache.h28 This class represents a strike: a specific combination of typeface, size,
147 static SkGlyphCache* DetachCache(SkTypeface* typeface, argument
149 return VisitCache(typeface, desc, DetachProc, NULL);
248 SkAutoGlyphCacheBase(SkTypeface* typeface, const SkDescriptor* desc) { argument
249 fCache = SkGlyphCache::DetachCache(typeface, desc);
274 SkAutoGlyphCache(SkTypeface* typeface, const SkDescriptor* desc) : argument
275 SkAutoGlyphCacheBase(typeface, desc) {}
290 SkAutoGlyphCacheNoGamma(SkTypeface* typeface, const SkDescriptor* desc) : argument
291 SkAutoGlyphCacheBase(typeface, desc) {}
/external/skia/src/core/
H A DSkGlyphCache.h28 This class represents a strike: a specific combination of typeface, size,
161 static SkGlyphCache* DetachCache(SkTypeface* typeface, argument
163 return VisitCache(typeface, desc, DetachProc, NULL);
262 SkAutoGlyphCacheBase(SkTypeface* typeface, const SkDescriptor* desc) { argument
263 fCache = SkGlyphCache::DetachCache(typeface, desc);
288 SkAutoGlyphCache(SkTypeface* typeface, const SkDescriptor* desc) : argument
289 SkAutoGlyphCacheBase(typeface, desc) {}
304 SkAutoGlyphCacheNoGamma(SkTypeface* typeface, const SkDescriptor* desc) : argument
305 SkAutoGlyphCacheBase(typeface, desc) {}
/external/chromium_org/third_party/skia/include/ports/
H A DSkTypeface_win.h15 * corresponding typeface for the specified logfont. The caller is responsible
21 * Copy the LOGFONT associated with this typeface into the lf parameter. Note
22 * that the lfHeight will need to be set afterwards, since the typeface does
24 * typeface may be NULL, in which case we return the logfont for the default font.
26 SK_API void SkLOGFONTFromTypeface(const SkTypeface* typeface, LOGFONT* lf);
/external/skia/include/ports/
H A DSkTypeface_win.h15 * corresponding typeface for the specified logfont. The caller is responsible
21 * Copy the LOGFONT associated with this typeface into the lf parameter. Note
22 * that the lfHeight will need to be set afterwards, since the typeface does
24 * typeface may be NULL, in which case we return the logfont for the default font.
26 SK_API void SkLOGFONTFromTypeface(const SkTypeface* typeface, LOGFONT* lf);
/external/chromium_org/third_party/WebKit/Source/platform/fonts/android/
H A DFontCacheAndroid.cpp55 RefPtr<SkTypeface> typeface = adoptRef(fm->matchFamilyStyleCharacter(0, SkFontStyle(), bcp47Locales, localeCount, c)); local
56 if (!typeface)
60 typeface->getFamilyName(&skiaFamilyName);
/external/chromium_org/third_party/WebKit/Source/platform/fonts/harfbuzz/
H A DHarfBuzzFaceSkia.cpp132 SkTypeface* typeface = hbFontData->m_paint.getTypeface(); local
137 if (typeface->getKerningPairAdjustments(glyphs, 2, kerningAdjustments)) {
138 SkScalar upm = SkIntToScalar(typeface->getUnitsPerEm());
154 SkTypeface* typeface = hbFontData->m_paint.getTypeface(); local
159 if (typeface->getKerningPairAdjustments(glyphs, 2, kerningAdjustments)) {
160 SkScalar upm = SkIntToScalar(typeface->getUnitsPerEm());
197 SkTypeface* typeface = reinterpret_cast<SkTypeface*>(userData); local
199 const size_t tableSize = typeface->getTableSize(tag);
206 size_t actualSize = typeface->getTableData(tag, 0, tableSize, buffer);
223 hb_face_t* face = hb_face_create_for_tables(harfBuzzSkiaGetTable, m_platformData->typeface(),
[all...]
/external/chromium_org/ui/gfx/
H A Dplatform_font_pango.cc34 // fallback typeface is used instead of the requested family, |family| will be
45 skia::RefPtr<SkTypeface> typeface = skia::AdoptRef(SkTypeface::CreateFromName( local
47 if (!typeface) {
50 typeface = skia::AdoptRef(SkTypeface::CreateFromName(
52 CHECK(typeface) << "Could not find any font: " << family << ", "
56 return typeface;
157 skia::RefPtr<SkTypeface> typeface = local
165 return Font(new PlatformFontPango(typeface, new_family, new_size, style,
240 PlatformFontPango::PlatformFontPango(const skia::RefPtr<SkTypeface>& typeface, argument
245 InitFromDetails(typeface, nam
250 InitFromDetails( const skia::RefPtr<SkTypeface>& typeface, const std::string& font_family, int font_size_pixels, int style, const FontRenderParams& render_params) argument
[all...]
/external/chromium_org/content/renderer/
H A Drenderer_main_platform_delegate_win.cc62 SkTypeface* typeface = local
64 DoPreSandboxWarmupForTypeface(typeface);
/external/chromium_org/third_party/skia/src/animator/
H A DSkPaintPart.cpp85 if (fPaint->typeface != (SkDrawTypeface*) -1)
87 fPaint->typeface = this;
94 SkDebugf("%*s<typeface fontName=\"%s\" ", SkDisplayList::fIndent, "", fontName.c_str());
H A DSkDrawPaint.cpp58 SK_MEMBER(typeface, Typeface),
73 textSkewX(SK_ScalarNaN), typeface((SkDrawTypeface*) -1),
88 delete typeface;
141 typeface->dump(maker);
208 if (fOwnsTypeface && maker.resolveID(typeface, original->typeface) == false)
259 if (typeface == NULL)
261 else if (typeface != (SkDrawTypeface*) -1)
262 SkSafeUnref(paint->setTypeface(typeface->getTypeface()));
/external/skia/src/animator/
H A DSkPaintPart.cpp85 if (fPaint->typeface != (SkDrawTypeface*) -1)
87 fPaint->typeface = this;
94 SkDebugf("%*s<typeface fontName=\"%s\" ", SkDisplayList::fIndent, "", fontName.c_str());
H A DSkDrawPaint.cpp58 SK_MEMBER(typeface, Typeface),
73 textSkewX(SK_ScalarNaN), typeface((SkDrawTypeface*) -1),
88 delete typeface;
141 typeface->dump(maker);
208 if (fOwnsTypeface && maker.resolveID(typeface, original->typeface) == false)
259 if (typeface == NULL)
261 else if (typeface != (SkDrawTypeface*) -1)
262 SkSafeUnref(paint->setTypeface(typeface->getTypeface()));
/external/skia/src/ports/
H A DSkFontHost_FreeType_common.h36 SkScalerContext_FreeType_Base(SkTypeface* typeface, const SkDescriptor *desc) argument
37 : INHERITED(typeface, desc)
/external/chromium_org/chrome/common/
H A Dbadge_util.cc73 skia::RefPtr<SkTypeface> typeface = skia::AdoptRef( local
76 // typeface will be NULL. If we don't do manual fallback then we'll crash.
77 if (typeface) {
86 typeface = skia::AdoptRef(SkTypeface::CreateFromName(
88 DCHECK(typeface);
91 text_paint->setTypeface(typeface.get());

Completed in 602 milliseconds

12345