Flutter Engine
The Flutter Engine
|
Public Member Functions | |
SkScalerContext_FreeType (sk_sp< SkTypeface_FreeType >, const SkScalerContextEffects &, const SkDescriptor *desc) | |
~SkScalerContext_FreeType () override | |
bool | success () const |
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 &, SkArenaAlloc *) override |
void | generateImage (const SkGlyph &, void *) override |
bool | generatePath (const SkGlyph &glyph, SkPath *path) override |
sk_sp< SkDrawable > | generateDrawable (const SkGlyph &) override |
void | generateFontMetrics (SkFontMetrics *) override |
Protected Member Functions inherited from SkScalerContext | |
virtual GlyphMetrics | generateMetrics (const SkGlyph &, SkArenaAlloc *)=0 |
virtual void | generateImage (const SkGlyph &glyph, void *imageBuffer)=0 |
virtual bool | generatePath (const SkGlyph &, SkPath *)=0 |
virtual sk_sp< SkDrawable > | generateDrawable (const SkGlyph &) |
virtual void | generateFontMetrics (SkFontMetrics *)=0 |
void | forceGenerateImageFromPath () |
void | forceOffGenerateImageFromPath () |
Definition at line 440 of file SkFontHost_FreeType.cpp.
SkScalerContext_FreeType::SkScalerContext_FreeType | ( | sk_sp< SkTypeface_FreeType > | typeface, |
const SkScalerContextEffects & | effects, | ||
const SkDescriptor * | desc | ||
) |
Definition at line 892 of file SkFontHost_FreeType.cpp.
|
override |
Definition at line 1077 of file SkFontHost_FreeType.cpp.
|
overrideprotectedvirtual |
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 1416 of file SkFontHost_FreeType.cpp.
|
overrideprotectedvirtual |
Retrieves font metrics.
Implements SkScalerContext.
Definition at line 1511 of file SkFontHost_FreeType.cpp.
|
overrideprotectedvirtual |
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 1349 of file SkFontHost_FreeType.cpp.
|
overrideprotectedvirtual |
Implements SkScalerContext.
Definition at line 1169 of file SkFontHost_FreeType.cpp.
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 1471 of file SkFontHost_FreeType.cpp.
|
inline |
Definition at line 447 of file SkFontHost_FreeType.cpp.