HomeSort by relevance Sort by last modified time
    Searched refs:SkTypeface (Results 1 - 25 of 71) sorted by null

1 2 3

  /external/skia/src/core/
SkTypefaceCache.h 21 #include "SkTypeface.h"
33 typedef bool (*FindProc)(SkTypeface*, SkTypeface::Style, void* context);
37 * your subclass of SkTypeface
46 static void Add(SkTypeface*, SkTypeface::Style requested);
53 static SkTypeface* FindByID(SkFontID fontID);
60 static SkTypeface* FindByProc(FindProc proc, void* ctx);
70 void add(SkTypeface*, SkTypeface::Style requested)
    [all...]
SkTypeface.cpp 18 #include "SkTypeface.h"
27 SkTypeface::SkTypeface(Style style, SkFontID fontID, bool isFixedWidth)
30 SkDebugf("SkTypeface: create %p fontID %d total %d\n",
35 SkTypeface::~SkTypeface() {
37 SkDebugf("SkTypeface: destroy %p fontID %d total %d\n",
44 uint32_t SkTypeface::UniqueID(const SkTypeface* face) {
55 SkTypeface* defaultFace
    [all...]
SkTypefaceCache.cpp 23 void SkTypefaceCache::add(SkTypeface* face, SkTypeface::Style requestedStyle) {
34 SkTypeface* SkTypefaceCache::findByID(SkFontID fontID) const {
46 SkTypeface* SkTypefaceCache::findByProc(FindProc proc, void* ctx) const {
62 SkTypeface* face = fArray[i].fFace;
90 void SkTypefaceCache::Add(SkTypeface* face, SkTypeface::Style requestedStyle) {
95 SkTypeface* SkTypefaceCache::FindByID(SkFontID fontID) {
100 SkTypeface* SkTypefaceCache::FindByProc(FindProc proc, void* ctx) {
108 static bool DumpProc(SkTypeface* face, SkTypeface::Style style, void* ctx)
    [all...]
  /external/skia/include/ports/
SkTypeface_win.h 21 #include "SkTypeface.h"
28 SK_API extern SkTypeface* SkCreateTypefaceFromLOGFONT(const LOGFONT&);
SkHarfBuzzFont.h 42 class SkTypeface;
48 virtual SkTypeface* getTypeface() const = 0;
SkTypeface_mac.h 21 #include "SkTypeface.h"
29 SK_API extern SkTypeface* SkCreateTypefaceFromCTFont(CTFontRef);
  /external/skia/include/core/
SkTypeface.h 29 /** \class SkTypeface
31 The SkTypeface class specifies the typeface and intrinsic style of a font.
38 class SK_API SkTypeface : public SkRefCnt {
76 static SkFontID UniqueID(const SkTypeface* face);
81 static bool Equal(const SkTypeface* facea, const SkTypeface* faceb);
92 static SkTypeface* CreateFromName(const char familyName[], Style style);
103 static SkTypeface* CreateForChars(const void* data, size_t bytelength,
116 static SkTypeface* CreateFromTypeface(const SkTypeface* family, Style s)
    [all...]
SkFontHost.h 21 #include "SkTypeface.h"
32 the gap between the (sort of) abstract class SkTypeface and the
35 One basic task is for each create (subclass of) SkTypeface, the FontHost is
48 1) Given either a name/style, return a subclass of SkTypeface that
68 static SkTypeface* CreateTypeface(const SkTypeface* familyFace,
71 SkTypeface::Style style);
84 static SkTypeface* CreateTypefaceFromStream(SkStream*);
90 static SkTypeface* CreateTypefaceFromFile(const char path[]);
140 static void Serialize(const SkTypeface*, SkWStream*)
    [all...]
  /external/webkit/Source/WebCore/platform/graphics/android/
FontCustomPlatformData.h 36 class SkTypeface;
46 FontCustomPlatformData(SkTypeface* face);
49 SkTypeface* typeface() const { return m_typeface; }
55 SkTypeface* m_typeface;
FontPlatformData.h 41 class SkTypeface;
55 FontPlatformData(SkTypeface*, float textSize, bool fakeBold, bool fakeItalic);
58 FontPlatformData(const FontPlatformData& src, SkTypeface* typeface);
91 SkTypeface* typeface() const { return mTypeface; }
113 SkTypeface* mTypeface;
119 static SkTypeface* hashTableDeletedFontValue() {
120 return reinterpret_cast<SkTypeface*>(-1);
FontCacheAndroid.cpp 35 #include "SkTypeface.h"
152 int style = SkTypeface::kNormal;
154 style |= SkTypeface::kBold;
156 style |= SkTypeface::kItalic;
168 SkTypeface* tf = SkTypeface::CreateFromName(name, SkTypeface::kNormal);
170 if (!SkTypeface::Equal(tf, 0) || isFallbackFamily(family.string())) {
173 if (style != SkTypeface::kNormal) {
175 tf = SkTypeface::CreateFromName(name, (SkTypeface::Style)style)
    [all...]
FontCustomPlatformData.cpp 29 #include "SkTypeface.h"
36 FontCustomPlatformData::FontCustomPlatformData(SkTypeface* face)
65 SkTypeface* face = SkTypeface::CreateFromStream(stream);
69 SkDebugf("--------- SkTypeface::CreateFromBuffer failed %d\n",
  /external/skia/samplecode/
SampleTypeface.cpp 4 #include "SkTypeface.h"
50 SkTypeface::Style fStyle;
52 { "sans-serif", SkTypeface::kNormal },
53 { "sans-serif", SkTypeface::kBold },
54 { "sans-serif", SkTypeface::kItalic },
55 { "sans-serif", SkTypeface::kBoldItalic },
56 { "serif", SkTypeface::kNormal },
57 { "serif", SkTypeface::kBold },
58 { "serif", SkTypeface::kItalic },
59 { "serif", SkTypeface::kBoldItalic }
    [all...]
SampleFontScalerTest.cpp 4 #include "SkTypeface.h"
19 SkTypeface::Style fStyle;
21 { NULL, SkTypeface::kNormal },
22 { NULL, SkTypeface::kBold },
23 { "serif", SkTypeface::kNormal },
24 { "serif", SkTypeface::kBold },
25 { "serif", SkTypeface::kItalic },
26 { "serif", SkTypeface::kBoldItalic },
27 { "monospace", SkTypeface::kNormal }
33 SkTypeface* fFaces[gFaceCount]
    [all...]
  /external/skia/src/ports/
SkFontHost_none.cpp 18 SkTypeface* SkFontHost::CreateTypeface(const SkTypeface* familyFace,
21 SkTypeface::Style style) {
26 SkTypeface* SkFontHost::CreateTypefaceFromStream(SkStream*) {
31 SkTypeface* SkFontHost::CreateTypefaceFromFile(char const*) {
67 void SkFontHost::Serialize(const SkTypeface* face, SkWStream* stream) {
71 SkTypeface* SkFontHost::Deserialize(SkStream* stream) {
SkFontHost_linux.cpp 35 SkTypeface::Style find_name_and_attributes(SkStream* stream, SkString* name,
79 SkTypeface* fFaces[4];
89 static SkTypeface* find_best_face(const FamilyRec* family,
90 SkTypeface::Style style) {
91 SkTypeface* const* faces = family->fFaces;
97 style = (SkTypeface::Style)(style ^ SkTypeface::kItalic);
102 if (faces[SkTypeface::kNormal] != NULL) {
103 return faces[SkTypeface::kNormal];
116 static FamilyRec* find_family(const SkTypeface* member)
    [all...]
SkFontHost_android.cpp 35 SkTypeface::Style find_name_and_attributes(SkStream* stream, SkString* name,
78 SkTypeface* fFaces[4];
88 static SkTypeface* find_best_face(const FamilyRec* family,
89 SkTypeface::Style style) {
90 SkTypeface* const* faces = family->fFaces;
96 style = (SkTypeface::Style)(style ^ SkTypeface::kItalic);
101 if (faces[SkTypeface::kNormal] != NULL) {
102 return faces[SkTypeface::kNormal];
115 static FamilyRec* find_family(const SkTypeface* member)
    [all...]
SkFontHost_FONTPATH.cpp 200 static SkTypeface::Style get_style(const FontFaceRec& face) {
203 style |= SkTypeface::kBold;
206 style |= SkTypeface::kItalic;
208 return static_cast<SkTypeface::Style>(style);
217 class FontFaceRec_Typeface : public SkTypeface {
220 SkTypeface(get_style(face), get_id(face)),
229 static const FontFaceRec* get_typeface_rec(const SkTypeface* face)
242 SkTypeface* SkFontHost::CreateTypeface(const SkTypeface* familyFace,
245 SkTypeface::Style style
    [all...]
SkFontHost_fontconfig.cpp 36 SkTypeface::Style find_name_and_style(SkStream* stream, SkString* name);
44 // Note that there's also a unique id in the SkTypeface. This is unique over
52 static std::map<uint32_t, SkTypeface *> global_fc_typefaces;
63 static SkTypeface::Style UniqueIdToStyle(unsigned uniqueid)
65 return static_cast<SkTypeface::Style>(uniqueid & 0xff);
69 SkTypeface::Style style)
88 class FontConfigTypeface : public SkTypeface {
91 : SkTypeface(style, id)
220 SkTypeface* SkFontHost::CreateTypeface(const SkTypeface* familyFace
    [all...]
SkFontHost_simple.cpp 35 SkTypeface::Style find_name_and_attributes(SkStream* stream, SkString* name,
77 SkTypeface* fFaces[4];
87 static SkTypeface* find_best_face(const FamilyRec* family,
88 SkTypeface::Style style) {
89 SkTypeface* const* faces = family->fFaces;
95 style = (SkTypeface::Style)(style ^ SkTypeface::kItalic);
100 if (faces[SkTypeface::kNormal] != NULL) {
101 return faces[SkTypeface::kNormal];
114 static FamilyRec* find_family(const SkTypeface* member)
    [all...]
  /external/webkit/Source/WebKit/android/plugins/
ANPTypefaceInterface.cpp 32 SkTypeface* tf = SkTypeface::CreateFromName(name,
33 static_cast<SkTypeface::Style>(s));
39 SkTypeface* tf = SkTypeface::CreateFromTypeface(family,
40 static_cast<SkTypeface::Style>(s));
57 SkTypeface::Style s = tf ? tf->style() : SkTypeface::kNormal;
63 size_t size = SkFontHost::GetFileName(SkTypeface::UniqueID(tf), fileName,
  /frameworks/base/core/jni/android/graphics/
Typeface.cpp 7 #include "SkTypeface.h"
30 static SkTypeface* Typeface_create(JNIEnv* env, jobject, jstring name,
31 SkTypeface::Style style) {
32 SkTypeface* face;
35 face = SkTypeface::CreateFromName(NULL, (SkTypeface::Style)style);
39 face = SkTypeface::CreateFromName(str.c_str(), style);
44 static SkTypeface* Typeface_createFromTypeface(JNIEnv* env, jobject, SkTypeface* family, int style) {
45 return SkTypeface::CreateFromTypeface(family, (SkTypeface::Style)style)
    [all...]
  /external/skia/src/animator/
SkPaintParts.h 25 #include "SkTypeface.h"
75 SkTypeface* getTypeface() {
76 return SkTypeface::CreateFromName(fontName.c_str(), style); }
80 SkTypeface::Style style;
  /external/webkit/Source/WebCore/platform/graphics/chromium/
FontCacheLinux.cpp 43 #include "SkTypeface.h"
140 int style = SkTypeface::kNormal;
142 style |= SkTypeface::kBold;
144 style |= SkTypeface::kItalic;
146 SkTypeface* tf = SkTypeface::CreateFromName(name, static_cast<SkTypeface::Style>(style));
154 (style & SkTypeface::kBold) && !tf->isBold(),
155 (style & SkTypeface::kItalic) && !tf->isItalic(),
  /external/skia/include/pdf/
SkPDFFont.h 43 SK_API SkTypeface* typeface();
76 SK_API static SkPDFFont* getFontResource(SkTypeface* typeface,
80 SkRefPtr<SkTypeface> fTypeface;
125 SkPDFFont(class SkAdvancedTypefaceMetrics* fontInfo, SkTypeface* typeface,

Completed in 1029 milliseconds

1 2 3