/third_party/skia/src/core/ |
H A D | SkFont.cpp | 25 #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(st function in SkFont 47 SkFont::SkFont() : SkFont(nullptr, kDefault_Size) {} SkFont() function in SkFont [all...] |
H A D | SkFontPriv.h | 11 #include "include/core/SkFont.h" 48 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()
|
H A D | SkStrikeSpec.cpp | 30 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 in ShouldDrawAsPath() [all...] |
H A D | SkStrikeSpec.h | 24 class SkFont; 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,
|
H A D | SkGlyphRun.h | 14 #include "include/core/SkFont.h" 31 SkGlyphRun(const SkFont& font, 38 SkGlyphRun(const SkGlyphRun& glyphRun, const SkFont& font); 44 const SkFont& font() const { return fFont; } in font() 60 SkFont fFont; 124 const SkGlyphRunList& textToGlyphRunList(const SkFont& font, 141 const SkFont& font, const void* bytes, size_t byteLength, SkTextEncoding); 144 const SkFont& font,
|
H A D | SkFont_serial.cpp | 42 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/skia/include/core/ |
H A D | SkTextBlob.h | 11 #include "include/core/SkFont.h" 83 static sk_sp<SkTextBlob> MakeFromText(const void* text, size_t byteLength, const SkFont& font, 103 static sk_sp<SkTextBlob> MakeFromString(const char* string, const SkFont& font, in MakeFromString() 119 @param font SkFont used for this run 124 const SkScalar xpos[], SkScalar constY, const SkFont& font, 134 @param font SkFont used for this run 139 const SkPoint pos[], const SkFont& font, 143 const SkRSXform xform[], const SkFont& font, 220 SkFont font; 344 @param font SkFont use [all...] |
H A D | SkFont.h | 22 /** \class SkFont 23 SkFont controls options applied when drawing and measuring text. 25 class SK_API SkFont { class 35 /** Constructs SkFont with default values. 37 @return default initialized SkFont 39 SkFont(); 41 /** Constructs SkFont with default values with SkTypeface and size in points. 45 @return initialized SkFont 47 SkFont(sk_sp<SkTypeface> typeface, SkScalar size); 49 /** Constructs SkFont wit [all...] |
/third_party/skia/gm/ |
H A D | gradtext.cpp | 11 #include "include/core/SkFont.h" 68 SkFont font(ToolUtils::create_portable_typeface(), 500); 69 font.setEdging(SkFont::Edging::kAlias); 83 SkFont font(ToolUtils::create_portable_typeface()); 84 font.setEdging(SkFont::Edging::kAlias); 107 SkFont font(ToolUtils::create_portable_typeface(), kTextSize); in DEF_SIMPLE_GM() 116 static const SkFont::Edging edgings[3] = { in DEF_SIMPLE_GM() 117 SkFont::Edging::kAlias, in DEF_SIMPLE_GM() 118 SkFont::Edging::kAntiAlias, in DEF_SIMPLE_GM() 119 SkFont in DEF_SIMPLE_GM() [all...] |
H A D | srcmode.cpp | 12 #include "include/core/SkFont.h" 46 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 in drawContent() [all...] |
H A D | fontmgr.cpp | 11 #include "include/core/SkFont.h" 38 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; 87 font.setEdging(SkFont::Edging::kSubpixelAntiAlias); 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 in exploreFamily() [all...] |
H A D | typeface.cpp | 11 #include "include/core/SkFont.h" 30 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; 159 SkFont::Edging edging; in draw_typeface_rendering_gm() 173 { SkFont::Edging::kAlias , false }, in draw_typeface_rendering_gm() 175 { SkFont::Edging::kAntiAlias , false }, in draw_typeface_rendering_gm() 176 { SkFont::Edging::kSubpixelAntiAlias, false }, in draw_typeface_rendering_gm() 177 { SkFont in draw_typeface_rendering_gm() [all...] |
H A D | lcdtext.cpp | 11 #include "include/core/SkFont.h" 47 SkFont font(nullptr, kTextHeight); in drawText() 52 font.setEdging(SkFont::Edging::kSubpixelAntiAlias); in drawText() 98 SkFont font(nullptr, rec[i].fTextSize); 99 font.setEdging(SkFont::Edging::kSubpixelAntiAlias); 130 SkFont font(nullptr, kTextHeight); in drawText() 131 font.setEdging(SkFont::Edging::kSubpixelAntiAlias); in drawText()
|
H A D | stroketext.cpp | 12 #include "include/core/SkFont.h" 41 static void draw_text_stroked(SkCanvas* canvas, const SkPaint& paint, const SkFont& font, in draw_text_stroked() 60 static void draw_text_set(SkCanvas* canvas, const SkPaint& paint, const SkFont& font) { in draw_text_set() 90 SkFont font(ToolUtils::create_portable_typeface(), kBelowThreshold_TextSize); in DEF_SIMPLE_GM() 125 SkFont font(ttf, 100); in DEF_SIMPLE_GM_CAN_FAIL() 139 SkFont font(otf, 100); in DEF_SIMPLE_GM_CAN_FAIL()
|
H A D | fontregen.cpp | 19 #include "include/core/SkFont.h" 39 static sk_sp<SkTextBlob> make_blob(const SkString& text, const SkFont& font) { in make_blob() 71 SkFont font; 72 font.setEdging(SkFont::Edging::kAntiAlias); 138 SkFont font; 139 font.setEdging(SkFont::Edging::kSubpixelAntiAlias);
|
H A D | daa.cpp | 11 #include "include/core/SkFont.h" 29 K*1.5f, K*0.5f, SkFont(), paint); in DEF_SIMPLE_GM() 48 K*1.5f, K*0.5f, SkFont(), paint); in DEF_SIMPLE_GM() 70 K*1.5f, K*0.5f, SkFont(), paint); in DEF_SIMPLE_GM() 89 K*1.5f, K*0.5f, SkFont(), paint); in DEF_SIMPLE_GM() 108 K*1.5f, K*0.5f, SkFont(), paint); in DEF_SIMPLE_GM()
|
H A D | gammatext.cpp | 11 #include "include/core/SkFont.h" 74 SkFont font(nullptr, 16); 75 font.setEdging(SkFont::Edging::kSubpixelAntiAlias); 107 static void draw_pair(SkCanvas* canvas, const SkFont& font, SkColor color, in draw_pair() 149 SkFont font(SkTypeface::MakeFromName("serif", SkFontStyle::Italic()), 18); 150 font.setEdging(SkFont::Edging::kSubpixelAntiAlias);
|
/third_party/skia/tests/ |
H A D | FontTest.cpp | 8 #include "include/core/SkFont.h" 18 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 clon in DEF_TEST() [all...] |
H A D | DrawTextTest.cpp | 11 #include "include/core/SkFont.h" 83 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() [all...] |
/third_party/skia/modules/skshaper/include/ |
H A D | SkShaper.h | 44 class SkFont; 96 virtual const SkFont& currentFont() const = 0; 141 const SkFont& font, sk_sp<SkFontMgr> fallback); 144 const SkFont& font, sk_sp<SkFontMgr> fallback, 149 TrivialFontRunIterator(const SkFont& font, size_t utf8Bytes) in TrivialFontRunIterator() 151 const SkFont& currentFont() const override { return fFont; } 153 SkFont fFont; 238 const SkFont& fFont; 278 const SkFont& srcFont,
|
/third_party/skia/src/gpu/text/ |
H A D | GrSDFTControl.cpp | 10 #include "include/core/SkFont.h" 49 const SkFont& font, const SkPaint& paint, const SkMatrix& viewMatrix) const -> DrawingType { 101 SkFont GrSDFTControl::getSDFFont(const SkFont& font, in getSDFFont() 107 SkFont dfFont{font}; in getSDFFont() 130 dfFont.setEdging(SkFont::Edging::kAntiAlias);
|
H A D | GrSDFTControl.h | 11 #include "include/core/SkFont.h" 28 const SkFont& font, const SkPaint& paint, const SkMatrix& viewMatrix) const; 30 SkFont getSDFFont(const SkFont& font,
|
/third_party/skia/docs/examples/ |
H A D | text_rendering.cpp | 11 SkFont font1(typeface, 64.0f, 1.0f, 0.0f); in REG_FIDDLE() 12 SkFont font2(typeface, 64.0f, 1.5f, 0.0f); in REG_FIDDLE() 13 font1.setEdging(SkFont::Edging::kAntiAlias); in REG_FIDDLE() 14 font2.setEdging(SkFont::Edging::kAntiAlias); in REG_FIDDLE()
|
/third_party/skia/modules/skshaper/src/ |
H A D | SkShaper_coretext.cpp | 36 const SkFont& srcFont, 71 SkFont skfont; in shape() 129 static SkUniqueCFRef<CTFontRef> create_ctfont_from_font(const SkFont& font) { in create_ctfont_from_font() 136 static SkFont run_to_font(CTRunRef run, const SkFont& orig) { in run_to_font() 145 SkFont font(orig); in run_to_font() 201 const SkFont& font, 235 std::vector<SkFont> fontStorage;
|
/third_party/skia/include/utils/ |
H A D | SkTextUtils.h | 12 #include "include/core/SkFont.h" 27 SkScalar x, SkScalar y, const SkFont&, const SkPaint&, Align = kLeft_Align); 30 const SkFont& font, const SkPaint& paint, Align align = kLeft_Align) { in DrawString() 35 const SkFont&, SkPath*);
|