/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/third_party/WebKit/Source/platform/fonts/skia/ |
GlyphPageTreeNodeSkia.cpp | 53 SkTypeface* typeface = fontData->platformData().typeface(); local 54 typeface->charsToGlyphs(buffer, SkTypeface::kUTF16_Encoding, glyphs, length);
|
FontCustomPlatformDataSkia.cpp | 47 FontCustomPlatformData::FontCustomPlatformData(PassRefPtr<SkTypeface> typeface) 48 : m_typeface(typeface) 76 RefPtr<SkTypeface> typeface = adoptRef(SkTypeface::CreateFromName(name.c_str(), static_cast<SkTypeface::Style>(style))); local 79 return FontPlatformData(typeface.release(), "", size, syntheticBold, syntheticItalic, orientation); 97 RefPtr<SkTypeface> typeface = adoptRef(FontCache::fontCache()->fontManager()->createFromStream(stream.get())); local 99 RefPtr<SkTypeface> typeface = adoptRef(SkTypeface::CreateFromStream(stream.get())); local 101 if (!typeface) 104 return adoptPtr(new FontCustomPlatformData(typeface.release()));
|
FontPlatformDataSkia.cpp | 61 return FontCache::fontCache()->getVerticalData(typeface()->uniqueID(), *this);
|
/frameworks/base/graphics/java/android/graphics/ |
Typeface.java | 25 * The Typeface class specifies the typeface and intrinsic style of a font. 30 public class Typeface { 32 /** The default NORMAL typeface object */ 33 public static final Typeface DEFAULT; 35 * The default BOLD typeface object. Note: this may be not actually be 39 public static final Typeface DEFAULT_BOLD; 40 /** The NORMAL style of the default sans serif typeface. */ 41 public static final Typeface SANS_SERIF; 42 /** The NORMAL style of the default serif typeface. * 113 Typeface typeface; local [all...] |
/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/chrome/common/ |
badge_util.cc | 30 SkTypeface* typeface = SkTypeface::CreateFromName( local 33 // typeface will be NULL. If we don't do manual fallback then we'll crash. 34 if (typeface) { 43 typeface = SkTypeface::CreateFromName( 45 DCHECK(typeface); 48 text_paint->setTypeface(typeface); 50 typeface->unref();
|
/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/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(); 116 /** Get the font resource for the passed typeface and glyphID. The 121 * @param typeface The typeface to find. 124 static SkPDFFont* GetFontResource(SkTypeface* typeface, 137 SkPDFFont(SkAdvancedTypefaceMetrics* fontInfo, SkTypeface* typeface, 168 SkTypeface* typeface, uint16_t glyphID,
|
/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);
|
/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(); 116 /** Get the font resource for the passed typeface and glyphID. The 121 * @param typeface The typeface to find. 124 static SkPDFFont* GetFontResource(SkTypeface* typeface, 137 SkPDFFont(SkAdvancedTypefaceMetrics* fontInfo, SkTypeface* typeface, 168 SkTypeface* typeface, uint16_t glyphID,
|
/external/chromium_org/ui/gfx/ |
platform_font_pango.cc | 153 // Fast path, we just use the same typeface at a different size 167 skia::RefPtr<SkTypeface> typeface = skia::AdoptRef( local 172 return Font(new PlatformFontPango(typeface, 261 PlatformFontPango::PlatformFontPango(const skia::RefPtr<SkTypeface>& typeface, 265 InitWithTypefaceNameSizeAndStyle(typeface, name, size, style); 302 skia::RefPtr<SkTypeface> typeface = skia::AdoptRef( local 304 if (!typeface) { 307 typeface = skia::AdoptRef( 310 CHECK(typeface) << "Could not find any font: " 316 InitWithTypefaceNameSizeAndStyle(typeface, [all...] |
/external/chromium_org/third_party/skia/src/animator/ |
SkPaintParts.cpp | 71 // Typeface 87 if (fPaint->typeface != (SkDrawTypeface*) -1) 89 fPaint->typeface = this; 96 SkDebugf("%*s<typeface fontName=\"%s\" ", SkDisplayList::fIndent, "", fontName.c_str());
|
SkDrawPaint.cpp | 60 SK_MEMBER(typeface, Typeface), 75 textSkewX(SK_ScalarNaN), typeface((SkDrawTypeface*) -1), 90 delete typeface; 143 typeface->dump(maker); 210 if (fOwnsTypeface && maker.resolveID(typeface, original->typeface) == false) 261 if (typeface == NULL) 263 else if (typeface != (SkDrawTypeface*) -1) 264 SkSafeUnref(paint->setTypeface(typeface->getTypeface())) [all...] |
/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/ |
SkPaintParts.cpp | 71 // Typeface 87 if (fPaint->typeface != (SkDrawTypeface*) -1) 89 fPaint->typeface = this; 96 SkDebugf("%*s<typeface fontName=\"%s\" ", SkDisplayList::fIndent, "", fontName.c_str());
|
SkDrawPaint.cpp | 60 SK_MEMBER(typeface, Typeface), 75 textSkewX(SK_ScalarNaN), typeface((SkDrawTypeface*) -1), 90 delete typeface; 143 typeface->dump(maker); 210 if (fOwnsTypeface && maker.resolveID(typeface, original->typeface) == false) 261 if (typeface == NULL) 263 else if (typeface != (SkDrawTypeface*) -1) 264 SkSafeUnref(paint->setTypeface(typeface->getTypeface())) [all...] |
/external/skia/src/ports/ |
SkFontHost_FreeType_common.h | 36 SkScalerContext_FreeType_Base(SkTypeface* typeface, const SkDescriptor *desc) 37 : INHERITED(typeface, desc)
|
/frameworks/base/core/jni/android/graphics/ |
TextLayoutCache.cpp | 221 dirFlags(0), typeface(NULL), textSize(0), textSkewX(0), textScaleX(0), flags(0), 231 typeface = paint->getTypeface(); 246 typeface(other.typeface), 265 if (lhs.typeface < rhs.typeface) return -1; 266 if (lhs.typeface > rhs.typeface) return +1; 300 hash = JenkinsHashMix(hash, hash_type(typeface)); 778 * Return the first typeface in the logical change, starting with this typeface 813 SkTypeface* typeface = paint->getTypeface(); local [all...] |
/frameworks/base/libs/hwui/ |
TextDropShadowCache.h | 36 ShadowText(): len(0), radius(0.0f), textSize(0.0f), typeface(NULL), 48 typeface = paint->getTypeface(); 88 SkTypeface* typeface; member in struct:android::uirenderer::ShadowText
|
/external/chromium_org/third_party/WebKit/Source/platform/fonts/harfbuzz/ |
HarfBuzzFaceSkia.cpp | 147 SkTypeface* typeface = reinterpret_cast<SkTypeface*>(userData); local 149 const size_t tableSize = typeface->getTableSize(tag); 156 size_t actualSize = typeface->getTableData(tag, 0, tableSize, buffer); 173 hb_face_t* face = hb_face_create_for_tables(harfBuzzSkiaGetTable, m_platformData->typeface(), 0);
|
/external/chromium_org/third_party/skia/src/core/ |
SkGlyphCache.h | 28 This class represents a strike: a specific combination of typeface, size, 157 static SkGlyphCache* DetachCache(SkTypeface* typeface, 159 return VisitCache(typeface, desc, DetachProc, NULL); 246 SkAutoGlyphCache(SkTypeface* typeface, const SkDescriptor* desc) { 247 fCache = SkGlyphCache::DetachCache(typeface, desc);
|
/external/skia/src/core/ |
SkGlyphCache.h | 28 This class represents a strike: a specific combination of typeface, size, 157 static SkGlyphCache* DetachCache(SkTypeface* typeface, 159 return VisitCache(typeface, desc, DetachProc, NULL); 246 SkAutoGlyphCache(SkTypeface* typeface, const SkDescriptor* desc) { 247 fCache = SkGlyphCache::DetachCache(typeface, desc);
|