Package icyllis.arc3d.core.j2d
Class ScalerContext_JDK
java.lang.Object
icyllis.arc3d.core.ScalerContext
icyllis.arc3d.core.j2d.ScalerContext_JDK
Wraps Java2D's freetype scaler.
-
Nested Class Summary
Nested classes/interfaces inherited from class icyllis.arc3d.core.ScalerContext
ScalerContext.GlyphMetrics
-
Field Summary
Fields inherited from class icyllis.arc3d.core.ScalerContext
mDesc
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
generateImage
(Glyph glyph, Object imageBase, long imageAddress) Generates the contents of glyph.fImage.protected ScalerContext.GlyphMetrics
generateMetrics
(Glyph glyph) protected boolean
generatePath
(Glyph glyph, Path dst) Sets the passed path to the glyph outline.Methods inherited from class icyllis.arc3d.core.ScalerContext
getImage, getMaskFormat, getPath, getTypeface, isLinearMetrics, makeGlyph
-
Constructor Details
-
ScalerContext_JDK
-
-
Method Details
-
generateMetrics
- Specified by:
generateMetrics
in classScalerContext
-
generateImage
Description copied from class:ScalerContext
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.
- Specified by:
generateImage
in classScalerContext
-
generatePath
Description copied from class:ScalerContext
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.- Specified by:
generatePath
in classScalerContext
- Returns:
- false if this glyph does not have any path.
-