Class FontRegion
A glyph whose image is a region of a texture, with the offset and advance used to place it. Used by the fonts; not for direct use.
public class FontRegion : FontCharacter
- Inheritance
-
FontRegion
- Inherited Members
Constructors
FontRegion(char, TextureRegion, Point, int)
Creates a glyph for character in region, drawn at offset and advancing the pen by xAdvance pixels.
public FontRegion(char character, TextureRegion region, Point offset, int xAdvance)
Parameters
charactercharregionTextureRegionoffsetPointxAdvanceint
FontRegion(char, TextureRegion, int, int, int)
Creates a glyph for character in region, drawn at (xOffset, yOffset) and advancing the pen by xAdvance pixels.
public FontRegion(char character, TextureRegion region, int xOffset, int yOffset, int xAdvance)
Parameters
charactercharregionTextureRegionxOffsetintyOffsetintxAdvanceint
Properties
Height
The height of the glyph's region, in pixels.
public int Height { get; }
Property Value
Region
The region of the page texture that holds the glyph's image.
public TextureRegion Region { get; }
Property Value
Width
The width of the glyph's region, in pixels.
public int Width { get; }