Home
last modified time | relevance | path

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

12345678910>>...29

/third_party/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.h48 static SkMatrix MakeTextMatrix(const SkFont& font) { in MakeTextMatrix()
65 static SkRect GetFontBounds(const SkFont&);
67 static bool IsFinite(const SkFont& font) { in IsFinite()
76 static void GlyphsToUnichars(const SkFont&, const uint16_t glyphs[], int count, SkUnichar[]);
78 static void Flatten(const SkFont&, SkWriteBuffer& buffer);
79 static bool Unflatten(SkFont*, SkReadBuffer& buffer);
81 static inline uint8_t Flags(const SkFont& font) { return font.fFlags; } in Flags()
86 SkAutoToGlyphs(const SkFont& font, const void* text, size_t length, SkTextEncoding encoding) { in SkAutoToGlyphs()
DSkStrikeSpec.cpp30 SkStrikeSpec SkStrikeSpec::MakeMask(const SkFont& font, const SkPaint& paint, in MakeMask()
39 const SkFont& font, const SkPaint& paint, in MakePath()
45 SkFont pathFont{font}; in MakePath()
59 const SkFont& font, in MakeSourceFallback()
76 SkFont fallbackFont{font}; in MakeSourceFallback()
90 const SkFont& font, const SkPaint* paint) { in MakeCanonicalized()
96 const SkFont* canonicalizedFont = &font; in MakeCanonicalized()
97 SkTLazy<SkFont> pathFont; in MakeCanonicalized()
110 SkStrikeSpec SkStrikeSpec::MakeWithNoDevice(const SkFont& font, const SkPaint* paint) { in MakeWithNoDevice()
121 const SkPaint& paint, const SkFont& font, const SkMatrix& viewMatrix) { in ShouldDrawAsPath()
[all …]
DSkStrikeSpec.h24 class SkFont; variable
42 const SkFont& font,
50 const SkFont& font,
56 const SkFont& font,
64 const SkFont& font, const SkPaint* paint = nullptr);
67 static SkStrikeSpec MakeWithNoDevice(const SkFont& font, const SkPaint* paint = nullptr);
75 const SkFont& font,
97 static bool ShouldDrawAsPath(const SkPaint& paint, const SkFont& font, const SkMatrix& matrix);
102 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()
/third_party/flutter/skia/src/core/
DSkFont.cpp26 #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()
81 void SkFont::setSubpixel(bool predicate) { in setSubpixel()
[all …]
DSkStrikeSpec.cpp16 SkStrikeSpec SkStrikeSpec::MakeMask(const SkFont& font, const SkPaint& paint, in MakeMask()
27 SkStrikeSpec SkStrikeSpec::MakePath(const SkFont& font, const SkPaint& paint, in MakePath()
34 SkFont pathFont{font}; in MakePath()
49 const SkFont& font, in MakeSourceFallback()
65 SkFont fallbackFont{font}; in MakeSourceFallback()
79 SkStrikeSpec SkStrikeSpec::MakeCanonicalized(const SkFont& font, const SkPaint* paint) { in MakeCanonicalized()
87 const SkFont* canonicalizedFont = &font; in MakeCanonicalized()
88 SkTLazy<SkFont> pathFont; in MakeCanonicalized()
103 SkStrikeSpec SkStrikeSpec::MakeWithNoDevice(const SkFont& font, const SkPaint* paint) { in MakeWithNoDevice()
122 SkFont defaultFont; in MakeDefault()
[all …]
DSkStrikeSpec.h20 class SkFont; variable
29 const SkFont& font,
37 const SkFont& font,
42 static SkStrikeSpec MakeSourceFallback(const SkFont& font,
50 const SkFont& font, const SkPaint* paint = nullptr);
54 static SkStrikeSpec MakeWithNoDevice(const SkFont& font, const SkPaint* paint = nullptr);
65 const SkFont& font,
81 static bool ShouldDrawAsPath(const SkPaint& paint, const SkFont& font, const SkMatrix& matrix);
85 const SkFont& font,
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);
83 SkAutoToGlyphs(const SkFont& font, const void* text, size_t length, SkTextEncoding encoding) { in SkAutoToGlyphs()
DSkGlyphRun.h29 SkGlyphRun(const SkFont& font,
34 SkGlyphRun(const SkGlyphRun& glyphRun, const SkFont& font);
41 const SkFont& font() const { return fFont; } in font()
55 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 …]
/third_party/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,
219 SkFont font;
344 const RunBuffer& allocRun(const SkFont& font, int count, SkScalar x, SkScalar y,
368 const RunBuffer& allocRunPosH(const SkFont& font, int count, SkScalar y,
391 const RunBuffer& allocRunPos(const SkFont& font, int count,
395 const RunBuffer& allocRunRSXform(const SkFont& font, int count);
[all …]
/third_party/flutter/skia/include/core/
DSkTextBlob.h79 static sk_sp<SkTextBlob> MakeFromText(const void* text, size_t byteLength, const SkFont& font,
99 static sk_sp<SkTextBlob> MakeFromString(const char* string, const SkFont& font,
120 const SkScalar xpos[], SkScalar constY, const SkFont& font,
135 const SkPoint pos[], const SkFont& font,
139 const SkRSXform xform[], const SkFont& font,
300 const RunBuffer& allocRun(const SkFont& font, int count, SkScalar x, SkScalar y,
324 const RunBuffer& allocRunPosH(const SkFont& font, int count, SkScalar y,
347 const RunBuffer& allocRunPos(const SkFont& font, int count,
351 const RunBuffer& allocRunRSXform(const SkFont& font, int count);
354 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); }
186 SkFont makeWithSize(SkScalar size) const;
/third_party/flutter/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 …]
/third_party/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.cpp38 SkScalar y, const SkFont& font) { in drawString()
44 SkScalar y, const SkFont& origFont, SkFontMgr* fm, in drawCharacter()
47 SkFont font = origFont; in drawCharacter()
86 SkFont font; in onDraw()
87 font.setEdging(SkFont::Edging::kSubpixelAntiAlias); in onDraw()
135 void iterateFamily(SkCanvas* canvas, const SkFont& font, SkFontStyleSet* fset) { in iterateFamily()
136 SkFont f(font); in iterateFamily()
152 void exploreFamily(SkCanvas* canvas, const SkFont& font, SkFontStyleSet* fset) { in exploreFamily()
153 SkFont f(font); in exploreFamily()
172 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()
159 SkFont::Edging edging;
173 { SkFont::Edging::kAlias , false },
175 { SkFont::Edging::kAntiAlias , false },
176 { SkFont::Edging::kSubpixelAntiAlias, false },
177 { SkFont::Edging::kAntiAlias , true },
178 { SkFont::Edging::kSubpixelAntiAlias, true },
[all …]
/third_party/skia/tests/
DFontTest.cpp18 static SkFont serialize_deserialize(const SkFont& font, skiatest::Reporter* reporter) { in serialize_deserialize()
42 SkFont clone; in serialize_deserialize()
58 static void apply_flags(SkFont* font, unsigned flags) { in apply_flags()
71 const SkFont::Edging edges[] = { in DEF_TEST()
72 SkFont::Edging::kAlias, SkFont::Edging::kSubpixelAntiAlias in DEF_TEST()
85 SkFont font; in DEF_TEST()
100 SkFont clone = serialize_deserialize(font, reporter); in DEF_TEST()
DDrawTextTest.cpp83 SkFont font(nullptr, 20); in DEF_TEST()
84 font.setEdging(SkFont::Edging::kSubpixelAntiAlias); in DEF_TEST()
120 canvas->drawString("a", +x, 0.0f, SkFont(), SkPaint()); in DEF_TEST()
121 canvas->drawString("a", -x, 0.0f, SkFont(), SkPaint()); in DEF_TEST()
124 canvas->drawString("a", 0.0f, +y, SkFont(), SkPaint()); in DEF_TEST()
125 canvas->drawString("a", 0.0f, -y, SkFont(), SkPaint()); in DEF_TEST()
135 SkFont font; in DEF_TEST()
136 font.setEdging(SkFont::Edging::kSubpixelAntiAlias); in DEF_TEST()
174 auto blob = SkTextBlob::MakeFromText(text, strlen(text), SkFont()); in DEF_TEST()
179 10, 20, SkFont(), SkPaint()); in DEF_TEST()
/third_party/flutter/skia/tests/
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()
/third_party/flutter/skia/src/gpu/text/
DGrTextContext.cpp94 bool GrTextContext::CanDrawAsDistanceFields(const SkPaint& paint, const SkFont& font, in CanDrawAsDistanceFields()
152 SkFont GrTextContext::InitDistanceFieldFont(const SkFont& font, in InitDistanceFieldFont()
159 SkFont dfFont{font}; in InitDistanceFieldFont()
172 dfFont.setEdging(SkFont::Edging::kAntiAlias); in InitDistanceFieldFont()
246 SkFont font; in GR_DRAW_OP_TEST_DEFINE()
248 font.setEdging(SkFont::Edging::kSubpixelAntiAlias); in GR_DRAW_OP_TEST_DEFINE()
250 font.setEdging(random->nextBool() ? SkFont::Edging::kAntiAlias : SkFont::Edging::kAlias); in GR_DRAW_OP_TEST_DEFINE()

12345678910>>...29