/external/skia/tools/fonts/ |
create_test_font_color.cpp | 19 sk_sp<SkTestSVGTypeface> typeface = SkTestSVGTypeface::Default(); local 22 typeface->exportTtxCbdt(&cbdt); 27 typeface->exportTtxSbix(&sbix); 32 typeface->exportTtxColr(&colr);
|
sk_tool_utils_font.cpp | 31 sk_sp<SkTypeface> typeface = MakeResourceAsTypeface(filename); local 32 if (typeface) { 33 return typeface;
|
SkTestFontMgr.cpp | 30 TypefaceEntry(sk_sp<SkTypeface> typeface, SkFontStyle style, const char* styleName) 31 : fTypeface(std::move(typeface)) 67 sk_sp<SkTestTypeface> typeface = local 72 fDefaultTypeface = typeface; 77 family->fTypefaces.emplace_back(std::move(typeface), sub.fStyle, sub.fStyleName); 88 fFamilies.back()->fTypefaces.emplace_back(std::move(typeface), sub.fStyle, sub.fStyleName); 170 sk_sp<SkTypeface> typeface = sk_sp<SkTypeface>(this->matchFamilyStyle(familyName, style)); variable 171 if (!typeface) { 172 typeface = fDefaultTypeface; 174 return typeface; [all...] |
/external/skqp/tools/fonts/ |
create_test_font_color.cpp | 19 sk_sp<SkTestSVGTypeface> typeface = SkTestSVGTypeface::Default(); local 22 typeface->exportTtxCbdt(&cbdt); 27 typeface->exportTtxSbix(&sbix); 32 typeface->exportTtxColr(&colr);
|
sk_tool_utils_font.cpp | 31 sk_sp<SkTypeface> typeface = MakeResourceAsTypeface(filename); local 32 if (typeface) { 33 return typeface;
|
SkTestFontMgr.cpp | 30 TypefaceEntry(sk_sp<SkTypeface> typeface, SkFontStyle style, const char* styleName) 31 : fTypeface(std::move(typeface)) 67 sk_sp<SkTestTypeface> typeface = local 72 fDefaultTypeface = typeface; 77 family->fTypefaces.emplace_back(std::move(typeface), sub.fStyle, sub.fStyleName); 88 fFamilies.back()->fTypefaces.emplace_back(std::move(typeface), sub.fStyle, sub.fStyleName); 170 sk_sp<SkTypeface> typeface = sk_sp<SkTypeface>(this->matchFamilyStyle(familyName, style)); variable 171 if (!typeface) { 172 typeface = fDefaultTypeface; 174 return typeface; [all...] |
/external/skia/include/atlastext/ |
SkAtlasTextFont.h | 18 static sk_sp<SkAtlasTextFont> Make(sk_sp<SkTypeface> typeface, SkScalar size) { 19 return sk_sp<SkAtlasTextFont>(new SkAtlasTextFont(std::move(typeface), size)); 22 SkTypeface* typeface() const { return fTypeface.get(); } function in class:SkAtlasTextFont 31 SkAtlasTextFont(sk_sp<SkTypeface> typeface, SkScalar size) 32 : fTypeface(std::move(typeface)), fSize(size) {}
|
/external/skqp/include/atlastext/ |
SkAtlasTextFont.h | 18 static sk_sp<SkAtlasTextFont> Make(sk_sp<SkTypeface> typeface, SkScalar size) { 19 return sk_sp<SkAtlasTextFont>(new SkAtlasTextFont(std::move(typeface), size)); 22 SkTypeface* typeface() const { return fTypeface.get(); } function in class:SkAtlasTextFont 31 SkAtlasTextFont(sk_sp<SkTypeface> typeface, SkScalar size) 32 : fTypeface(std::move(typeface)), fSize(size) {}
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
ShadowTypefaceTest.java | 7 import android.graphics.Typeface; 30 Typeface typeface = Typeface.create("roboto", Typeface.BOLD); local 31 assertThat(typeface.getStyle()).isEqualTo(Typeface.BOLD); 32 assertThat(shadowOf(typeface).getFontDescription().getFamilyName()).isEqualTo("roboto"); 33 assertThat(shadowOf(typeface).getFontDescription().getStyle()).isEqualTo(Typeface.BOLD) 38 Typeface typeface = Typeface.create(Typeface.create("roboto", Typeface.BOLD), Typeface.ITALIC); local 47 Typeface typeface = Typeface.create((Typeface) null, Typeface.ITALIC); local 55 Typeface typeface = Typeface.createFromFile(fontFile); local 63 Typeface typeface = Typeface.createFromFile(fontFile.getPath()); local 72 Typeface typeface = local [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
TypefaceTest.java | 32 import android.graphics.Typeface; 33 import android.graphics.Typeface.Builder; 61 private static float measureText(String text, Typeface typeface) { 65 paint.setTypeface(typeface); 72 final Typeface typeface = ctx.getResources().getFont(R.font.a3em); external variable declarations 73 GLYPH_3EM_WIDTH = measureText("a", typeface); 74 GLYPH_1EM_WIDTH = measureText("b", typeface); 77 // list of family names to try when attempting to find a typeface with a given styl 105 Typeface typeface = createTypeface(Typeface.BOLD); local 136 Typeface typeface = Typeface.create(DEFAULT, Typeface.NORMAL); local 151 Typeface typeface = Typeface.defaultFromStyle(Typeface.NORMAL); local 190 Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), local 204 Typeface typeface = Typeface.createFromFile(file); local 228 Typeface typeface = Typeface.createFromFile(obtainPath()); local 255 Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), local 266 Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), local 286 final Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), file); local 300 final Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), file); local 315 final Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), file); local 352 Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), local 544 Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), fontPath); local 720 Typeface typeface = Typeface.DEFAULT; local 763 Typeface typeface = new Builder(am, local 778 Typeface typeface = new Builder(am, local 795 Typeface typeface = new Builder(am, local [all...] |
/developers/samples/android/ui/text/TextStyling-Kotlin/app/src/main/java/com/android/example/text/styling/renderer/spans/ |
FontSpan.kt | 18 import android.graphics.Typeface 23 * Span that changes the typeface of the text used to the one provided. The style set before will 26 open class FontSpan(private val font: Typeface?) : MetricAffectingSpan() { 34 val old = typeface 38 val font = Typeface.create(font, oldStyle) 39 typeface = font
|
/external/skia/src/core/ |
SkStrikeInterface.h | 39 const SkTypeface& typeface, 42 , fTypeface{typeface} 46 const SkTypeface& typeface() const { return fTypeface; } function in class:SkStrikeSpec 92 const SkTypeface& typeface) = 0;
|
SkTypefaceCache.cpp | 25 for (const sk_sp<SkTypeface>& typeface : fTypefaces) { 26 if (proc(typeface.get(), ctx)) { 27 return typeface;
|
/external/skia/src/pdf/ |
SkPDFFont.cpp | 108 const SkAdvancedTypefaceMetrics* SkPDFFont::GetMetrics(const SkTypeface* typeface, 110 SkASSERT(typeface); 111 SkFontID id = typeface->uniqueID(); 115 int count = typeface->countGlyphs(); 121 std::unique_ptr<SkAdvancedTypefaceMetrics> metrics = typeface->getAdvancedMetrics(); 129 font.setTypeface(sk_ref_sp(typeface)); 158 const std::vector<SkUnichar>& SkPDFFont::GetUnicodeMap(const SkTypeface* typeface, 160 SkASSERT(typeface); 162 SkFontID id = typeface->uniqueID(); 166 std::vector<SkUnichar> buffer(typeface->countGlyphs()) 471 SkTypeface* typeface = pdfFont.typeface(); local 632 SkTypeface* typeface = pdfFont.typeface(); local [all...] |
SkPDFFont.h | 31 /** Returns the typeface represented by this class. Returns nullptr for the 32 * default typeface. 34 SkTypeface* typeface() const { return fTypeface.get(); } function in class:SkPDFFont 78 /** Get the font resource for the passed typeface and glyphID. The 83 * @param typeface The typeface to find, not nullptr. 88 SkTypeface* typeface, 92 * @param typeface can not be nullptr. 93 * @return nullptr only when typeface is bad. 95 static const SkAdvancedTypefaceMetrics* GetMetrics(const SkTypeface* typeface, [all...] |
/external/skqp/src/pdf/ |
SkPDFFont.cpp | 107 const SkAdvancedTypefaceMetrics* SkPDFFont::GetMetrics(const SkTypeface* typeface, 109 SkASSERT(typeface); 110 SkFontID id = typeface->uniqueID(); 114 int count = typeface->countGlyphs(); 120 std::unique_ptr<SkAdvancedTypefaceMetrics> metrics = typeface->getAdvancedMetrics(); 128 font.setTypeface(sk_ref_sp(typeface)); 157 const std::vector<SkUnichar>& SkPDFFont::GetUnicodeMap(const SkTypeface* typeface, 159 SkASSERT(typeface); 161 SkFontID id = typeface->uniqueID(); 165 std::vector<SkUnichar> buffer(typeface->countGlyphs()) 475 SkTypeface* typeface = pdfFont.typeface(); local 636 SkTypeface* typeface = pdfFont.typeface(); local [all...] |
SkPDFFont.h | 31 /** Returns the typeface represented by this class. Returns nullptr for the 32 * default typeface. 34 SkTypeface* typeface() const { return fTypeface.get(); } function in class:SkPDFFont 78 /** Get the font resource for the passed typeface and glyphID. The 83 * @param typeface The typeface to find, not nullptr. 88 SkTypeface* typeface, 92 * @param typeface can not be nullptr. 93 * @return nullptr only when typeface is bad. 95 static const SkAdvancedTypefaceMetrics* GetMetrics(const SkTypeface* typeface, [all...] |
/external/skia/modules/canvaskit/htmlcanvas/ |
font.js | 71 var typeface = getFromFontCache(descriptors); 72 descriptors['typeface'] = typeface; 76 // null means use the default typeface (which is currently NotoMono) 88 function addToFontCache(typeface, descriptors) { 94 // preload with a fallback to this typeface 96 '*': typeface, 99 fontCache[fam][key] = typeface;
|
/external/skqp/experimental/canvaskit/htmlcanvas/ |
font.js | 71 var typeface = getFromFontCache(descriptors); 72 descriptors['typeface'] = typeface; 76 // null means use the default typeface (which is currently NotoMono) 88 function addToFontCache(typeface, descriptors) { 94 // preload with a fallback to this typeface 96 '*': typeface, 99 fontCache[fam][key] = typeface;
|
/cts/tests/tests/graphics/src/android/graphics/fonts/ |
FontTestUtil.java | 22 import android.graphics.Typeface; 223 private static float measureChar(Typeface typeface, char c) { 226 tp.setTypeface(typeface); 299 private static int getSelectedFontStyle(Typeface typeface) { 302 if (measureChar(typeface, CHAR_3EM_WIDTH[i]) == 300.0f) { 316 public static Pair<Integer, Boolean> getSelectedStyle(Typeface typeface) { 317 return sStyleList.get(getSelectedFontStyle(typeface)); [all...] |
/external/skqp/gm/ |
atlastext.cpp | 29 uint32_t color, sk_sp<SkTypeface> typeface, float size) { 33 auto atlas_font = SkAtlasTextFont::Make(typeface, size); 36 typeface->charsToGlyphs(text.c_str(), SkTypeface::Encoding::kUTF8_Encoding, glyphs.get(), cnt); 41 font.setTypeface(std::move(typeface)); 116 for (const auto& typeface : fTypefaces) { 137 draw_string(fTarget.get(), text, drawX, drawY, color, typeface, size);
|
/external/skqp/src/core/ |
SkTypefaceCache.cpp | 25 for (const sk_sp<SkTypeface>& typeface : fTypefaces) { 26 if (proc(typeface.get(), ctx)) { 27 return SkRef(typeface.get());
|
/external/pdfium/fxjs/xfa/ |
cjx_font.h | 30 JS_PROP(typeface);
|
/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/skqp/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);
|