Package icyllis.arc3d.core
Class Glyph
java.lang.Object
icyllis.arc3d.core.Glyph
Represents a CPU glyph + digest information for GPU drawing,
managed by
Strike
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
Action for methods.static final int
Text rendering methods, values are used as bit shift to obtain action.static final int
Text rendering methods, values are used as bit shift to obtain action.static final int
Action for methods.static final int
Text rendering methods, values are used as bit shift to obtain action.static final int
Text rendering methods, values are used as bit shift to obtain action.static final int
Action for methods.static final int
Text rendering methods, values are used as bit shift to obtain action.static final int
Text rendering methods, values are used as bit shift to obtain action.static final int
Action for methods.static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
actionFor
(int actionType) Returns the action result for the given text rendering method.void
Returns the bounding box for this glyph, it holds rounded integer values.void
Returns the bounding box for this glyph.int
int
long
int
int
getLeft()
The bearing X.byte
int
Returns the largest dimension ( max(width, height) ).getPath()
int
int
getTop()
The bearing Y.int
getWidth()
boolean
boolean
isColor()
boolean
isEmpty()
boolean
setImage
(ScalerContext scalerContext) boolean
boolean
boolean
setPath
(ScalerContext scalerContext) boolean
-
Field Details
-
kUnset_Action
public static final int kUnset_ActionAction for methods.- See Also:
-
kAccept_Action
public static final int kAccept_ActionAction for methods.- See Also:
-
kReject_Action
public static final int kReject_ActionAction for methods.- See Also:
-
kDrop_Action
public static final int kDrop_ActionAction for methods.- See Also:
-
kDirectMask
public static final int kDirectMaskText rendering methods, values are used as bit shift to obtain action.- See Also:
-
kTransformedMask
public static final int kTransformedMaskText rendering methods, values are used as bit shift to obtain action.- See Also:
-
kPath
public static final int kPathText rendering methods, values are used as bit shift to obtain action.- See Also:
-
kDrawable
public static final int kDrawableText rendering methods, values are used as bit shift to obtain action.- See Also:
-
kSDF
public static final int kSDFText rendering methods, values are used as bit shift to obtain action.- See Also:
-
kMSDF
public static final int kMSDFText rendering methods, values are used as bit shift to obtain action.- See Also:
-
BILERP_GLYPH_BORDER
public static final int BILERP_GLYPH_BORDER- See Also:
-
MAX_ATLAS_DIMENSION
public static final int MAX_ATLAS_DIMENSION- See Also:
-
MAX_BILERP_ATLAS_DIMENSION
public static final int MAX_BILERP_ATLAS_DIMENSION- See Also:
-
-
Constructor Details
-
Glyph
public Glyph(int id)
-
-
Method Details
-
getGlyphID
public int getGlyphID() -
getLeft
public int getLeft()The bearing X. -
getTop
public int getTop()The bearing Y. -
getWidth
public int getWidth() -
getHeight
public int getHeight() -
getMaxDimension
public int getMaxDimension()Returns the largest dimension ( max(width, height) ). -
getBounds
Returns the bounding box for this glyph.This may an exact bounding box or just a bounds of all control points, also known as pixel bounds.
-
getBounds
Returns the bounding box for this glyph, it holds rounded integer values.This may an exact bounding box or just a bounds of all control points, also known as pixel bounds.
-
isEmpty
public boolean isEmpty() -
getMaskFormat
public byte getMaskFormat() -
isColor
public boolean isColor() -
imageIsTooLarge
public boolean imageIsTooLarge() -
setImage
-
setImageHasBeenCalled
public boolean setImageHasBeenCalled() -
getImageBase
-
getImageAddress
public long getImageAddress() -
getRowBytes
public int getRowBytes() -
getImageSize
public int getImageSize() -
setPath
-
setPath
-
setPathHasBeenCalled
public boolean setPathHasBeenCalled() -
getPath
-
actionFor
public int actionFor(int actionType) Returns the action result for the given text rendering method.- Parameters:
actionType
- e.g.kDirectMask
-