/external/chromium_org/third_party/skia/src/core/ |
D | SkTypeface.cpp | 23 SkTypeface::SkTypeface(Style style, SkFontID fontID, bool isFixedPitch) in SkTypeface() function in SkTypeface 31 SkTypeface::~SkTypeface() { in ~SkTypeface() 40 class SkEmptyTypeface : public SkTypeface { 46 SkEmptyTypeface() : SkTypeface(SkTypeface::kNormal, 0, true) { } in SkEmptyTypeface() 66 class EmptyLocalizedStrings : public SkTypeface::LocalizedStrings { 68 virtual bool next(SkTypeface::LocalizedString*) SK_OVERRIDE { return false; } in next() 73 virtual SkTypeface::LocalizedStrings* onCreateFamilyNameIterator() const SK_OVERRIDE { in onCreateFamilyNameIterator() 83 SkTypeface* SkTypeface::CreateDefault(int style) { in CreateDefault() 91 SkTypeface* t = fm->legacyCreateTypeface(NULL, style);; in CreateDefault() 95 void SkTypeface::DeleteDefault(SkTypeface* t) { in DeleteDefault() [all …]
|
D | SkTypefaceCache.h | 34 typedef bool (*FindProc)(SkTypeface*, SkTypeface::Style, void* context); 42 void add(SkTypeface*, SkTypeface::Style requested, bool strong = true); 50 SkTypeface* findByID(SkFontID findID) const; 57 SkTypeface* findByProcAndRef(FindProc proc, void* ctx) const; 75 static void Add(SkTypeface*, 76 SkTypeface::Style requested, 78 static SkTypeface* FindByID(SkFontID fontID); 79 static SkTypeface* FindByProcAndRef(FindProc proc, void* ctx); 93 SkTypeface* fFace; 95 SkTypeface::Style fRequestedStyle;
|
D | SkFontHost.cpp | 78 virtual SkTypeface* createTypeface(int index) SK_OVERRIDE { in createTypeface() 82 virtual SkTypeface* matchStyle(const SkFontStyle&) SK_OVERRIDE { in matchStyle() 109 virtual SkTypeface* onMatchFamilyStyle(const char[], in onMatchFamilyStyle() 114 virtual SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], in onMatchFamilyStyleCharacter() 120 virtual SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], in onMatchFamilyStyleCharacter() 127 virtual SkTypeface* onMatchFaceStyle(const SkTypeface*, in onMatchFamilyStyleCharacter() argument 131 virtual SkTypeface* onCreateFromData(SkData*, int) const SK_OVERRIDE { in onMatchFamilyStyleCharacter() 134 virtual SkTypeface* onCreateFromStream(SkStream*, int) const SK_OVERRIDE { in onMatchFamilyStyleCharacter() 137 virtual SkTypeface* onCreateFromFile(const char[], int) const SK_OVERRIDE { in onMatchFamilyStyleCharacter() 140 virtual SkTypeface* onLegacyCreateTypeface(const char [], unsigned) const SK_OVERRIDE { in onMatchFamilyStyleCharacter() [all …]
|
D | SkTypefaceCache.cpp | 31 void SkTypefaceCache::add(SkTypeface* face, in add() 32 SkTypeface::Style requestedStyle, in add() 49 SkTypeface* SkTypefaceCache::findByID(SkFontID fontID) const { in findByID() 61 SkTypeface* SkTypefaceCache::findByProcAndRef(FindProc proc, void* ctx) const { in findByProcAndRef() 65 SkTypeface* currFace = curr->fFace; in findByProcAndRef() 85 SkTypeface* face = fArray[i].fFace; in purge() 122 void SkTypefaceCache::Add(SkTypeface* face, in Add() 123 SkTypeface::Style requestedStyle, in Add() 129 SkTypeface* SkTypefaceCache::FindByID(SkFontID fontID) { in FindByID() 134 SkTypeface* SkTypefaceCache::FindByProcAndRef(FindProc proc, void* ctx) { in FindByProcAndRef() [all …]
|
/external/chromium_org/third_party/skia/tools/ |
D | test_font_data.cpp | 8517 CourierNewkNormalMetrics, "Courier New", SkTypeface::kNormal, NULL 8521 CourierNewkBoldMetrics, "Courier New", SkTypeface::kBold, NULL 8525 CourierNewkItalicMetrics, "Courier New", SkTypeface::kItalic, NULL 8529 CourierNewkBoldItalicMetrics, "Courier New", SkTypeface::kBoldItalic, NULL 8533 LiberationSanskNormalMetrics, "Liberation Sans", SkTypeface::kNormal, NULL 8537 LiberationSanskBoldMetrics, "Liberation Sans", SkTypeface::kBold, NULL 8541 LiberationSanskItalicMetrics, "Liberation Sans", SkTypeface::kItalic, NULL 8545 LiberationSanskBoldItalicMetrics, "Liberation Sans", SkTypeface::kBoldItalic, NULL 8549 HiraginoMaruGothicProkNormalMetrics, "Hiragino Maru Gothic Pro", SkTypeface::kNormal, NULL 8553 PapyruskNormalMetrics, "Papyrus", SkTypeface::kNormal, NULL [all …]
|
D | create_test_font.cpp | 30 SkTypeface::Style fStyle; 36 {"Courier New", SkTypeface::kNormal, "Courier New", "Courier New.ttf", 38 {"Courier New", SkTypeface::kBold, "Courier New", "Courier New Bold.ttf", 40 {"Courier New", SkTypeface::kItalic, "Courier New", "Courier New Italic.ttf", 42 {"Courier New", SkTypeface::kBoldItalic, "Courier New", "Courier New Bold Italic.ttf", 44 {"Helvetica", SkTypeface::kNormal, "Liberation Sans", "LiberationSans-Regular.ttf", 46 {"Helvetica", SkTypeface::kBold, "Liberation Sans", "LiberationSans-Bold.ttf", 48 {"Helvetica", SkTypeface::kItalic, "Liberation Sans", "LiberationSans-Italic.ttf", 50 {"Helvetica", SkTypeface::kBoldItalic, "Liberation Sans", "LiberationSans-BoldItalic.ttf", 52 {"Hiragino Maru Gothic Pro", SkTypeface::kNormal, "Hiragino Maru Gothic Pro", "Pro W4.otf", [all …]
|
D | sk_tool_utils.h | 27 SkTypeface::Style style = SkTypeface::kNormal); 28 SkTypeface* create_portable_typeface(const char* name, SkTypeface::Style style); 38 SkTypeface* create_font(const char* name, SkTypeface::Style ); 39 SkTypeface* resource_font(const char* name, SkTypeface::Style );
|
/external/skia/src/core/ |
D | SkTypeface.cpp | 23 SkTypeface::SkTypeface(Style style, SkFontID fontID, bool isFixedPitch) in SkTypeface() function in SkTypeface 31 SkTypeface::~SkTypeface() { in ~SkTypeface() 40 class SkEmptyTypeface : public SkTypeface { 46 SkEmptyTypeface() : SkTypeface(SkTypeface::kNormal, 0, true) { } in SkEmptyTypeface() 66 class EmptyLocalizedStrings : public SkTypeface::LocalizedStrings { 68 virtual bool next(SkTypeface::LocalizedString*) SK_OVERRIDE { return false; } in next() 70 virtual SkTypeface::LocalizedStrings* onCreateFamilyNameIterator() const SK_OVERRIDE { in onCreateFamilyNameIterator() 79 SkTypeface* SkTypeface::CreateDefault(int style) { in CreateDefault() 87 SkTypeface* t = SkFontHost::CreateTypeface(NULL, NULL, (Style)style); in CreateDefault() 91 void SkTypeface::DeleteDefault(SkTypeface* t) { in DeleteDefault() [all …]
|
D | SkFontHost.cpp | 78 virtual SkTypeface* createTypeface(int index) SK_OVERRIDE { in createTypeface() 82 virtual SkTypeface* matchStyle(const SkFontStyle&) SK_OVERRIDE { in matchStyle() 109 virtual SkTypeface* onMatchFamilyStyle(const char[], in onMatchFamilyStyle() 113 virtual SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], in onMatchFamilyStyleCharacter() 119 virtual SkTypeface* onMatchFaceStyle(const SkTypeface*, in onMatchFaceStyle() argument 123 virtual SkTypeface* onCreateFromData(SkData*, int) const SK_OVERRIDE { in onCreateFromData() 126 virtual SkTypeface* onCreateFromStream(SkStream*, int) const SK_OVERRIDE { in onCreateFromStream() 129 virtual SkTypeface* onCreateFromFile(const char[], int) const SK_OVERRIDE { in onCreateFromFile() 132 virtual SkTypeface* onLegacyCreateTypeface(const char [], unsigned) const SK_OVERRIDE { in onLegacyCreateTypeface() 160 SkTypeface* SkFontMgr::matchFamilyStyle(const char familyName[], in matchFamilyStyle() [all …]
|
D | SkTypefaceCache.h | 34 typedef bool (*FindProc)(SkTypeface*, SkTypeface::Style, void* context); 42 void add(SkTypeface*, SkTypeface::Style requested, bool strong = true); 50 SkTypeface* findByID(SkFontID findID) const; 57 SkTypeface* findByProcAndRef(FindProc proc, void* ctx) const; 75 static void Add(SkTypeface*, 76 SkTypeface::Style requested, 78 static SkTypeface* FindByID(SkFontID fontID); 79 static SkTypeface* FindByProcAndRef(FindProc proc, void* ctx); 93 SkTypeface* fFace; 95 SkTypeface::Style fRequestedStyle;
|
D | SkTypefaceCache.cpp | 31 void SkTypefaceCache::add(SkTypeface* face, in add() 32 SkTypeface::Style requestedStyle, in add() 49 SkTypeface* SkTypefaceCache::findByID(SkFontID fontID) const { in findByID() 61 SkTypeface* SkTypefaceCache::findByProcAndRef(FindProc proc, void* ctx) const { in findByProcAndRef() 65 SkTypeface* currFace = curr->fFace; in findByProcAndRef() 85 SkTypeface* face = fArray[i].fFace; in purge() 122 void SkTypefaceCache::Add(SkTypeface* face, in Add() 123 SkTypeface::Style requestedStyle, in Add() 129 SkTypeface* SkTypefaceCache::FindByID(SkFontID fontID) { in FindByID() 134 SkTypeface* SkTypefaceCache::FindByProcAndRef(FindProc proc, void* ctx) { in FindByProcAndRef() [all …]
|
/external/chromium_org/third_party/skia/include/ports/ |
D | SkFontMgr.h | 17 class SkTypeface; variable 25 virtual SkTypeface* createTypeface(int index) = 0; 26 virtual SkTypeface* matchStyle(const SkFontStyle& pattern) = 0; 34 class SkTypeface; variable 63 SkTypeface* matchFamilyStyle(const char familyName[], const SkFontStyle&) const; 78 SkTypeface* matchFamilyStyleCharacter(const char familyName[], const SkFontStyle&, 82 SkTypeface* matchFamilyStyleCharacter(const char familyName[], const SkFontStyle&, 86 SkTypeface* matchFaceStyle(const SkTypeface*, const SkFontStyle&) const; 93 SkTypeface* createFromData(SkData*, int ttcIndex = 0) const; 100 SkTypeface* createFromStream(SkStream*, int ttcIndex = 0) const; [all …]
|
D | SkFontMgr_indirect.h | 21 class SkTypeface; variable 39 virtual SkTypeface* onMatchFamilyStyle(const char familyName[], 43 virtual SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], 49 virtual SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], 55 virtual SkTypeface* onMatchFaceStyle(const SkTypeface* familyMember, 58 virtual SkTypeface* onCreateFromStream(SkStream* stream, int ttcIndex) const SK_OVERRIDE; 59 virtual SkTypeface* onCreateFromFile(const char path[], int ttcIndex) const SK_OVERRIDE; 60 virtual SkTypeface* onCreateFromData(SkData* data, int ttcIndex) const SK_OVERRIDE; 62 virtual SkTypeface* onLegacyCreateTypeface(const char familyName[], 66 SkTypeface* createTypefaceFromFontId(const SkFontIdentity& fontId) const; [all …]
|
/external/skia/include/ports/ |
D | SkFontMgr.h | 17 class SkTypeface; variable 25 virtual SkTypeface* createTypeface(int index) = 0; 26 virtual SkTypeface* matchStyle(const SkFontStyle& pattern) = 0; 34 class SkTypeface; variable 63 SkTypeface* matchFamilyStyle(const char familyName[], const SkFontStyle&) const; 73 SkTypeface* matchFamilyStyleCharacter(const char familyName[], const SkFontStyle&, 76 SkTypeface* matchFaceStyle(const SkTypeface*, const SkFontStyle&) const; 83 SkTypeface* createFromData(SkData*, int ttcIndex = 0) const; 90 SkTypeface* createFromStream(SkStream*, int ttcIndex = 0) const; 98 SkTypeface* createFromFile(const char path[], int ttcIndex = 0) const; [all …]
|
D | SkFontMgr_indirect.h | 21 class SkTypeface; variable 39 virtual SkTypeface* onMatchFamilyStyle(const char familyName[], 42 virtual SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], 47 virtual SkTypeface* onMatchFaceStyle(const SkTypeface* familyMember, 50 virtual SkTypeface* onCreateFromStream(SkStream* stream, int ttcIndex) const SK_OVERRIDE; 51 virtual SkTypeface* onCreateFromFile(const char path[], int ttcIndex) const SK_OVERRIDE; 52 virtual SkTypeface* onCreateFromData(SkData* data, int ttcIndex) const SK_OVERRIDE; 54 virtual SkTypeface* onLegacyCreateTypeface(const char familyName[], 58 SkTypeface* createTypefaceFromFontId(const SkFontIdentity& fontId) const; 66 SkTypeface* fTypeface; // value: weak ref to typeface
|
/external/chromium_org/third_party/skia/tests/ |
D | TypefaceTest.cpp | 13 SkAutoTUnref<SkTypeface> t1(SkTypeface::CreateFromName(NULL, SkTypeface::kNormal)); in DEF_TEST() 14 SkAutoTUnref<SkTypeface> t2(SkTypeface::RefDefault(SkTypeface::kNormal)); in DEF_TEST() 16 REPORTER_ASSERT(reporter, SkTypeface::Equal(t1.get(), t2.get())); in DEF_TEST() 17 REPORTER_ASSERT(reporter, SkTypeface::Equal(0, t1.get())); in DEF_TEST() 18 REPORTER_ASSERT(reporter, SkTypeface::Equal(0, t2.get())); in DEF_TEST() 19 REPORTER_ASSERT(reporter, SkTypeface::Equal(t1.get(), 0)); in DEF_TEST() 20 REPORTER_ASSERT(reporter, SkTypeface::Equal(t2.get(), 0)); in DEF_TEST() 23 … SkAutoTUnref<SkTypeface> t3(SkTypeface::CreateFromName("non-existent-font", SkTypeface::kNormal)); in DEF_TEST()
|
/external/skia/tests/ |
D | TypefaceTest.cpp | 13 SkAutoTUnref<SkTypeface> t1(SkTypeface::CreateFromName(NULL, SkTypeface::kNormal)); in DEF_TEST() 14 SkAutoTUnref<SkTypeface> t2(SkTypeface::RefDefault(SkTypeface::kNormal)); in DEF_TEST() 16 REPORTER_ASSERT(reporter, SkTypeface::Equal(t1.get(), t2.get())); in DEF_TEST() 17 REPORTER_ASSERT(reporter, SkTypeface::Equal(0, t1.get())); in DEF_TEST() 18 REPORTER_ASSERT(reporter, SkTypeface::Equal(0, t2.get())); in DEF_TEST() 19 REPORTER_ASSERT(reporter, SkTypeface::Equal(t1.get(), 0)); in DEF_TEST() 20 REPORTER_ASSERT(reporter, SkTypeface::Equal(t2.get(), 0)); in DEF_TEST() 23 … SkAutoTUnref<SkTypeface> t3(SkTypeface::CreateFromName("non-existent-font", SkTypeface::kNormal)); in DEF_TEST()
|
/external/chromium_org/third_party/skia/include/core/ |
D | SkTypeface.h | 37 class SK_API SkTypeface : public SkWeakRefCnt { 39 SK_DECLARE_INST_COUNT(SkTypeface) 78 static SkFontID UniqueID(const SkTypeface* face); 83 static bool Equal(const SkTypeface* facea, const SkTypeface* faceb); 89 static SkTypeface* RefDefault(Style style = SkTypeface::kNormal); 100 static SkTypeface* CreateFromName(const char familyName[], Style style); 112 static SkTypeface* CreateFromTypeface(const SkTypeface* family, Style s); 117 static SkTypeface* CreateFromFile(const char path[], int index = 0); 123 static SkTypeface* CreateFromStream(SkStream* stream, int index = 0); 135 static SkTypeface* Deserialize(SkStream*); [all …]
|
/external/skia/include/core/ |
D | SkTypeface.h | 37 class SK_API SkTypeface : public SkWeakRefCnt { 39 SK_DECLARE_INST_COUNT(SkTypeface) 78 static SkFontID UniqueID(const SkTypeface* face); 83 static bool Equal(const SkTypeface* facea, const SkTypeface* faceb); 89 static SkTypeface* RefDefault(Style style = SkTypeface::kNormal); 100 static SkTypeface* CreateFromName(const char familyName[], Style style); 112 static SkTypeface* CreateFromTypeface(const SkTypeface* family, Style s); 117 static SkTypeface* CreateFromFile(const char path[]); 123 static SkTypeface* CreateFromStream(SkStream* stream); 135 static SkTypeface* Deserialize(SkStream*); [all …]
|
/external/skia/src/ports/ |
D | SkFontHost_fontconfig.cpp | 20 SkTypeface::Style* style, bool* isFixedWidth); 67 FindRec(const char* name, SkTypeface::Style style) in FindRec() 72 SkTypeface::Style fStyle; 75 static bool find_proc(SkTypeface* face, SkTypeface::Style style, void* ctx) { in find_proc() 82 SkTypeface* FontConfigTypeface::LegacyCreateTypeface( in LegacyCreateTypeface() 83 const SkTypeface* familyFace, in LegacyCreateTypeface() 85 SkTypeface::Style style) { in LegacyCreateTypeface() 97 SkTypeface* face = SkTypefaceCache::FindByProcAndRef(find_proc, &rec); in LegacyCreateTypeface() 105 SkTypeface::Style outStyle; in LegacyCreateTypeface() 129 SkTypeface* SkFontHost::CreateTypeface(const SkTypeface* familyFace, in CreateTypeface() [all …]
|
D | SkFontConfigInterface_android.cpp | 55 SkRefPtr<SkTypeface> fTypeface; 57 SkTypeface::Style fStyle; 83 SkTypeface::Style requested, 86 SkTypeface::Style* outStyle) SK_OVERRIDE; 103 SkTypeface* getTypefaceForChar(SkUnichar uni, SkTypeface::Style style, 105 SkTypeface* nextLogicalTypeface(SkFontID currFontID, SkFontID origFontID, 107 SkTypeface* getTypefaceForGlyphID(uint16_t glyphID, const SkTypeface* origTypeface, 113 SkTypeface* getTypefaceForFontRec(FontRecID fontRecID); 200 SkTypeface::Style* style, bool* isFixedWidth); 233 fontRec.fStyle = SkTypeface::kNormal; in SkFontConfigInterfaceAndroid() [all …]
|
/external/skia/src/utils/ios/ |
D | SkFontHost_iOS.mm | 4 #include "SkTypeface.h" 37 SkTypeface::Style fStyle; 42 { "DroidSans", SkTypeface::kNormal, kSans_FontDesign }, 43 { "DroidSans", SkTypeface::kBold, kSans_FontDesign }, 44 { "DroidSerif-Regular", SkTypeface::kNormal, kSerif_FontDesign }, 45 { "DroidSerif-Bold", SkTypeface::kBold, kSerif_FontDesign }, 46 // { "PescaderoPro", SkTypeface::kNormal, kSerif_FontDesign }, 47 // { "PescaderoPro-Bold", SkTypeface::kBold, kSerif_FontDesign }, 56 class SkTypeface_Stream : public SkTypeface { 73 : SkTypeface(style, sk_atomic_inc(&gUniqueFontID) + 1) { function [all …]
|
/external/chromium_org/third_party/skia/src/utils/ios/ |
D | SkFontHost_iOS.mm | 4 #include "SkTypeface.h" 37 SkTypeface::Style fStyle; 42 { "DroidSans", SkTypeface::kNormal, kSans_FontDesign }, 43 { "DroidSans", SkTypeface::kBold, kSans_FontDesign }, 44 { "DroidSerif-Regular", SkTypeface::kNormal, kSerif_FontDesign }, 45 { "DroidSerif-Bold", SkTypeface::kBold, kSerif_FontDesign }, 46 // { "PescaderoPro", SkTypeface::kNormal, kSerif_FontDesign }, 47 // { "PescaderoPro-Bold", SkTypeface::kBold, kSerif_FontDesign }, 56 class SkTypeface_Stream : public SkTypeface { 73 : SkTypeface(style, sk_atomic_inc(&gUniqueFontID) + 1) { function [all …]
|
/external/skia/gm/ |
D | typeface.cpp | 25 fFaces = new SkTypeface*[SK_ARRAY_COUNT(gFaces)]; in TypefaceGM() 27 fFaces[i] = SkTypeface::CreateFromName(gFaces[i], SkTypeface::kNormal); in TypefaceGM() 70 SkTypeface** fFaces; 104 SkTypeface* face = paint.getTypeface(); in drawKernText() 137 SkTypeface::Style fStyle; 139 { "sans-serif", SkTypeface::kNormal }, 140 { "sans-serif", SkTypeface::kBold }, 141 { "sans-serif", SkTypeface::kItalic }, 142 { "sans-serif", SkTypeface::kBoldItalic }, 143 { "serif", SkTypeface::kNormal }, [all …]
|
/external/skia/samplecode/ |
D | SampleFontScalerTest.cpp | 26 SkTypeface::Style fStyle; 28 { NULL, SkTypeface::kNormal }, 29 { NULL, SkTypeface::kBold }, 30 { "serif", SkTypeface::kNormal }, 31 { "serif", SkTypeface::kBold }, 32 { "serif", SkTypeface::kItalic }, 33 { "serif", SkTypeface::kBoldItalic }, 34 { "monospace", SkTypeface::kNormal } 40 SkTypeface* fFaces[gFaceCount]; 45 fFaces[i] = SkTypeface::CreateFromName(gFaces[i].fName, in FontScalerTestView() [all …]
|