class SkFont; class SkMatrix; class SkPaint; class SkReadBuffer; class SkWriteBuffer; struct SkPoint;
namespace sktext::gpu {
#if !defined(SK_DISABLE_SDF_TEXT) // Two numbers fMatrixMin and fMatrixMax such that if viewMatrix.getMaxScale() is between them then // this SDFT size can be reused. class SDFTMatrixRange { public:
SDFTMatrixRange(SkScalar min, SkScalar max) : fMatrixMin{min}, fMatrixMax{max} {} bool matrixInRange(const SkMatrix& matrix) const; void flatten(SkWriteBuffer& buffer) const; static SDFTMatrixRange MakeFromBuffer(SkReadBuffer& buffer);
// Produce a font, a scale factor from the nominal size to the source space size, and matrix // range where this font can be reused.
std::tuple<SkFont, SkScalar, SDFTMatrixRange>
getSDFFont(const SkFont& font, const SkMatrix& viewMatrix, const SkPoint& textLocation) const;
// Below this size (in device space) distance field text will not be used. const SkScalar fMinDistanceFieldFontSize;
// Above this size (in device space) distance field text will not be used and glyphs will // be rendered from outline as individual paths. const SkScalar fMaxDistanceFieldFontSize;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.