Table of Contents

Class FontRegion

Namespace
BSGameLib.Game.Fonts.Internal
Assembly
BSGameLib.Game.dll

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

character char
region TextureRegion
offset Point
xAdvance int

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

character char
region TextureRegion
xOffset int
yOffset int
xAdvance int

Properties

Height

The height of the glyph's region, in pixels.

public int Height { get; }

Property Value

int

Region

The region of the page texture that holds the glyph's image.

public TextureRegion Region { get; }

Property Value

TextureRegion

Width

The width of the glyph's region, in pixels.

public int Width { get; }

Property Value

int