Flutter Engine
The Flutter Engine
|
Classes | |
struct | ScalerContextBits |
Public Member Functions | |
SkFontationsScalerContext (sk_sp< SkTypeface_Fontations > face, const SkScalerContextEffects &effects, const SkDescriptor *desc) | |
bool | generateYScalePathForGlyphId (uint16_t glyphId, SkPath *path, float yScale) |
Public Member Functions inherited from SkScalerContext | |
SkScalerContext (sk_sp< SkTypeface >, const SkScalerContextEffects &, const SkDescriptor *) | |
virtual | ~SkScalerContext () |
SkTypeface * | getTypeface () const |
SkMask::Format | getMaskFormat () const |
bool | isSubpixel () const |
bool | isLinearMetrics () const |
bool | isVertical () const |
SkGlyph | makeGlyph (SkPackedGlyphID, SkArenaAlloc *) |
void | getImage (const SkGlyph &) |
void | getPath (SkGlyph &, SkArenaAlloc *) |
sk_sp< SkDrawable > | getDrawable (SkGlyph &) |
void | getFontMetrics (SkFontMetrics *) |
const SkScalerContextRec & | getRec () const |
SkScalerContextEffects | getEffects () const |
SkAxisAlignment | computeAxisAlignmentForHText () const |
Protected Member Functions | |
GlyphMetrics | generateMetrics (const SkGlyph &glyph, SkArenaAlloc *) override |
void | generatePngImage (const SkGlyph &glyph, void *imageBuffer) |
void | generateImage (const SkGlyph &glyph, void *imageBuffer) override |
bool | generatePath (const SkGlyph &glyph, SkPath *path) override |
bool | drawCOLRGlyph (const SkGlyph &glyph, SkColor foregroundColor, SkCanvas *canvas) |
sk_sp< SkDrawable > | generateDrawable (const SkGlyph &glyph) override |
void | generateFontMetrics (SkFontMetrics *out_metrics) override |
Protected Member Functions inherited from SkScalerContext | |
void | forceGenerateImageFromPath () |
void | forceOffGenerateImageFromPath () |
Friends | |
class | sk_fontations::ColorPainter |
Definition at line 334 of file SkTypeface_fontations.cpp.
|
inline |
Definition at line 336 of file SkTypeface_fontations.cpp.
|
inlineprotected |
Definition at line 652 of file SkTypeface_fontations.cpp.
|
inlineoverrideprotectedvirtual |
Returns the drawable for the glyph (if any).
The generated drawable will be lifetime scoped to the lifetime of this scaler context. This means the drawable may refer to the scaler context and associated font data.
The drawable does not need to be flattenable (e.g. implement getFactory and getTypeName). Any necessary serialization will be done with makePictureSnapshot.
Reimplemented from SkScalerContext.
Definition at line 675 of file SkTypeface_fontations.cpp.
|
inlineoverrideprotectedvirtual |
Retrieves font metrics.
Implements SkScalerContext.
Definition at line 706 of file SkTypeface_fontations.cpp.
|
inlineoverrideprotectedvirtual |
Generates the contents of glyph.fImage. When called, glyph.fImage will be pointing to a pre-allocated, uninitialized region of memory of size glyph.imageSize(). This method may not change glyph.fMaskFormat.
Because glyph.imageSize() will determine the size of fImage, generateMetrics will be called before generateImage.
Implements SkScalerContext.
Definition at line 593 of file SkTypeface_fontations.cpp.
|
inlineoverrideprotectedvirtual |
Implements SkScalerContext.
Definition at line 380 of file SkTypeface_fontations.cpp.
|
inlineoverrideprotectedvirtual |
Sets the passed path to the glyph outline. If this cannot be done the path is set to empty; Does not apply subpixel positioning to the path.
Implements SkScalerContext.
Definition at line 634 of file SkTypeface_fontations.cpp.
|
inlineprotected |
Definition at line 527 of file SkTypeface_fontations.cpp.
|
inline |
Definition at line 350 of file SkTypeface_fontations.cpp.
|
friend |
Definition at line 759 of file SkTypeface_fontations.cpp.