/third_party/skia/src/core/ |
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(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 …]
|
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& font, const SkMatrix& viewMatrix) { in ShouldDrawAsPath() [all …]
|
D | SkFontPriv.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()
|
D | SkStrikeSpec.h | 24 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,
|
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()
|
D | SkGlyphRun.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,
|
D | SkTextBlob.cpp | 40 static_assert(sizeof(SkFont) == sizeof(RunFontStorageEquivalent), "runfont_should_stay_packed"); 77 SkFont fFont; 258 return fCurrentRun->font().getEdging() == SkFont::Edging::kSubpixelAntiAlias; in isLCD() 283 const SkFont& font = run.font(); in TightRunBounds() 431 bool SkTextBlobBuilder::mergeRun(const SkFont& font, SkTextBlob::GlyphPositioning positioning, in mergeRun() 491 void SkTextBlobBuilder::allocInternal(const SkFont& font, in allocInternal() 542 const SkTextBlobBuilder::RunBuffer& SkTextBlobBuilder::allocRun(const SkFont& font, int count, in allocRun() 549 const SkTextBlobBuilder::RunBuffer& SkTextBlobBuilder::allocRunPosH(const SkFont& font, int count, in allocRunPosH() 556 const SkTextBlobBuilder::RunBuffer& SkTextBlobBuilder::allocRunPos(const SkFont& font, int count, in allocRunPos() 563 SkTextBlobBuilder::allocRunRSXform(const SkFont& font, int count) { in allocRunRSXform() [all …]
|
/third_party/skia/include/core/ |
D | SkTextBlob.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, 124 const SkScalar xpos[], SkScalar constY, const SkFont& font, 139 const SkPoint pos[], const SkFont& font, 143 const SkRSXform xform[], const SkFont& font, 225 SkFont font; 362 const RunBuffer& allocRun(const SkFont& font, int count, SkScalar x, SkScalar y, 386 const RunBuffer& allocRunPosH(const SkFont& font, int count, SkScalar y, 409 const RunBuffer& allocRunPos(const SkFont& font, int count, 413 const RunBuffer& allocRunRSXform(const SkFont& font, int count); [all …]
|
D | SkFont.h | 25 class SK_API SkFont { 39 SkFont(); 47 SkFont(sk_sp<SkTypeface> typeface, SkScalar size); 54 explicit SkFont(sk_sp<SkTypeface> typeface); 67 SkFont(sk_sp<SkTypeface> typeface, SkScalar size, SkScalar scaleX, SkScalar skewX); 76 bool operator==(const SkFont& font) const; 84 bool operator!=(const SkFont& font) const { return !(*this == font); } 192 SkFont makeWithSize(SkScalar size) const;
|
/third_party/skia/gm/ |
D | gradtext.cpp | 68 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) {
|
D | srcmode.cpp | 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::Edging::kAlias); in drawContent()
|
D | fontmgr.cpp | 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; 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 …]
|
D | typeface.cpp | 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; 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 …]
|
D | lcdtext.cpp | 47 SkFont font(nullptr, kTextHeight); in drawText() 52 font.setEdging(SkFont::Edging::kSubpixelAntiAlias); in drawText() 98 SkFont font(nullptr, rec[i].fTextSize); in onDraw() 99 font.setEdging(SkFont::Edging::kSubpixelAntiAlias); in onDraw() 130 SkFont font(nullptr, kTextHeight); in drawText() 131 font.setEdging(SkFont::Edging::kSubpixelAntiAlias); in drawText()
|
D | stroketext.cpp | 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); 125 SkFont font(ttf, 100); 139 SkFont font(otf, 100);
|
D | fontregen.cpp | 39 static sk_sp<SkTextBlob> make_blob(const SkString& text, const SkFont& font) { in make_blob() 71 SkFont font; in onOnceBeforeDraw() 72 font.setEdging(SkFont::Edging::kAntiAlias); in onOnceBeforeDraw() 138 SkFont font; in onOnceBeforeDraw() 139 font.setEdging(SkFont::Edging::kSubpixelAntiAlias); in onOnceBeforeDraw()
|
D | daa.cpp | 29 K*1.5f, K*0.5f, SkFont(), paint); 48 K*1.5f, K*0.5f, SkFont(), paint); 70 K*1.5f, K*0.5f, SkFont(), paint); 89 K*1.5f, K*0.5f, SkFont(), paint); 108 K*1.5f, K*0.5f, SkFont(), paint);
|
D | gammatext.cpp | 74 SkFont font(nullptr, 16); in onDraw() 75 font.setEdging(SkFont::Edging::kSubpixelAntiAlias); in onDraw() 107 static void draw_pair(SkCanvas* canvas, const SkFont& font, SkColor color, in draw_pair() 149 SkFont font(SkTypeface::MakeFromName("serif", SkFontStyle::Italic()), 18); in onDraw() 150 font.setEdging(SkFont::Edging::kSubpixelAntiAlias); in onDraw()
|
D | dftext.cpp | 79 SkFont font(ToolUtils::create_portable_typeface("serif", SkFontStyle())); in onDraw() 113 font.setEdging(SkFont::Edging::kSubpixelAntiAlias); in onDraw() 183 font.setEdging(SkFont::Edging::kAntiAlias); in onDraw() 190 font.setEdging(SkFont::Edging::kSubpixelAntiAlias); in onDraw() 199 font.setEdging(SkFont::Edging::kAntiAlias); in onDraw() 212 font.setEdging(SkFont::Edging::kAlias); in onDraw() 227 SkFont emoiFont; in onDraw()
|
/third_party/skia/tests/ |
D | FontTest.cpp | 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 clone = serialize_deserialize(font, reporter); in DEF_TEST()
|
D | DrawTextTest.cpp | 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() 179 10, 20, SkFont(), SkPaint()); in DEF_TEST()
|
/third_party/skia/docs/examples/ |
D | text_rendering.cpp | 11 SkFont font1(typeface, 64.0f, 1.0f, 0.0f); in draw() 12 SkFont font2(typeface, 64.0f, 1.5f, 0.0f); in draw() 13 font1.setEdging(SkFont::Edging::kAntiAlias); in draw() 14 font2.setEdging(SkFont::Edging::kAntiAlias); in draw()
|
/third_party/skia/modules/skshaper/include/ |
D | SkShaper.h | 44 class SkFont; variable 92 virtual const SkFont& currentFont() const = 0; 137 const SkFont& font, sk_sp<SkFontMgr> fallback); 140 const SkFont& font, sk_sp<SkFontMgr> fallback, 145 TrivialFontRunIterator(const SkFont& font, size_t utf8Bytes) in TrivialFontRunIterator() 147 const SkFont& currentFont() const override { return fFont; } in currentFont() 149 SkFont fFont; 234 const SkFont& fFont; 274 const SkFont& srcFont,
|
/third_party/skia/modules/skshaper/src/ |
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, in shape() 235 std::vector<SkFont> fontStorage; in shape()
|
/third_party/skia/src/gpu/text/ |
D | GrSDFTControl.cpp | 49 const SkFont& font, const SkPaint& paint, const SkMatrix& viewMatrix) const -> DrawingType { in drawingType() 97 SkFont GrSDFTControl::getSDFFont(const SkFont& font, in getSDFFont() 103 SkFont dfFont{font}; in getSDFFont() 126 dfFont.setEdging(SkFont::Edging::kAntiAlias);
|