142 void setForceAutoHinting(
bool forceAutoHinting);
148 void setEmbeddedBitmaps(
bool embeddedBitmaps);
154 void setSubpixel(
bool subpixel);
163 void setLinearMetrics(
bool linearMetrics);
169 void setEmbolden(
bool embolden);
176 void setBaselineSnap(
bool baselineSnap);
185 void setEdging(Edging edging);
210 return fTypeface.get();
324 return this->textToGlyphs(
text, byteLength, encoding,
nullptr, 0);
337 SkRect* bounds =
nullptr)
const {
338 return this->measureText(
text, byteLength, encoding, bounds,
nullptr);
449 const SkPaint* =
nullptr)
const;
470 void (*glyphPathProc)(
const SkPath* pathOrNull,
const SkMatrix& mx,
void* ctx),
505 kForceAutoHinting_PrivFlag = 1 << 0,
506 kEmbeddedBitmaps_PrivFlag = 1 << 1,
507 kSubpixel_PrivFlag = 1 << 2,
508 kLinearMetrics_PrivFlag = 1 << 3,
509 kEmbolden_PrivFlag = 1 << 4,
510 kBaselineSnap_PrivFlag = 1 << 5,
513 static constexpr unsigned kAllFlags = kForceAutoHinting_PrivFlag
514 | kEmbeddedBitmaps_PrivFlag
516 | kLinearMetrics_PrivFlag
518 | kBaselineSnap_PrivFlag;
531 bool hasSomeAntiAliasing()
const;
static constexpr bool SkToBool(const T &x)
static void dump(const float m[20], SkYUVColorSpace cs, bool rgb2yuv)
bool isBaselineSnap() const
void getBounds(const SkGlyphID glyphs[], int count, SkRect bounds[], const SkPaint *paint) const
bool operator!=(const SkFont &font) const
SkTypeface * getTypeface() const
void getWidths(const SkGlyphID glyphs[], int count, SkScalar widths[], SkRect bounds[]) const
SkScalar measureText(const void *text, size_t byteLength, SkTextEncoding encoding, SkRect *bounds=nullptr) const
void getWidths(const SkGlyphID glyphs[], int count, SkScalar widths[], std::nullptr_t) const
SkFontHinting getHinting() const
bool isForceAutoHinting() const
bool isLinearMetrics() const
bool isEmbeddedBitmaps() const
int countText(const void *text, size_t byteLength, SkTextEncoding encoding) const
SkScalar getScaleX() const
SkScalar getSkewX() const
sk_sp< SkTypeface > refTypeface() const
SkScalar getSpacing() const
std::true_type sk_is_trivially_relocatable
void getWidths(const SkGlyphID glyphs[], int count, SkScalar widths[]) const
bool operator==(const FlutterPoint &a, const FlutterPoint &b)