/external/skia/src/core/ |
SkTypefacePriv.h | 11 #include "SkTypeface.h" 19 static inline sk_sp<SkTypeface> ref_or_default(SkTypeface* face) { 20 return face ? sk_ref_sp(face) : SkTypeface::MakeDefault(); 27 class SkAutoResolveDefaultTypeface : public sk_sp<SkTypeface> { 29 SkAutoResolveDefaultTypeface() : INHERITED(SkTypeface::MakeDefault()) {} 31 SkAutoResolveDefaultTypeface(SkTypeface* face) 35 typedef sk_sp<SkTypeface> INHERITED;
|
SkTypefaceCache.h | 14 #include "SkTypeface.h" 26 typedef bool(*FindProc)(SkTypeface*, void* context); 34 void add(SkTypeface*); 41 SkTypeface* findByProcAndRef(FindProc proc, void* ctx) const; 53 * your subclass of SkTypeface 59 static void Add(SkTypeface*); 60 static SkTypeface* FindByProcAndRef(FindProc proc, void* ctx); 73 SkTArray<sk_sp<SkTypeface>> fTypefaces;
|
SkDeduper.h | 15 class SkTypeface; 25 virtual int findOrDefineTypeface(SkTypeface*) = 0; 35 virtual SkTypeface* getTypeface(int) = 0;
|
SkTypeface.cpp | 17 #include "SkTypeface.h" 20 SkTypeface::SkTypeface(const SkFontStyle& style, bool isFixedPitch) 23 SkTypeface::~SkTypeface() { } 26 extern void WhitelistSerializeTypeface(const SkTypeface*, SkWStream* ); 32 sk_sp<SkTypeface> (*gCreateTypefaceDelegate)(const char[], SkFontStyle) = nullptr; 34 void (*gSerializeTypefaceDelegate)(const SkTypeface*, SkWStream* ) = SK_TYPEFACE_DELEGATE; 35 sk_sp<SkTypeface> (*gDeserializeTypefaceDelegate)(SkStream* ) = nullptr; 41 class SkEmptyTypeface : public SkTypeface { [all...] |
SkFontMgr.cpp | 15 class SkTypeface; 23 SkTypeface* createTypeface(int index) override { 27 SkTypeface* matchStyle(const SkFontStyle&) override { 52 virtual SkTypeface* onMatchFamilyStyle(const char[], 56 virtual SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], 63 virtual SkTypeface* onMatchFaceStyle(const SkTypeface*, 67 SkTypeface* onCreateFromData(SkData*, int) const override { 70 SkTypeface* onCreateFromStream(SkStreamAsset* stream, int) const override { 74 SkTypeface* onCreateFromFile(const char[], int) const override [all...] |
SkTypefaceCache.cpp | 18 void SkTypefaceCache::add(SkTypeface* face) { 26 SkTypeface* SkTypefaceCache::findByProcAndRef(FindProc proc, void* ctx) const { 27 for (const sk_sp<SkTypeface>& typeface : fTypefaces) { 69 void SkTypefaceCache::Add(SkTypeface* face) { 74 SkTypeface* SkTypefaceCache::FindByProcAndRef(FindProc proc, void* ctx) { 87 static bool DumpProc(SkTypeface* face, void* ctx) {
|
/external/skia/include/ports/ |
SkFontMgr.h | 20 class SkTypeface; 26 virtual SkTypeface* createTypeface(int index) = 0; 27 virtual SkTypeface* matchStyle(const SkFontStyle& pattern) = 0; 32 SkTypeface* matchStyleCSS3(const SkFontStyle& pattern); 68 SkTypeface* matchFamilyStyle(const char familyName[], const SkFontStyle&) const; 85 SkTypeface* matchFamilyStyleCharacter(const char familyName[], const SkFontStyle&, 89 SkTypeface* matchFaceStyle(const SkTypeface*, const SkFontStyle&) const; 96 SkTypeface* createFromData(SkData*, int ttcIndex = 0) const; 103 SkTypeface* createFromStream(SkStreamAsset*, int ttcIndex = 0) const [all...] |
SkTypeface_mac.h | 11 #include "SkTypeface.h" 31 * lifetime of the SkTypeface. This was introduced as a means to work around 34 SK_API extern SkTypeface* SkCreateTypefaceFromCTFont(CTFontRef, CFTypeRef = NULL); 38 * given SkTypeface. Note that the returned CTFontRef gets 39 * released when the source SkTypeface is destroyed. 46 SK_API extern CTFontRef SkTypeface_GetCTFontRef(const SkTypeface* face);
|
SkFontMgr_indirect.h | 17 #include "SkTypeface.h" 41 SkTypeface* onMatchFamilyStyle(const char familyName[], 44 SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], 50 SkTypeface* onMatchFaceStyle(const SkTypeface* familyMember, 53 SkTypeface* onCreateFromStream(SkStreamAsset* stream, int ttcIndex) const override; 54 SkTypeface* onCreateFromFile(const char path[], int ttcIndex) const override; 55 SkTypeface* onCreateFromData(SkData* data, int ttcIndex) const override; 57 SkTypeface* onLegacyCreateTypeface(const char familyName[], SkFontStyle) const override; 60 SkTypeface* createTypefaceFromFontId(const SkFontIdentity& fontId) const [all...] |
SkTypeface_win.h | 12 #include "SkTypeface.h" 21 SK_API SkTypeface* SkCreateTypefaceFromLOGFONT(const LOGFONT&); 29 SK_API void SkLOGFONTFromTypeface(const SkTypeface* typeface, LOGFONT* lf);
|
/external/skia/tools/ |
test_font_index.inc | 13 LiberationMonoNormalMetrics, "Toy Liberation Mono", SkTypeface::kNormal, nullptr 17 LiberationMonoBoldMetrics, "Toy Liberation Mono", SkTypeface::kBold, nullptr 21 LiberationMonoItalicMetrics, "Toy Liberation Mono", SkTypeface::kItalic, nullptr 25 LiberationMonoBoldItalicMetrics, "Toy Liberation Mono", SkTypeface::kBoldItalic, nullptr 29 LiberationSansNormalMetrics, "Toy Liberation Sans", SkTypeface::kNormal, nullptr 33 LiberationSansBoldMetrics, "Toy Liberation Sans", SkTypeface::kBold, nullptr 37 LiberationSansItalicMetrics, "Toy Liberation Sans", SkTypeface::kItalic, nullptr 41 LiberationSansBoldItalicMetrics, "Toy Liberation Sans", SkTypeface::kBoldItalic, nullptr 45 LiberationSerifNormalMetrics, "Toy Liberation Serif", SkTypeface::kNormal, nullptr 49 LiberationSerifBoldMetrics, "Toy Liberation Serif", SkTypeface::kBold, nullpt [all...] |
Resources.h | 18 class SkTypeface; 27 sk_sp<SkTypeface> MakeResourceAsTypeface(const char* resource);
|
/external/skia/src/ports/ |
SkFontMgr_custom.h | 22 class SkTypeface; 24 /** The base SkTypeface implementation for the custom font manager. */ 44 /** The empty SkTypeface implementation for the custom font manager. 58 /** The stream SkTypeface implementation for the custom font manager. */ 75 /** The file SkTypeface implementation for the custom font manager. */ 105 SkTypeface* createTypeface(int index) override; 106 SkTypeface* matchStyle(const SkFontStyle& pattern) override; 138 SkTypeface* onMatchFamilyStyle(const char familyName[], 140 SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], const SkFontStyle&, 143 SkTypeface* onMatchFaceStyle(const SkTypeface* familyMember [all...] |
/external/skia/include/core/ |
SkTypeface.h | 34 /** \class SkTypeface 36 The SkTypeface class specifies the typeface and intrinsic style of a font. 43 class SK_API SkTypeface : public SkWeakRefCnt { 104 static SkFontID UniqueID(const SkTypeface* face); 109 static bool Equal(const SkTypeface* facea, const SkTypeface* faceb); 112 static sk_sp<SkTypeface> MakeDefault(Style style = SkTypeface::kNormal); 123 static sk_sp<SkTypeface> MakeFromName(const char familyName[], SkFontStyle fontStyle); 133 static sk_sp<SkTypeface> MakeFromTypeface(SkTypeface* family, Style) [all...] |
SkFont.h | 15 class SkTypeface; 120 static sk_sp<SkFont> Make(sk_sp<SkTypeface>, SkScalar size, MaskType, uint32_t flags); 121 static sk_sp<SkFont> Make(sk_sp<SkTypeface>, SkScalar size, SkScalar scaleX, SkScalar skewX, 134 SkTypeface* getTypeface() const { return fTypeface.get(); } 164 SkFont(sk_sp<SkTypeface>, SkScalar size, SkScalar scaleX, SkScalar skewX, MaskType, 167 sk_sp<SkTypeface> fTypeface;
|
/frameworks/base/libs/hwui/tests/unit/ |
TypefaceTests.cpp | 55 sk_sp<SkTypeface> typeface(fm->createFromStream(fontData.release())); 86 EXPECT_EQ(SkTypeface::kNormal, bold->fSkiaStyle); 91 EXPECT_EQ(SkTypeface::kNormal, light->fSkiaStyle); 96 std::unique_ptr<Typeface> normal(Typeface::createRelative(nullptr, SkTypeface::kNormal)); 99 EXPECT_EQ(SkTypeface::kNormal, normal->fSkiaStyle); 102 std::unique_ptr<Typeface> bold(Typeface::createRelative(nullptr, SkTypeface::kBold)); 105 EXPECT_EQ(SkTypeface::kBold, bold->fSkiaStyle); 108 std::unique_ptr<Typeface> italic(Typeface::createRelative(nullptr, SkTypeface::kItalic)); 111 EXPECT_EQ(SkTypeface::kItalic, italic->fSkiaStyle); 115 Typeface::createRelative(nullptr, SkTypeface::kBoldItalic)) [all...] |
/external/skia/samplecode/ |
SampleFontScalerTest.cpp | 10 #include "SkTypeface.h" 25 SkTypeface::Style fStyle; 27 { nullptr, SkTypeface::kNormal }, 28 { nullptr, SkTypeface::kBold }, 29 { "serif", SkTypeface::kNormal }, 30 { "serif", SkTypeface::kBold }, 31 { "serif", SkTypeface::kItalic }, 32 { "serif", SkTypeface::kBoldItalic }, 33 { "monospace", SkTypeface::kNormal } 39 sk_sp<SkTypeface> fFaces[gFaceCount] [all...] |
/external/skia/src/pdf/ |
SkPDFFont.h | 16 #include "SkTypeface.h" 37 SkTypeface* typeface() const { return fTypeface.get(); } 51 static SkAutoGlyphCache MakeVectorCache(SkTypeface*, int* sizeOut); 87 SkTypeface* typeface, 95 static const SkAdvancedTypefaceMetrics* GetMetrics(SkTypeface* typeface, 107 static bool CanEmbedTypeface(SkTypeface*, SkPDFCanon*); 112 sk_sp<SkTypeface> fTypeface; 122 sk_sp<SkTypeface> refTypeface() const { return fTypeface; } 127 sk_sp<SkTypeface> fTypeface;
|
/external/skia/src/utils/ |
SkWhitelistTypefaces.cpp | 12 #include "SkTypeface.h" 20 extern void WhitelistSerializeTypeface(const SkTypeface*, SkWStream* ); 21 sk_sp<SkTypeface> WhitelistDeserializeTypeface(SkStream* ); 35 sk_sp<SkTypeface> defaultFace(SkTypeface::MakeFromName(nullptr, style)); 36 sk_sp<SkTypeface> foundFace(SkTypeface::MakeFromName(fontName, style)); 40 static int whitelist_name_index(const SkTypeface* tf) { 43 sk_sp<SkTypeface::LocalizedStrings> nameIter( 45 SkTypeface::LocalizedString familyNameLocalized [all...] |
/external/skia/src/fonts/ |
SkGScalerContext.h | 12 #include "SkTypeface.h" 14 class SkGTypeface : public SkTypeface { 16 SkGTypeface(sk_sp<SkTypeface> proxy, const SkPaint&); 18 SkTypeface* proxy() const { return fProxy.get(); } 38 SkTypeface::LocalizedStrings* onCreateFamilyNameIterator() const override; 47 sk_sp<SkTypeface> fProxy;
|
SkRandomScalerContext.h | 12 #include "SkTypeface.h" 19 class SkRandomTypeface : public SkTypeface { 21 SkRandomTypeface(sk_sp<SkTypeface> proxy, const SkPaint&, bool fakeit); 23 SkTypeface* proxy() const { return fProxy.get(); } 43 SkTypeface::LocalizedStrings* onCreateFamilyNameIterator() const override; 52 sk_sp<SkTypeface> fProxy;
|
/external/skia/src/sfnt/ |
SkOTUtils.h | 13 #include "SkTypeface.h" 42 class LocalizedStrings_NameTable : public SkTypeface::LocalizedStrings { 55 static LocalizedStrings_NameTable* CreateForFamilyNames(const SkTypeface& typeface); 57 bool next(SkTypeface::LocalizedString* localizedString) override; 69 class LocalizedStrings_SingleName : public SkTypeface::LocalizedStrings { 75 bool next(SkTypeface::LocalizedString* localizedString) override {
|
/frameworks/base/libs/hwui/hwui/ |
MinikinSkia.h | 25 class SkTypeface; 31 explicit MinikinFontSkia(sk_sp<SkTypeface> typeface, const void* fontData, size_t fontSize, 40 SkTypeface* GetSkTypeface() const; 41 sk_sp<SkTypeface> RefSkTypeface() const; 58 sk_sp<SkTypeface> mTypeface;
|
/external/skia/tests/ |
TypefaceTest.cpp | 16 #include "SkTypeface.h" 51 sk_sp<SkTypeface> newTypeface(SkTypeface::MakeFromStream(new SkMemoryStream(sk_ref_sp(data)))); 107 sk_sp<SkTypeface> typeface(fm->createFromStream(distortable.release(), params)); 138 sk_sp<SkTypeface> typeface(fm->createFromStream(distortable.release(), params)); 166 sk_sp<SkTypeface> t1(SkTypeface::MakeFromName(nullptr, SkFontStyle())); 167 sk_sp<SkTypeface> t2(SkTypeface::MakeDefault(SkTypeface::kNormal)) [all...] |
/external/skia/gm/ |
colortype.cpp | 31 sk_sp<SkTypeface> orig(sk_tool_utils::create_portable_typeface( 32 "serif", SkFontStyle::FromOldStyle(SkTypeface::kBold))); 34 orig = SkTypeface::MakeDefault(); 60 sk_sp<SkTypeface> fColorType;
|