/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/skia/include/ports/ |
SkTypeface_win.h | 17 * Like the other Typeface create methods, this returns a new reference to the 18 * corresponding typeface for the specified logfont. The caller is responsible 24 * Copy the LOGFONT associated with this typeface into the lf parameter. Note 25 * that the lfHeight will need to be set afterwards, since the typeface does 27 * typeface may be NULL, in which case we return the logfont for the default font. 29 SK_API void SkLOGFONTFromTypeface(const SkTypeface* typeface, LOGFONT* lf);
|
/external/skia/include/ports/ |
SkTypeface_win.h | 17 * Like the other Typeface create methods, this returns a new reference to the 18 * corresponding typeface for the specified logfont. The caller is responsible 24 * Copy the LOGFONT associated with this typeface into the lf parameter. Note 25 * that the lfHeight will need to be set afterwards, since the typeface does 27 * typeface may be NULL, in which case we return the logfont for the default font. 29 SK_API void SkLOGFONTFromTypeface(const SkTypeface* typeface, LOGFONT* lf);
|
/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/core/platform/graphics/mac/ |
FontCustomPlatformDataMac.cpp | 36 FontCustomPlatformData::FontCustomPlatformData(CGFontRef cgFont, PassRefPtr<SkTypeface> typeface) 38 , m_typeface(typeface) 72 RefPtr<SkTypeface> typeface = adoptRef(SkTypeface::CreateFromStream(stream.get())); local 73 if (!typeface) 76 return adoptPtr(new FontCustomPlatformData(cgFontRef.leakRef(), typeface.release()));
|
/external/chromium_org/third_party/WebKit/Source/core/platform/graphics/skia/ |
FontCustomPlatformDataSkia.cpp | 48 FontCustomPlatformData::FontCustomPlatformData(PassRefPtr<SkTypeface> typeface) 49 : m_typeface(typeface) 74 RefPtr<SkTypeface> typeface = adoptRef(SkTypeface::CreateFromStream(stream.get())); local 75 if (!typeface) 78 return adoptPtr(new FontCustomPlatformData(typeface.release()));
|
FontPlatformDataSkia.cpp | 43 return fontCache()->getVerticalData(typeface()->uniqueID(), *this);
|
/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/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 | 87 /** Returns the typeface represented by this class. Returns NULL for the 88 * default typeface. 90 SkTypeface* typeface(); 115 /** Get the font resource for the passed typeface and glyphID. The 120 * @param typeface The typeface to find. 123 static SkPDFFont* GetFontResource(SkTypeface* typeface, 136 SkPDFFont(SkAdvancedTypefaceMetrics* fontInfo, SkTypeface* typeface, 167 SkTypeface* typeface, uint16_t glyphID,
|
SkPDFFont.cpp | 547 const SkTypeface* typeface, 551 SkAutoTUnref<SkStream> fontData(typeface->openStream(&ttcIndex)); 731 SkTypeface* SkPDFFont::typeface() { 764 SkPDFFont* SkPDFFont::GetFontResource(SkTypeface* typeface, uint16_t glyphID) { 767 SkAutoResolveDefaultTypeface autoResolve(typeface); 768 typeface = autoResolve.get(); 770 const uint32_t fontID = typeface->uniqueID(); 807 typeface->getAdvancedTypefaceMetrics(info, NULL, 0)); 815 typeface->getAdvancedTypefaceMetrics(info, NULL, 0)); 820 SkPDFFont* font = Create(fontMetrics.get(), typeface, glyphID [all...] |
/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 | 87 /** Returns the typeface represented by this class. Returns NULL for the 88 * default typeface. 90 SkTypeface* typeface(); 115 /** Get the font resource for the passed typeface and glyphID. The 120 * @param typeface The typeface to find. 123 static SkPDFFont* GetFontResource(SkTypeface* typeface, 136 SkPDFFont(SkAdvancedTypefaceMetrics* fontInfo, SkTypeface* typeface, 167 SkTypeface* typeface, uint16_t glyphID,
|
SkPDFFont.cpp | 547 const SkTypeface* typeface, 551 SkAutoTUnref<SkStream> fontData(typeface->openStream(&ttcIndex)); 731 SkTypeface* SkPDFFont::typeface() { 764 SkPDFFont* SkPDFFont::GetFontResource(SkTypeface* typeface, uint16_t glyphID) { 767 SkAutoResolveDefaultTypeface autoResolve(typeface); 768 typeface = autoResolve.get(); 770 const uint32_t fontID = typeface->uniqueID(); 807 typeface->getAdvancedTypefaceMetrics(info, NULL, 0)); 815 typeface->getAdvancedTypefaceMetrics(info, NULL, 0)); 820 SkPDFFont* font = Create(fontMetrics.get(), typeface, glyphID [all...] |
/external/chromium_org/ui/gfx/ |
platform_font_pango.cc | 163 // Fast path, we just use the same typeface at a different size 177 skia::RefPtr<SkTypeface> typeface = skia::AdoptRef( local 182 return Font(new PlatformFontPango(typeface, 255 PlatformFontPango::PlatformFontPango(const skia::RefPtr<SkTypeface>& typeface, 259 InitWithTypefaceNameSizeAndStyle(typeface, name, size, style); 269 skia::RefPtr<SkTypeface> typeface = skia::AdoptRef( local 271 if (!typeface) { 274 typeface = skia::AdoptRef( 277 CHECK(typeface) << "Could not find any font: " 283 InitWithTypefaceNameSizeAndStyle(typeface, [all...] |
platform_font_pango.h | 56 PlatformFontPango(const skia::RefPtr<SkTypeface>& typeface, 65 const skia::RefPtr<SkTypeface>& typeface, 74 // Setup a Skia context to use the current typeface.
|
/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 | 220 dirFlags(0), typeface(NULL), textSize(0), textSkewX(0), textScaleX(0), flags(0), 230 typeface = paint->getTypeface(); 245 typeface(other.typeface), 264 if (lhs.typeface < rhs.typeface) return -1; 265 if (lhs.typeface > rhs.typeface) return +1; 299 hash = JenkinsHashMix(hash, hash_type(typeface)); 777 * Return the first typeface in the logical change, starting with this typeface 812 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/core/platform/graphics/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);
|