Home
last modified time | relevance | path

Searched refs:SkFont (Results 1 – 25 of 633) sorted by relevance

12345678910>>...26

/external/skia/src/core/
DSkFont.cpp25 #define kDefault_Flags SkFont::kBaselineSnap_PrivFlag
26 #define kDefault_Edging SkFont::Edging::kAntiAlias
33 SkFont::SkFont(sk_sp<SkTypeface> face, SkScalar size, SkScalar scaleX, SkScalar skewX) in SkFont() function in SkFont
43 SkFont::SkFont(sk_sp<SkTypeface> face, SkScalar size) : SkFont(std::move(face), size, 1, 0) {} in SkFont() function in SkFont
45 SkFont::SkFont(sk_sp<SkTypeface> face) : SkFont(std::move(face), kDefault_Size, 1, 0) {} in SkFont() function in SkFont
47 SkFont::SkFont() : SkFont(nullptr, kDefault_Size) {} in SkFont() function in SkFont
49 bool SkFont::operator==(const SkFont& b) const { in operator ==()
59 void SkFont::dump() const { in dump()
75 void SkFont::setForceAutoHinting(bool predicate) { in setForceAutoHinting()
78 void SkFont::setEmbeddedBitmaps(bool predicate) { in setEmbeddedBitmaps()
[all …]
DSkFontPriv.h47 static SkMatrix MakeTextMatrix(const SkFont& font) { in MakeTextMatrix()
64 static SkRect GetFontBounds(const SkFont&);
66 static bool IsFinite(const SkFont& font) { in IsFinite()
75 static void GlyphsToUnichars(const SkFont&, const uint16_t glyphs[], int count, SkUnichar[]);
77 static void Flatten(const SkFont&, SkWriteBuffer& buffer);
78 static bool Unflatten(SkFont*, SkReadBuffer& buffer);
80 static inline uint8_t Flags(const SkFont& font) { return font.fFlags; } in Flags()
85 SkAutoToGlyphs(const SkFont& font, const void* text, size_t length, SkTextEncoding encoding) { in SkAutoToGlyphs()
DSkStrikeSpec.cpp21 SkStrikeSpec SkStrikeSpec::MakeMask(const SkFont& font, const SkPaint& paint, in MakeMask()
32 SkStrikeSpec SkStrikeSpec::MakePath(const SkFont& font, const SkPaint& paint, in MakePath()
39 SkFont pathFont{font}; in MakePath()
54 const SkFont& font, in MakeSourceFallback()
72 SkFont fallbackFont{font}; in MakeSourceFallback()
86 SkStrikeSpec SkStrikeSpec::MakeCanonicalized(const SkFont& font, const SkPaint* paint) { in MakeCanonicalized()
94 const SkFont* canonicalizedFont = &font; in MakeCanonicalized()
95 SkTLazy<SkFont> pathFont; in MakeCanonicalized()
110 SkStrikeSpec SkStrikeSpec::MakeWithNoDevice(const SkFont& font, const SkPaint* paint) { in MakeWithNoDevice()
129 SkFont defaultFont; in MakeDefault()
[all …]
DSkGlyphRun.h30 SkGlyphRun(const SkFont& font,
35 SkGlyphRun(const SkGlyphRun& glyphRun, const SkFont& font);
41 const SkFont& font() const { return fFont; } in font()
53 SkFont fFont;
119 const SkPaint& paint, const SkFont&, const void* bytes, size_t byteLength, SkPoint origin);
121 const SkPaint&, const SkFont&, SkSpan<const SkGlyphID> glyphIDs, const SkPoint* pos);
134 const SkFont& font, const void* bytes, size_t byteLength, SkTextEncoding);
137 const SkFont& font,
146 const SkFont& font, SkSpan<const SkGlyphID> glyphIDs,
151 const SkFont& font, SkSpan<const SkGlyphID> glyphIDs,
[all …]
DSkStrikeSpec.h21 class SkFont; variable
30 const SkFont& font,
38 const SkFont& font,
43 static SkStrikeSpec MakeSourceFallback(const SkFont& font,
51 const SkFont& font, const SkPaint* paint = nullptr);
55 static SkStrikeSpec MakeWithNoDevice(const SkFont& font, const SkPaint* paint = nullptr);
66 const SkFont& font,
83 static bool ShouldDrawAsPath(const SkPaint& paint, const SkFont& font, const SkMatrix& matrix);
87 const SkFont& font,
DSkFont_serial.cpp42 void SkFontPriv::Flatten(const SkFont& font, SkWriteBuffer& buffer) { in Flatten()
43 SkASSERT(font.fFlags <= SkFont::kAllFlags); in Flatten()
82 bool SkFontPriv::Unflatten(SkFont* font, SkReadBuffer& buffer) { in Unflatten()
100 SkASSERT(SkFont::kAllFlags <= kMask_For_Flags); in Unflatten()
102 font->fFlags = SkToU8((packed >> kShift_For_Flags) & SkFont::kAllFlags); in Unflatten()
105 if (edging > (unsigned)SkFont::Edging::kSubpixelAntiAlias) { in Unflatten()
/external/skqp/src/core/
DSkFont.cpp24 #define kDefault_Edging SkFont::Edging::kAntiAlias
31 SkFont::SkFont(sk_sp<SkTypeface> face, SkScalar size, SkScalar scaleX, SkScalar skewX) in SkFont() function in SkFont
41 SkFont::SkFont(sk_sp<SkTypeface> face, SkScalar size) : SkFont(std::move(face), size, 1, 0) {} in SkFont() function in SkFont
43 SkFont::SkFont(sk_sp<SkTypeface> face) : SkFont(std::move(face), kDefault_Size, 1, 0) {} in SkFont() function in SkFont
45 SkFont::SkFont() : SkFont(nullptr, kDefault_Size) {} in SkFont() function in SkFont
47 bool SkFont::operator==(const SkFont& b) const { in operator ==()
57 void SkFont::dump() const { in dump()
73 void SkFont::setForceAutoHinting(bool predicate) { in setForceAutoHinting()
76 void SkFont::setEmbeddedBitmaps(bool predicate) { in setEmbeddedBitmaps()
79 void SkFont::setSubpixel(bool predicate) { in setSubpixel()
[all …]
DSkGlyphRun.h28 SkGlyphRun(const SkFont& font,
33 SkGlyphRun(const SkGlyphRun& glyphRun, const SkFont& font);
40 const SkFont& font() const { return fFont; } in font()
54 SkFont fFont;
118 const SkPaint& paint, const SkFont&, const void* bytes, size_t byteLength, SkPoint origin);
120 const SkPaint&, const SkFont&, SkSpan<const SkGlyphID> glyphIDs, const SkPoint* pos);
133 const SkFont& font, const void* bytes, size_t byteLength, SkTextEncoding);
136 const SkFont& font,
145 const SkFont& font, SkSpan<const SkGlyphID> glyphIDs,
150 const SkFont& font, SkSpan<const SkGlyphID> glyphIDs,
[all …]
DSkFontPriv.h51 static SkMatrix MakeTextMatrix(const SkFont& font) { in MakeTextMatrix()
71 static SkRect GetFontBounds(const SkFont&);
73 static bool IsFinite(const SkFont& font) { in IsFinite()
82 static void GlyphsToUnichars(const SkFont&, const uint16_t glyphs[], int count, SkUnichar[]);
84 static void Flatten(const SkFont&, SkWriteBuffer& buffer);
85 static bool Unflatten(SkFont*, SkReadBuffer& buffer);
90 SkAutoToGlyphs(const SkFont& font, const void* text, size_t length, SkTextEncoding encoding) { in SkAutoToGlyphs()
/external/skia/tests/
DFontTest.cpp15 static SkFont serialize_deserialize(const SkFont& font, skiatest::Reporter* reporter) { in serialize_deserialize()
25 SkFont clone; in serialize_deserialize()
41 static void apply_flags(SkFont* font, unsigned flags) { in apply_flags()
54 const SkFont::Edging edges[] = { in DEF_TEST()
55 SkFont::Edging::kAlias, SkFont::Edging::kAntiAlias, SkFont::Edging::kSubpixelAntiAlias in DEF_TEST()
61 SkFont font; in DEF_TEST()
75 SkFont clone = serialize_deserialize(font, reporter); in DEF_TEST()
DDrawTextTest.cpp82 SkFont font(nullptr, 20); in DEF_TEST()
83 font.setEdging(SkFont::Edging::kSubpixelAntiAlias); in DEF_TEST()
119 canvas->drawString("a", +x, 0.0f, SkFont(), SkPaint()); in DEF_TEST()
120 canvas->drawString("a", -x, 0.0f, SkFont(), SkPaint()); in DEF_TEST()
123 canvas->drawString("a", 0.0f, +y, SkFont(), SkPaint()); in DEF_TEST()
124 canvas->drawString("a", 0.0f, -y, SkFont(), SkPaint()); in DEF_TEST()
134 SkFont font; in DEF_TEST()
135 font.setEdging(SkFont::Edging::kSubpixelAntiAlias); in DEF_TEST()
/external/skqp/include/core/
DSkTextBlob.h89 static sk_sp<SkTextBlob> MakeFromText(const void* text, size_t byteLength, const SkFont& font,
109 static sk_sp<SkTextBlob> MakeFromString(const char* string, const SkFont& font,
131 const SkScalar xpos[], SkScalar constY, const SkFont& font,
147 const SkPoint pos[], const SkFont& font,
152 const SkRSXform xform[], const SkFont& font,
314 const RunBuffer& allocRun(const SkFont& font, int count, SkScalar x, SkScalar y,
338 const RunBuffer& allocRunPosH(const SkFont& font, int count, SkScalar y,
361 const RunBuffer& allocRunPos(const SkFont& font, int count,
365 const RunBuffer& allocRunRSXform(const SkFont& font, int count);
368 const RunBuffer& allocRunText(const SkFont& font,
[all …]
DSkFont.h23 class SK_API SkFont {
37 SkFont();
45 SkFont(sk_sp<SkTypeface> typeface, SkScalar size);
52 explicit SkFont(sk_sp<SkTypeface> typeface);
65 SkFont(sk_sp<SkTypeface> typeface, SkScalar size, SkScalar scaleX, SkScalar skewX);
74 bool operator==(const SkFont& font) const;
82 bool operator!=(const SkFont& font) const { return !(*this == font); }
184 SkFont makeWithSize(SkScalar size) const;
/external/skia/include/core/
DSkTextBlob.h82 static sk_sp<SkTextBlob> MakeFromText(const void* text, size_t byteLength, const SkFont& font,
102 static sk_sp<SkTextBlob> MakeFromString(const char* string, const SkFont& font,
123 const SkScalar xpos[], SkScalar constY, const SkFont& font,
138 const SkPoint pos[], const SkFont& font,
142 const SkRSXform xform[], const SkFont& font,
330 const RunBuffer& allocRun(const SkFont& font, int count, SkScalar x, SkScalar y,
354 const RunBuffer& allocRunPosH(const SkFont& font, int count, SkScalar y,
377 const RunBuffer& allocRunPos(const SkFont& font, int count,
381 const RunBuffer& allocRunRSXform(const SkFont& font, int count);
384 const RunBuffer& allocRunText(const SkFont& font,
[all …]
DSkFont.h23 class SK_API SkFont {
37 SkFont();
45 SkFont(sk_sp<SkTypeface> typeface, SkScalar size);
52 explicit SkFont(sk_sp<SkTypeface> typeface);
65 SkFont(sk_sp<SkTypeface> typeface, SkScalar size, SkScalar scaleX, SkScalar skewX);
74 bool operator==(const SkFont& font) const;
82 bool operator!=(const SkFont& font) const { return !(*this == font); }
190 SkFont makeWithSize(SkScalar size) const;
/external/skia/gm/
Dgradtext.cpp68 SkFont font(ToolUtils::create_portable_typeface(), 500); in onDraw()
69 font.setEdging(SkFont::Edging::kAlias); in onDraw()
83 SkFont font(ToolUtils::create_portable_typeface()); in onDraw()
84 font.setEdging(SkFont::Edging::kAlias); in onDraw()
107 SkFont font(ToolUtils::create_portable_typeface(), kTextSize);
116 static const SkFont::Edging edgings[3] = {
117 SkFont::Edging::kAlias,
118 SkFont::Edging::kAntiAlias,
119 SkFont::Edging::kSubpixelAntiAlias,
123 for (SkFont::Edging edging : edgings) {
Dsrcmode.cpp46 typedef void (*Proc)(SkCanvas*, const SkPaint&, const SkFont&);
48 static void draw_hair(SkCanvas* canvas, const SkPaint& paint, const SkFont&) { in draw_hair() argument
54 static void draw_thick(SkCanvas* canvas, const SkPaint& paint, const SkFont&) { in draw_thick() argument
60 static void draw_rect(SkCanvas* canvas, const SkPaint& paint, const SkFont&) { in draw_rect() argument
64 static void draw_oval(SkCanvas* canvas, const SkPaint& paint, const SkFont&) { in draw_oval() argument
68 static void draw_text(SkCanvas* canvas, const SkPaint& paint, const SkFont& font) { in draw_text()
85 SkFont font(ToolUtils::create_portable_typeface(), H / 4); in drawContent()
102 font.setEdging(SkToBool(aa) ? SkFont::Edging::kAntiAlias : SkFont::Edging::kAlias); in drawContent()
Dfontmgr.cpp37 SkScalar y, const SkFont& font) { in drawString()
43 SkScalar y, const SkFont& origFont, SkFontMgr* fm, in drawCharacter()
46 SkFont font = origFont; in drawCharacter()
85 SkFont font; in onDraw()
86 font.setEdging(SkFont::Edging::kSubpixelAntiAlias); in onDraw()
134 void iterateFamily(SkCanvas* canvas, const SkFont& font, SkFontStyleSet* fset) { in iterateFamily()
135 SkFont f(font); in iterateFamily()
151 void exploreFamily(SkCanvas* canvas, const SkFont& font, SkFontStyleSet* fset) { in exploreFamily()
152 SkFont f(font); in exploreFamily()
171 SkFont font; in onDraw()
[all …]
Dtypeface.cpp30 static void getGlyphPositions(const SkFont& font, const uint16_t glyphs[], in getGlyphPositions()
43 const SkFont& font) { in applyKerning()
54 SkScalar x, SkScalar y, const SkFont& font, const SkPaint& paint) { in drawKernText()
121 SkFont font; in onDraw()
160 SkFont::Edging edging;
174 { SkFont::Edging::kAlias , false },
176 { SkFont::Edging::kAntiAlias , false },
177 { SkFont::Edging::kSubpixelAntiAlias, false },
178 { SkFont::Edging::kAntiAlias , true },
179 { SkFont::Edging::kSubpixelAntiAlias, true },
[all …]
/external/skqp/gm/
Dgradtext.cpp58 SkFont font(sk_tool_utils::create_portable_typeface(), 500); in onDraw()
59 font.setEdging(SkFont::Edging::kAlias); in onDraw()
78 SkFont font(sk_tool_utils::create_portable_typeface()); in onDraw()
79 font.setEdging(SkFont::Edging::kAlias); in onDraw()
106 SkFont font(sk_tool_utils::create_portable_typeface(), kTextSize);
115 static const SkFont::Edging edgings[3] = {
116 SkFont::Edging::kAlias,
117 SkFont::Edging::kAntiAlias,
118 SkFont::Edging::kSubpixelAntiAlias,
122 for (SkFont::Edging edging : edgings) {
Dsrcmode.cpp31 typedef void (*Proc)(SkCanvas*, const SkPaint&, const SkFont&);
33 static void draw_hair(SkCanvas* canvas, const SkPaint& paint, const SkFont&) { in draw_hair() argument
39 static void draw_thick(SkCanvas* canvas, const SkPaint& paint, const SkFont&) { in draw_thick() argument
45 static void draw_rect(SkCanvas* canvas, const SkPaint& paint, const SkFont&) { in draw_rect() argument
49 static void draw_oval(SkCanvas* canvas, const SkPaint& paint, const SkFont&) { in draw_oval() argument
53 static void draw_text(SkCanvas* canvas, const SkPaint& paint, const SkFont& font) { in draw_text()
77 SkFont font(sk_tool_utils::create_portable_typeface(), H/4); in drawContent()
94 font.setEdging(SkToBool(aa) ? SkFont::Edging::kAntiAlias : SkFont::Edging::kAlias); in drawContent()
Dfontmgr.cpp23 SkScalar y, const SkFont& font) { in drawString()
29 SkScalar y, const SkFont& origFont, SkFontMgr* fm, in drawCharacter()
32 SkFont font = origFont; in drawCharacter()
78 SkFont font; in onDraw()
79 font.setEdging(SkFont::Edging::kSubpixelAntiAlias); in onDraw()
139 void iterateFamily(SkCanvas* canvas, const SkFont& font, SkFontStyleSet* fset) { in iterateFamily()
140 SkFont f(font); in iterateFamily()
156 void exploreFamily(SkCanvas* canvas, const SkFont& font, SkFontStyleSet* fset) { in exploreFamily()
157 SkFont f(font); in exploreFamily()
176 SkFont font; in onDraw()
[all …]
/external/skqp/tests/
DDrawTextTest.cpp81 SkFont font(nullptr, 20); in DEF_TEST()
82 font.setEdging(SkFont::Edging::kSubpixelAntiAlias); in DEF_TEST()
118 canvas->drawString("a", +x, 0.0f, SkFont(), SkPaint()); in DEF_TEST()
119 canvas->drawString("a", -x, 0.0f, SkFont(), SkPaint()); in DEF_TEST()
122 canvas->drawString("a", 0.0f, +y, SkFont(), SkPaint()); in DEF_TEST()
123 canvas->drawString("a", 0.0f, -y, SkFont(), SkPaint()); in DEF_TEST()
133 SkFont font; in DEF_TEST()
134 font.setEdging(SkFont::Edging::kSubpixelAntiAlias); in DEF_TEST()
/external/skia/src/gpu/text/
DGrTextContext.cpp98 bool GrTextContext::CanDrawAsDistanceFields(const SkPaint& paint, const SkFont& font, in CanDrawAsDistanceFields()
160 SkFont GrTextContext::InitDistanceFieldFont(const SkFont& font, in InitDistanceFieldFont()
167 SkFont dfFont{font}; in InitDistanceFieldFont()
190 dfFont.setEdging(SkFont::Edging::kAntiAlias);
264 SkFont font; in GR_DRAW_OP_TEST_DEFINE()
266 font.setEdging(SkFont::Edging::kSubpixelAntiAlias); in GR_DRAW_OP_TEST_DEFINE()
268 font.setEdging(random->nextBool() ? SkFont::Edging::kAntiAlias : SkFont::Edging::kAlias); in GR_DRAW_OP_TEST_DEFINE()
/external/skqp/bench/
DCmapBench.cpp17 typedef void (*TypefaceProc)(int loops, const SkFont&, const void* text, size_t len,
20 static void textToGlyphs_proc(int loops, const SkFont& font, const void* text, size_t len, in textToGlyphs_proc()
30 static void charsToGlyphs_proc(int loops, const SkFont& font, const void* text, in charsToGlyphs_proc()
41 static void charsToGlyphsNull_proc(int loops, const SkFont& font, const void* text, in charsToGlyphsNull_proc()
53 SkFont fFont;

12345678910>>...26