Home
last modified time | relevance | path

Searched refs:SkTypeface (Results 1 – 25 of 76) sorted by relevance

1234

/external/skia/src/core/
DSkTypeface.cpp20 SkTypeface::SkTypeface(Style style, SkFontID fontID, bool isFixedWidth) in SkTypeface() function in SkTypeface
28 SkTypeface::~SkTypeface() { in ~SkTypeface()
37 static SkTypeface* get_default_typeface() { in get_default_typeface()
41 static SkTypeface* gDefaultTypeface; in get_default_typeface()
46 SkTypeface::kNormal); in get_default_typeface()
51 uint32_t SkTypeface::UniqueID(const SkTypeface* face) { in UniqueID()
58 bool SkTypeface::Equal(const SkTypeface* facea, const SkTypeface* faceb) { in Equal()
59 return SkTypeface::UniqueID(facea) == SkTypeface::UniqueID(faceb); in Equal()
64 SkTypeface* SkTypeface::CreateFromName(const char name[], Style style) { in CreateFromName()
68 SkTypeface* SkTypeface::CreateForChars(const void* data, size_t bytelength, in CreateForChars()
[all …]
DSkTypefaceCache.h31 typedef bool (*FindProc)(SkTypeface*, SkTypeface::Style, void* context);
45 static void Add(SkTypeface*, SkTypeface::Style requested);
53 static SkTypeface* FindByID(SkFontID fontID);
60 static SkTypeface* FindByProcAndRef(FindProc proc, void* ctx);
78 void add(SkTypeface*, SkTypeface::Style requested);
79 SkTypeface* findByID(SkFontID findID) const;
80 SkTypeface* findByProc(FindProc proc, void* ctx) const;
85 SkTypeface* fFace;
86 SkTypeface::Style fRequestedStyle;
DSkTypefaceCache.cpp16 void SkTypefaceCache::add(SkTypeface* face, SkTypeface::Style requestedStyle) { in add()
27 SkTypeface* SkTypefaceCache::findByID(SkFontID fontID) const { in findByID()
39 SkTypeface* SkTypefaceCache::findByProc(FindProc proc, void* ctx) const { in findByProc()
55 SkTypeface* face = fArray[i].fFace; in purge()
87 void SkTypefaceCache::Add(SkTypeface* face, SkTypeface::Style requestedStyle) { in Add()
92 SkTypeface* SkTypefaceCache::FindByID(SkFontID fontID) { in FindByID()
97 SkTypeface* SkTypefaceCache::FindByProcAndRef(FindProc proc, void* ctx) { in FindByProcAndRef()
99 SkTypeface* typeface = Get().findByProc(proc, ctx); in FindByProcAndRef()
112 static bool DumpProc(SkTypeface* face, SkTypeface::Style style, void* ctx) { in DumpProc()
/external/skia/include/core/
DSkTypeface.h31 class SK_API SkTypeface : public SkRefCnt {
69 static SkFontID UniqueID(const SkTypeface* face);
74 static bool Equal(const SkTypeface* facea, const SkTypeface* faceb);
85 static SkTypeface* CreateFromName(const char familyName[], Style style);
96 static SkTypeface* CreateForChars(const void* data, size_t bytelength,
109 static SkTypeface* CreateFromTypeface(const SkTypeface* family, Style s);
114 static SkTypeface* CreateFromFile(const char path[]);
120 static SkTypeface* CreateFromStream(SkStream* stream);
132 static SkTypeface* Deserialize(SkStream*);
152 SkTypeface(Style style, SkFontID uniqueID, bool isFixedWidth = false);
[all …]
DSkFontHost.h61 static SkTypeface* CreateTypeface(const SkTypeface* familyFace,
64 SkTypeface::Style style);
77 static SkTypeface* CreateTypefaceFromStream(SkStream*);
83 static SkTypeface* CreateTypefaceFromFile(const char path[]);
127 static void Serialize(const SkTypeface*, SkWStream*);
132 static SkTypeface* Deserialize(SkStream*);
290 static void EnsureTypefaceAccessible(const SkTypeface& typeface);
/external/skia/src/ports/
DSkFontHost_simple.cpp27 SkTypeface::Style* style, bool* isFixedWidth);
68 SkTypeface* fFaces[4];
78 static SkTypeface* find_best_face(const FamilyRec* family, in find_best_face()
79 SkTypeface::Style style) { in find_best_face()
80 SkTypeface* const* faces = family->fFaces; in find_best_face()
86 style = (SkTypeface::Style)(style ^ SkTypeface::kItalic); in find_best_face()
91 if (faces[SkTypeface::kNormal] != NULL) { in find_best_face()
92 return faces[SkTypeface::kNormal]; in find_best_face()
105 static FamilyRec* find_family(const SkTypeface* member) { in find_family()
121 static SkTypeface* find_from_uniqueID(uint32_t uniqueID) { in find_from_uniqueID()
[all …]
DSkFontHost_linux.cpp26 SkTypeface::Style* style, bool* isFixedWidth);
69 SkTypeface* fFaces[4];
79 static SkTypeface* find_best_face(const FamilyRec* family, in find_best_face()
80 SkTypeface::Style style) { in find_best_face()
81 SkTypeface* const* faces = family->fFaces; in find_best_face()
87 style = (SkTypeface::Style)(style ^ SkTypeface::kItalic); in find_best_face()
92 if (faces[SkTypeface::kNormal] != NULL) { in find_best_face()
93 return faces[SkTypeface::kNormal]; in find_best_face()
106 static FamilyRec* find_family(const SkTypeface* member) { in find_family()
119 static SkTypeface* find_from_uniqueID(uint32_t uniqueID) { in find_from_uniqueID()
[all …]
DSkFontHost_freetype_mac.cpp14 class FTMacTypeface : public SkTypeface {
16 FTMacTypeface(Style style, uint32_t id, SkStream* stream) : SkTypeface(style, id) { in FTMacTypeface()
32 FTMacTypeface* tf = new FTMacTypeface(SkTypeface::kNormal, in create_from_path()
35 SkTypefaceCache::Add(tf, SkTypeface::kNormal); in create_from_path()
39 static SkTypeface* ref_default_typeface() { in ref_default_typeface()
40 static SkTypeface* gDef; in ref_default_typeface()
52 SkTypeface* SkFontHost::CreateTypeface(const SkTypeface* familyFace, in CreateTypeface()
55 SkTypeface::Style style) { in CreateTypeface()
59 SkTypeface* SkFontHost::CreateTypefaceFromStream(SkStream* stream) { in CreateTypefaceFromStream()
64 SkTypeface* SkFontHost::CreateTypefaceFromFile(const char path[]) { in CreateTypefaceFromFile()
[all …]
DSkFontHost_android.cpp39 SkTypeface::Style* style, bool* isFixedWidth);
48 SkTypeface::Style* style, in getNameAndStyle()
70 static SkTypeface* deserializeLocked(SkStream* stream);
71 static SkTypeface* createTypefaceLocked(const SkTypeface* familyFace,
73 SkTypeface::Style style);
77 static SkTypeface* createTypefaceFromStreamLocked(SkStream* stream);
116 SkTypeface* fFaces[4];
123 static SkTypeface* findBestFaceLocked(const FamilyRec* family, in findBestFaceLocked()
124 SkTypeface::Style style) { in findBestFaceLocked()
125 SkTypeface* const* faces = family->fFaces; in findBestFaceLocked()
[all …]
DSkFontHost_FONTPATH.cpp192 static SkTypeface::Style get_style(const FontFaceRec& face) { in get_style()
195 style |= SkTypeface::kBold; in get_style()
198 style |= SkTypeface::kItalic; in get_style()
200 return static_cast<SkTypeface::Style>(style); in get_style()
209 class FontFaceRec_Typeface : public SkTypeface {
212 SkTypeface(get_style(face), get_id(face)), in FontFaceRec_Typeface()
221 static const FontFaceRec* get_typeface_rec(const SkTypeface* face) in get_typeface_rec()
234 SkTypeface* SkFontHost::CreateTypeface(const SkTypeface* familyFace, in CreateTypeface()
237 SkTypeface::Style style) in CreateTypeface()
251 (style & SkTypeface::kBold) != 0, in CreateTypeface()
[all …]
DSkFontHost_fontconfig.cpp28 SkTypeface::Style find_name_and_style(SkStream* stream, SkString* name);
44 static std::map<uint32_t, SkTypeface *> global_fc_typefaces;
52 static SkTypeface::Style UniqueIdToStyle(unsigned uniqueid) in UniqueIdToStyle()
54 return static_cast<SkTypeface::Style>(uniqueid & 0xff); in UniqueIdToStyle()
58 SkTypeface::Style style) in FileIdAndStyleToUniqueId()
77 class FontConfigTypeface : public SkTypeface {
80 : SkTypeface(style, id) in FontConfigTypeface()
209 SkTypeface* SkFontHost::CreateTypeface(const SkTypeface* familyFace, in CreateTypeface()
212 SkTypeface::Style style) in CreateTypeface()
258 const int bold = style & SkTypeface::kBold ? in CreateTypeface()
[all …]
DSkFontHost_none.cpp12 SkTypeface* SkFontHost::CreateTypeface(const SkTypeface* familyFace, in CreateTypeface()
15 SkTypeface::Style style) { in CreateTypeface()
20 SkTypeface* SkFontHost::CreateTypefaceFromStream(SkStream*) { in CreateTypefaceFromStream()
25 SkTypeface* SkFontHost::CreateTypefaceFromFile(char const*) { in CreateTypefaceFromFile()
56 void SkFontHost::Serialize(const SkTypeface* face, SkWStream* stream) { in Serialize()
60 SkTypeface* SkFontHost::Deserialize(SkStream* stream) { in Deserialize()
/external/skia/samplecode/
DSampleTypeface.cpp57 SkTypeface::Style fStyle;
59 { "sans-serif", SkTypeface::kNormal },
60 { "sans-serif", SkTypeface::kBold },
61 { "sans-serif", SkTypeface::kItalic },
62 { "sans-serif", SkTypeface::kBoldItalic },
63 { "serif", SkTypeface::kNormal },
64 { "serif", SkTypeface::kBold },
65 { "serif", SkTypeface::kItalic },
66 { "serif", SkTypeface::kBoldItalic },
67 { "monospace", SkTypeface::kNormal },
[all …]
DSampleFontScalerTest.cpp26 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 …]
DSampleXfermodesBlur.cpp36 SkTypeface* SkCreateTypefaceFromCTFont(CTFontRef fontRef);
40 SkTypeface* face = SkTypeface::CreateFromName(name, SkTypeface::kNormal); in setNamedTypeface()
82 SkTypeface* face = SkCreateTypefaceFromCTFont(font); in draw_mode()
86 SkTypeface* newFace = SkCreateTypefaceFromCTFont(newFont); in draw_mode()
127 paint.setTypeface(SkTypeface::CreateFromName("Arial Unicode MS", SkTypeface::kNormal)); in onDrawContent()
/external/webkit/Source/WebCore/platform/graphics/android/fonts/
DFontCacheAndroid.cpp151 int style = SkTypeface::kNormal; in createFontPlatformData()
153 style |= SkTypeface::kBold; in createFontPlatformData()
155 style |= SkTypeface::kItalic; in createFontPlatformData()
167 SkTypeface* tf = SkTypeface::CreateFromName(name, SkTypeface::kNormal); in createFontPlatformData()
169 if (!SkTypeface::Equal(tf, 0) || isFallbackFamily(family.string())) { in createFontPlatformData()
172 if (style != SkTypeface::kNormal) { in createFontPlatformData()
174 tf = SkTypeface::CreateFromName(name, (SkTypeface::Style)style); in createFontPlatformData()
178 (style & SkTypeface::kBold), in createFontPlatformData()
179 (style & SkTypeface::kItalic) && !tf->isItalic(), in createFontPlatformData()
DFontPlatformData.h42 class SkTypeface; variable
56 FontPlatformData(SkTypeface*, float textSize, bool fakeBold, bool fakeItalic,
60 FontPlatformData(const FontPlatformData& src, SkTypeface* typeface);
93 SkTypeface* typeface() const { return mTypeface; } in typeface()
118 SkTypeface* mTypeface;
127 static SkTypeface* hashTableDeletedFontValue() { in hashTableDeletedFontValue()
128 return reinterpret_cast<SkTypeface*>(-1); in hashTableDeletedFontValue()
DFontCustomPlatformData.h36 class SkTypeface; variable
46 FontCustomPlatformData(SkTypeface* face);
49 SkTypeface* typeface() const { return m_typeface; } in typeface()
55 SkTypeface* m_typeface;
/external/webkit/Source/WebKit/android/plugins/
DANPTypefaceInterface.cpp32 SkTypeface* tf = SkTypeface::CreateFromName(name, in anp_createFromName()
33 static_cast<SkTypeface::Style>(s)); in anp_createFromName()
39 SkTypeface* tf = SkTypeface::CreateFromTypeface(family, in anp_createFromTypeface()
40 static_cast<SkTypeface::Style>(s)); in anp_createFromTypeface()
57 SkTypeface::Style s = tf ? tf->style() : SkTypeface::kNormal; in anp_getStyle()
63 size_t size = SkFontHost::GetFileName(SkTypeface::UniqueID(tf), fileName, in anp_getFontPath()
/external/webkit/Source/WebCore/platform/graphics/chromium/
DFontCacheLinux.cpp140 int style = SkTypeface::kNormal; in createFontPlatformData()
142 style |= SkTypeface::kBold; in createFontPlatformData()
144 style |= SkTypeface::kItalic; in createFontPlatformData()
146 SkTypeface* tf = SkTypeface::CreateFromName(name, static_cast<SkTypeface::Style>(style)); in createFontPlatformData()
154 (style & SkTypeface::kBold) && !tf->isBold(), in createFontPlatformData()
155 (style & SkTypeface::kItalic) && !tf->isItalic(), in createFontPlatformData()
DFontPlatformDataLinux.h43 class SkTypeface; variable
95 …FontPlatformData(SkTypeface*, const char* name, float textSize, bool fakeBold, bool fakeItalic, Fo…
163 SkTypeface* m_typeface;
174 SkTypeface* hashTableDeletedFontValue() const { return reinterpret_cast<SkTypeface*>(-1); } in hashTableDeletedFontValue()
/external/skia/gm/
Dverttext2.cpp24 prop = SkTypeface::CreateFromName("Helvetica", SkTypeface::kNormal); in VertText2GM()
25 mono = SkTypeface::CreateFromName("Courier New", SkTypeface::kNormal); in VertText2GM()
66 SkTypeface* family, SkPaint::Align alignment) { in drawText()
83 SkTypeface* prop;
84 SkTypeface* mono;
Dpathreverse.cpp55 SkTypeface* hira = SkTypeface::CreateFromName("Hiragino Maru Gothic Pro", SkTypeface::kNormal); in test_rev()
101SkTypeface* hira = SkTypeface::CreateFromName("Hiragino Maru Gothic Pro", SkTypeface::kNormal); in onDraw()
Dstrokefill.cpp48 SkTypeface* face = SkTypeface::CreateFromName("Papyrus", SkTypeface::kNormal); in onDraw()
52 face = SkTypeface::CreateFromName("Hiragino Maru Gothic Pro", SkTypeface::kNormal); in onDraw()
/external/chromium/chrome/common/
Dbadge_util.cc30 SkTypeface* typeface = SkTypeface::CreateFromName( in GetBadgeTextPaintSingleton()
31 kPreferredTypeface, SkTypeface::kBold); in GetBadgeTextPaintSingleton()
43 typeface = SkTypeface::CreateFromName( in GetBadgeTextPaintSingleton()
44 UTF16ToUTF8(base_font.GetFontName()).c_str(), SkTypeface::kNormal); in GetBadgeTextPaintSingleton()

1234