HomeSort by relevance Sort by last modified time
    Searched refs:typeface (Results 1 - 25 of 47) sorted by null

1 2

  /external/skia/src/ports/
SkFontHost_sandbox_none.cpp 12 void SkFontHost::EnsureTypefaceAccessible(const SkTypeface& typeface) {
SkFontHost_fontconfig.cpp 281 SkTypeface* typeface = SkNEW_ARGS(FontConfigTypeface, (style, id)); local
286 global_fc_typefaces[id] = typeface;
289 return typeface;
SkFontHost_android.cpp 111 // we use atomic_inc to grow this for each typeface we create
176 /* Returns the matching typeface, or NULL. If a typeface is found, its refcnt
193 /* Returns the matching typeface, or NULL. If a typeface is found, its refcnt
289 static void addTypefaceLocked(SkTypeface* typeface, SkTypeface* familyMember) {
299 rec->fFaces[typeface->style()] = typeface;
302 static void removeTypeface(SkTypeface* typeface) {
307 FamilyRec* family = removeFromFamilyLocked(typeface);
1077 SkTypeface* typeface = SkNEW_ARGS(StreamTypeface, (style, false, stream, isFixedWidth)); local
1180 SkTypeface* typeface; member in struct:TypefaceLookupStruct
    [all...]
  /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...]
PaintTest.java 31 import android.graphics.Typeface;
41 private static final Typeface[] TYPEFACES = new Typeface[] {
42 Typeface.DEFAULT,
43 Typeface.DEFAULT_BOLD,
44 Typeface.MONOSPACE,
45 Typeface.SANS_SERIF,
46 Typeface.SERIF,
154 Typeface t = Typeface.DEFAULT
    [all...]
  /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);
  /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/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,
SkPDFFont.cpp 538 const SkTypeface* typeface,
542 SkFontHost::OpenStream(SkTypeface::UniqueID(typeface));
707 SkTypeface* SkPDFFont::typeface() {
740 SkPDFFont* SkPDFFont::GetFontResource(SkTypeface* typeface, uint16_t glyphID) {
742 const uint32_t fontID = SkTypeface::UniqueID(typeface);
781 SkPDFFont* font = Create(fontMetrics.get(), typeface, glyphID,
820 SkPDFFont::SkPDFFont(SkAdvancedTypefaceMetrics* info, SkTypeface* typeface,
823 fTypeface(typeface),
838 SkTypeface* typeface, uint16_t glyphID,
846 typeface,
    [all...]
  /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/webkit/Source/WebCore/platform/graphics/android/fonts/
FontCustomPlatformData.h 49 SkTypeface* typeface() const { return m_typeface; } function in class:WebCore::FontCustomPlatformData
FontPlatformData.h 61 FontPlatformData(const FontPlatformData& src, SkTypeface* typeface);
94 SkTypeface* typeface() const { return m_typeface; } function in class:WebCore::FontPlatformData
  /external/skia/include/pdf/
SkPDFFont.h 86 /** Returns the typeface represented by this class. Returns NULL for the
87 * default typeface.
89 SK_API SkTypeface* typeface();
114 /** Get the font resource for the passed typeface and glyphID. The
119 * @param typeface The typeface to find.
122 SK_API static SkPDFFont* GetFontResource(SkTypeface* typeface,
135 SkPDFFont(SkAdvancedTypefaceMetrics* fontInfo, SkTypeface* typeface,
166 SkTypeface* typeface, uint16_t glyphID,
  /frameworks/base/libs/hwui/
TextDropShadowCache.h 35 ShadowText(): radius(0), len(0), textSize(0.0f), typeface(NULL) {
45 typeface = paint->getTypeface();
65 SkTypeface* typeface; member in struct:android::uirenderer::ShadowText
88 LTE_INT(typeface) {
  /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...]
SkDrawPaint.h 64 SkDrawTypeface* typeface; member in class:SkDrawPaint
  /external/webkit/Source/WebCore/platform/graphics/skia/
FontCustomPlatformData.h 63 explicit FontCustomPlatformData(SkTypeface* typeface)
64 : m_fontReference(typeface)
FontCustomPlatformData.cpp 192 SkTypeface* typeface = SkTypeface::CreateFromStream(stream);
193 if (!typeface)
195 return new FontCustomPlatformData(typeface);
  /frameworks/base/core/jni/android/graphics/
TextLayoutCache.cpp 226 dirFlags(0), typeface(NULL), textSize(0), textSkewX(0), textScaleX(0), flags(0),
235 typeface = paint->getTypeface();
251 typeface(other.typeface),
271 if (lhs.typeface < rhs.typeface) return -1;
272 if (lhs.typeface > rhs.typeface) return +1;
754 * Return the first typeface in the logical change, starting with this typeface,
794 SkTypeface* typeface = paint->getTypeface(); local
    [all...]
HarfbuzzSkia.cpp 193 SkTypeface* typeface = static_cast<SkTypeface*>(font); local
195 if (!typeface) {
196 ALOGD("Typeface cannot be null");
199 const size_t tableSize = SkFontHost::GetTableSize(typeface->uniqueID(), tag);
210 SkFontHost::GetTableData(typeface->uniqueID(), tag, 0, tableSize, buffer);
TextLayoutCache.h 94 SkTypeface* typeface; member in class:android::TextLayoutCacheKey
194 * Skia default typeface to be returned if we cannot resolve script
221 SkTypeface* typefaceForScript(const SkPaint* paint, SkTypeface* typeface,
236 SkTypeface* getCachedTypeface(SkTypeface** typeface, HB_Script script, SkTypeface::Style style);
237 HB_Face getCachedHBFace(SkTypeface* typeface);
  /external/skia/src/core/
SkTypefaceCache.cpp 99 SkTypeface* typeface = Get().findByProc(proc, ctx); local
100 SkSafeRef(typeface);
101 return typeface;
  /external/skia/include/core/
SkFontHost.h 30 underlying font file/data, not unique per typeface instance. Thus it is
31 possible/common to request a typeface for the same font more than once
33 return seperate typeface instances in that case, or it may choose to use a
34 cache and return the same instance (but calling typeface->ref(), since the
44 a typeface that allows access to that data.
45 3) Each typeface instance carries a 32bit ID for its corresponding font.
53 /** Return a new, closest matching typeface given either an existing family
54 (specified by a typeface in that family) or by a familyName and a
66 /** Return a new typeface given the data buffer. If the data does not
69 If a typeface instance is returned, the caller is responsible fo
    [all...]
  /frameworks/base/tools/layoutlib/bridge/src/android/graphics/
Typeface_Delegate.java 33 * Delegate implementing the native methods of android.graphics.Typeface
35 * Through the layoutlib_create tool, the original native methods of Typeface have been replaced
40 * it and the original Typeface class.
82 public static List<Font> getFonts(Typeface typeface) {
83 return getFonts(typeface.native_instance);
143 "Typeface.createFromAsset() is not supported.", null /*throwable*/, null /*data*/);
166 "Typeface.createFromFile() can only work with platform fonts located in " +
205 mStyle = Typeface.NORMAL;

Completed in 1414 milliseconds

1 2