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