/cts/tests/tests/graphics/src/android/graphics/cts/ |
TypefaceTest.java | 20 import android.graphics.Typeface; 24 import android.graphics.Typeface; 41 // list of family names to try when attempting to find a typeface with a given style 46 * Create a typeface of the given style. If the default font does not support the style, 48 * @return The typeface or null, if no typeface with the given style can be found. 50 private Typeface createTypeface(int style) { 52 Typeface tf = Typeface.create(family, style); 62 Typeface typeface = createTypeface(Typeface.BOLD) local 92 Typeface typeface = Typeface.create(DEFAULT, Typeface.NORMAL); local 106 Typeface typeface = Typeface.defaultFromStyle(Typeface.NORMAL); local 133 Typeface typeface = Typeface.createFromAsset(getContext().getAssets(), "samplefont.ttf"); local 146 Typeface typeface = Typeface.createFromFile(file); local 159 Typeface typeface = Typeface.createFromFile(obtainPath()); local [all...] |
/external/chromium_org/content/public/renderer/ |
render_font_warmup_win.h | 17 CONTENT_EXPORT void DoPreSandboxWarmupForTypeface(SkTypeface* typeface);
|
/external/chromium_org/third_party/WebKit/Source/web/win/ |
WebFontRendering.cpp | 31 void WebFontRendering::addSideloadedFontForTesting(SkTypeface* typeface) 33 WebCore::FontCache::addSideloadedFontForTesting(typeface);
|
/external/chromium_org/third_party/WebKit/Source/platform/fonts/skia/ |
FontCustomPlatformDataSkia.cpp | 47 FontCustomPlatformData::FontCustomPlatformData(PassRefPtr<SkTypeface> typeface) 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/platform/fonts/mac/ |
FontCustomPlatformDataMac.cpp | 35 FontCustomPlatformData::FontCustomPlatformData(CGFontRef cgFont, PassRefPtr<SkTypeface> typeface) 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/ |
SkPDFFontImpl.h | 32 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);
|
SkPDFFont.h | 88 /** 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,
|
/external/skia/src/pdf/ |
SkPDFFontImpl.h | 32 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);
|
SkPDFFont.h | 88 /** 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,
|
/frameworks/minikin/include/minikin/ |
FontFamily.h | 130 bool addFont(MinikinFont* typeface); 132 void addFont(MinikinFont* typeface, FontStyle style); 143 void addFontLocked(MinikinFont* typeface, FontStyle style); 147 Font(MinikinFont* typeface, FontStyle style) : 148 typeface(typeface), style(style) { } 149 MinikinFont* typeface; member in class:android::FontFamily::Font
|
/external/chromium_org/third_party/skia/src/core/ |
SkGlyphCache.h | 28 This class represents a strike: a specific combination of typeface, size, 161 static SkGlyphCache* DetachCache(SkTypeface* typeface, 163 return VisitCache(typeface, desc, DetachProc, NULL); 262 SkAutoGlyphCacheBase(SkTypeface* typeface, const SkDescriptor* desc) { 263 fCache = SkGlyphCache::DetachCache(typeface, desc); 288 SkAutoGlyphCache(SkTypeface* typeface, const SkDescriptor* desc) : 289 SkAutoGlyphCacheBase(typeface, desc) {} 304 SkAutoGlyphCacheNoGamma(SkTypeface* typeface, const SkDescriptor* desc) : 305 SkAutoGlyphCacheBase(typeface, desc) {}
|
/external/skia/src/core/ |
SkGlyphCache.h | 28 This class represents a strike: a specific combination of typeface, size, 161 static SkGlyphCache* DetachCache(SkTypeface* typeface, 163 return VisitCache(typeface, desc, DetachProc, NULL); 262 SkAutoGlyphCacheBase(SkTypeface* typeface, const SkDescriptor* desc) { 263 fCache = SkGlyphCache::DetachCache(typeface, desc); 288 SkAutoGlyphCache(SkTypeface* typeface, const SkDescriptor* desc) : 289 SkAutoGlyphCacheBase(typeface, desc) {} 304 SkAutoGlyphCacheNoGamma(SkTypeface* typeface, const SkDescriptor* desc) : 305 SkAutoGlyphCacheBase(typeface, desc) {}
|
/external/chromium_org/third_party/skia/include/ports/ |
SkTypeface_win.h | 14 * Like the other Typeface create methods, this returns a new reference to the 15 * 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/ |
SkTypeface_win.h | 14 * Like the other Typeface create methods, this returns a new reference to the 15 * 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);
|
/frameworks/minikin/sample/ |
MinikinSkia.h | 5 explicit MinikinFontSkia(SkTypeface *typeface);
|
MinikinSkia.cpp | 9 MinikinFontSkia::MinikinFontSkia(SkTypeface *typeface) : 10 mTypeface(typeface) { 28 static void MinikinFontSkia_SetSkiaPaint(SkTypeface* typeface, SkPaint* skPaint, const MinikinPaint& paint) { 29 skPaint->setTypeface(typeface); 43 ALOGD("width for typeface %d glyph %d = %f", mTypeface->uniqueID(), glyph_id
|
/frameworks/minikin/libs/minikin/ |
FontFamily.cpp | 98 mFonts[i].typeface->UnrefLocked(); 102 bool FontFamily::addFont(MinikinFont* typeface) { 106 bool ok = typeface->GetTable(os2Tag, NULL, &os2Size); 109 ok = typeface->GetTable(os2Tag, os2Data.get(), &os2Size); 116 addFontLocked(typeface, style); 124 void FontFamily::addFont(MinikinFont* typeface, FontStyle style) { 126 addFontLocked(typeface, style); 129 void FontFamily::addFontLocked(MinikinFont* typeface, FontStyle style) { typeface->RefLocked(); 130 mFonts.push_back(Font(typeface, style)) [all...] |
/frameworks/base/graphics/java/android/graphics/ |
Typeface.java | 37 * The Typeface class specifies the typeface and intrinsic style of a font. 42 public class Typeface { 44 private static String TAG = "Typeface"; 46 /** The default NORMAL typeface object */ 47 public static final Typeface DEFAULT; 49 * The default BOLD typeface object. Note: this may be not actually be 53 public static final Typeface DEFAULT_BOLD; 54 /** The NORMAL style of the default sans serif typeface. */ 55 public static final Typeface SANS_SERIF 147 Typeface typeface; local 297 Typeface typeface; local [all...] |
/external/chromium_org/third_party/WebKit/Source/platform/fonts/harfbuzz/ |
HarfBuzzFaceSkia.cpp | 128 SkTypeface* typeface = hbFontData->m_paint.getTypeface(); local 133 if (typeface->getKerningPairAdjustments(glyphs, 2, kerningAdjustments)) { 134 SkScalar upm = SkIntToScalar(typeface->getUnitsPerEm()); 150 SkTypeface* typeface = hbFontData->m_paint.getTypeface(); local 155 if (typeface->getKerningPairAdjustments(glyphs, 2, kerningAdjustments)) { 156 SkScalar upm = SkIntToScalar(typeface->getUnitsPerEm()); 193 SkTypeface* typeface = reinterpret_cast<SkTypeface*>(userData); local 195 const size_t tableSize = typeface->getTableSize(tag); 202 size_t actualSize = typeface->getTableData(tag, 0, tableSize, buffer); 219 hb_face_t* face = hb_face_create_for_tables(harfBuzzSkiaGetTable, m_platformData->typeface(), 0) [all...] |
/external/chromium_org/ui/gfx/ |
platform_font_pango.cc | 151 // Fast path, we just use the same typeface at a different size 165 skia::RefPtr<SkTypeface> typeface = skia::AdoptRef( local 170 return Font(new PlatformFontPango(typeface, 243 PlatformFontPango::PlatformFontPango(const skia::RefPtr<SkTypeface>& typeface, 247 InitWithTypefaceNameSizeAndStyle(typeface, name, size, style); 272 skia::RefPtr<SkTypeface> typeface = skia::AdoptRef( local 274 if (!typeface) { 277 typeface = skia::AdoptRef( 280 CHECK(typeface) << "Could not find any font: " 286 InitWithTypefaceNameSizeAndStyle(typeface, [all...] |
platform_font_pango.h | 63 PlatformFontPango(const skia::RefPtr<SkTypeface>& typeface, 76 const skia::RefPtr<SkTypeface>& typeface, 85 // Setup a Skia context to use the current typeface.
|
/external/chromium_org/content/renderer/ |
renderer_main_platform_delegate_win.cc | 61 SkTypeface* typeface = local 63 DoPreSandboxWarmupForTypeface(typeface);
|
/external/chromium_org/third_party/skia/src/animator/ |
SkPaintPart.cpp | 69 // Typeface 85 if (fPaint->typeface != (SkDrawTypeface*) -1) 87 fPaint->typeface = this; 94 SkDebugf("%*s<typeface fontName=\"%s\" ", SkDisplayList::fIndent, "", fontName.c_str());
|
/external/chromium_org/third_party/skia/src/ports/ |
SkFontHost_FreeType_common.h | 36 SkScalerContext_FreeType_Base(SkTypeface* typeface, const SkDescriptor *desc) 37 : INHERITED(typeface, desc)
|
/external/skia/src/animator/ |
SkPaintPart.cpp | 69 // Typeface 85 if (fPaint->typeface != (SkDrawTypeface*) -1) 87 fPaint->typeface = this; 94 SkDebugf("%*s<typeface fontName=\"%s\" ", SkDisplayList::fIndent, "", fontName.c_str());
|