/cts/tests/tests/graphics/src/android/graphics/cts/ |
TypefaceTest.java | 21 import android.graphics.Typeface; 37 // list of family names to try when attempting to find a typeface with a given style 42 * Create a typeface of the given style. If the default font does not support the style, 44 * @return The typeface or null, if no typeface with the given style can be found. 46 private Typeface createTypeface(int style) { 48 Typeface tf = Typeface.create(family, style); 58 Typeface typeface = createTypeface(Typeface.BOLD) local 88 Typeface typeface = Typeface.create(DEFAULT, Typeface.NORMAL); local 102 Typeface typeface = Typeface.defaultFromStyle(Typeface.NORMAL); local 129 Typeface typeface = Typeface.createFromAsset(getContext().getAssets(), "samplefont.ttf"); local 142 Typeface typeface = Typeface.createFromFile(file); local 155 Typeface typeface = Typeface.createFromFile(obtainPath()); local 181 Typeface typeface = Typeface.createFromAsset(getContext().getAssets(), "bombfont.ttf"); local 192 Typeface typeface = Typeface.createFromAsset(getContext().getAssets(), "bombfont2.ttf"); local [all...] |
/external/skia/src/gpu/ |
GrPathRendering.cpp | 17 GlyphGenerator(const SkTypeface& typeface, const SkDescriptor& desc) 18 : fScalerContext(typeface.createScalerContext(&desc)) 53 GrPathRange* GrPathRendering::createGlyphs(const SkTypeface* typeface, 56 if (nullptr == typeface) { 57 typeface = SkTypeface::GetDefaultTypeface(); 58 SkASSERT(nullptr != typeface); 62 SkAutoTUnref<GlyphGenerator> generator(new GlyphGenerator(*typeface, *desc)); 68 rec.fFontID = typeface->uniqueID(); 80 SkAutoTUnref<GlyphGenerator> generator(new GlyphGenerator(*typeface, *genericDesc));
|
/frameworks/base/libs/hwui/hwui/ |
MinikinUtils.cpp | 20 #include "Typeface.h" 28 const Paint* paint, Typeface* typeface) { 29 const Typeface* resolvedFace = Typeface::resolveDefault(typeface); 54 Typeface* typeface, const uint16_t* buf, size_t start, size_t count, 58 FontStyle minikinStyle = prepareMinikinPaint(&minikinPaint, &font, paint, typeface); 63 float MinikinUtils::measureText(const Paint* paint, int bidiFlags, Typeface* typeface [all...] |
MinikinUtils.h | 31 #include "Typeface.h" 38 const Paint* paint, Typeface* typeface); 41 Typeface* typeface, const uint16_t* buf, size_t start, size_t count, 44 ANDROID_API static float measureText(const Paint* paint, int bidiFlags, Typeface* typeface, 47 ANDROID_API static bool hasVariationSelector(Typeface* typeface, uint32_t codepoint, uint32_t vs);
|
Typeface.cpp | 18 * This is the implementation of the Typeface object. Historically, it has 23 #include "Typeface.h" 37 static void resolveStyle(Typeface* typeface) { 38 int weight = typeface->fBaseWeight / 100; 39 if (typeface->fSkiaStyle & SkTypeface::kBold) { 45 bool italic = (typeface->fSkiaStyle & SkTypeface::kItalic) != 0; 46 typeface->fStyle = FontStyle(weight, italic); 49 Typeface* gDefaultTypeface = NULL; 52 // This installs a default typeface (from a hardcoded path) that allow [all...] |
MinikinSkia.h | 31 explicit MinikinFontSkia(SkTypeface *typeface, const void* fontData, size_t fontSize, 54 // set typeface and fake bold/italic parameters
|
/external/skia/src/pdf/ |
SkPDFFontImpl.h | 34 SkTypeface* typeface); 48 SkTypeface* typeface, 65 SkTypeface* typeface, 84 SkTypeface* typeface,
|
SkPDFFont.h | 85 /** Returns the typeface represented by this class. Returns nullptr for the 86 * default typeface. 88 SkTypeface* typeface(); 121 /** Get the font resource for the passed typeface and glyphID. The 126 * @param typeface The typeface to find. 130 SkTypeface* typeface, 153 * Return false iff the typeface has its NotEmbeddable flag set. 154 * If typeface is NULL, the default typeface is checked [all...] |
SkPDFFont.cpp | 590 const SkTypeface* typeface, 594 SkAutoTDelete<SkStream> fontData(typeface->openStream(&ttcIndex)); 746 SkTypeface* SkPDFFont::typeface() { 797 SkTypeface* typeface, 800 SkAutoResolveDefaultTypeface autoResolve(typeface); 801 typeface = autoResolve.get(); 802 const uint32_t fontID = typeface->uniqueID(); 836 typeface->getAdvancedTypefaceMetrics(info, nullptr, 0)); 844 typeface->getAdvancedTypefaceMetrics(info, nullptr, 0)); 849 SkPDFFont* font = SkPDFFont::Create(canon, fontMetrics.get(), typeface, [all...] |
/frameworks/minikin/sample/ |
MinikinSkia.h | 5 explicit MinikinFontSkia(SkTypeface *typeface);
|
MinikinSkia.cpp | 9 MinikinFontSkia::MinikinFontSkia(SkTypeface *typeface) : 10 MinikinFont(typeface->uniqueID()), 11 mTypeface(typeface) { 18 static void MinikinFontSkia_SetSkiaPaint(SkTypeface* typeface, SkPaint* skPaint, const MinikinPaint& paint) { 19 skPaint->setTypeface(typeface); 33 ALOGD("width for typeface %d glyph %d = %f", mTypeface->uniqueID(), glyph_id
|
/frameworks/minikin/include/minikin/ |
FontFamily.h | 117 bool addFont(MinikinFont* typeface); 119 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
|
MinikinFontFreeType.h | 41 explicit MinikinFontFreeType(FT_Face typeface);
|
/frameworks/minikin/libs/minikin/ |
FontFamily.cpp | 76 mFonts[i].typeface->UnrefLocked(); 80 bool FontFamily::addFont(MinikinFont* typeface) { 83 HbBlob os2Table(getFontTable(typeface, os2Tag)); 90 addFontLocked(typeface, style); 98 void FontFamily::addFont(MinikinFont* typeface, FontStyle style) { 100 addFontLocked(typeface, style); 103 void FontFamily::addFontLocked(MinikinFont* typeface, FontStyle style) { 104 typeface->RefLocked(); 105 mFonts.push_back(Font(typeface, style)); 144 result.font = bestFont->typeface; 175 MinikinFont* typeface = getClosestMatch(defaultStyle).font; local [all...] |
/external/skia/include/ports/ |
SkTypeface_win.h | 16 * Like the other Typeface create methods, this returns a new reference to the 17 * corresponding typeface for the specified logfont. The caller is responsible 23 * Copy the LOGFONT associated with this typeface into the lf parameter. Note 24 * that the lfHeight will need to be set afterwards, since the typeface does 26 * typeface may be NULL, in which case we return the logfont for the default font. 28 SK_API void SkLOGFONTFromTypeface(const SkTypeface* typeface, LOGFONT* lf);
|
/external/skia/gm/ |
pdf_never_embed.cpp | 29 SkAutoTUnref<SkTypeface> typeface(GetResourceAsTypeface(resource)); 30 if (!typeface) { 35 p.setTypeface(typeface);
|
/frameworks/minikin/tests/ |
MinikinFontForTest.cpp | 29 MinikinFontForTest::MinikinFontForTest(const std::string& font_path, SkTypeface* typeface) : 30 MinikinFont(typeface->uniqueID()), 31 mTypeface(typeface),
|
MinikinFontForTest.h | 27 MinikinFontForTest(const std::string& font_path, SkTypeface* typeface);
|
/frameworks/base/graphics/java/android/graphics/ |
Typeface.java | 39 * The Typeface class specifies the typeface and intrinsic style of a font. 44 public class Typeface { 46 private static String TAG = "Typeface"; 48 /** The default NORMAL typeface object */ 49 public static final Typeface DEFAULT; 51 * The default BOLD typeface object. Note: this may be not actually be 55 public static final Typeface DEFAULT_BOLD; 56 /** The NORMAL style of the default sans serif typeface. */ 57 public static final Typeface SANS_SERIF 154 Typeface typeface; local 194 Typeface typeface = sDynamicTypefaceCache.get(key); local 350 Typeface typeface; local [all...] |
/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());
|
SkDrawPaint.cpp | 58 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 == nullptr) 261 else if (typeface != (SkDrawTypeface*) -1) 262 SkSafeUnref(paint->setTypeface(typeface->getTypeface())) [all...] |
/external/skia/bench/ |
SkGlyphCacheBench.cpp | 56 SkTypeface* typeface = sk_tool_utils::create_portable_typeface( variable 61 paint.setTypeface(typeface); 67 SkSafeUnref(typeface); variable
|
/external/skia/experimental/docs/ |
canvasBackend.js | 133 if ('typeface' in paint) { 134 var typeface = typefaces[paint.typeface]; 135 var font = typeface.style; 139 if ('family' in typeface) { 140 font += " " + typeface.family;
|
/frameworks/base/libs/hwui/ |
TextDropShadowCache.h | 37 ShadowText(): glyphCount(0), radius(0.0f), textSize(0.0f), typeface(nullptr), 47 , typeface(paint->getTypeface()) 83 SkTypeface* typeface; member in struct:android::uirenderer::ShadowText
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
ModeSelectorItem.java | 21 import android.graphics.Typeface; 74 Typeface typeface; local 76 typeface = Typeface.create("sans-serif-medium", Typeface.NORMAL); 78 // Load roboto_light typeface from assets. 79 typeface = Typeface.createFromAsset(getResources().getAssets(), 82 mText.setTypeface(typeface); [all...] |