Class TTextureFontData.TGlyph

Unit

Declaration

type TGlyph = class(TObject)

Description

Information about a particular font glyph.

Source: src/fonts/castletexturefontdata.pas (line 101).

Hierarchy

  • TObject
  • TTextureFontData.TGlyph

Enclosing Class

Overview

Fields

Public X: Integer;
Public Y: Integer;
Public AdvanceX: Integer;
Public AdvanceY: Integer;
Public Width: Cardinal;
Public Height: Cardinal;
Public ImageX: Cardinal;
Public ImageY: Cardinal;

Description

Fields

Public X: Integer;

How to shift the glyph with respect to the starting position when drawing.

Source: src/fonts/castletexturefontdata.pas (line 109).

Public Y: Integer;

How to shift the glyph with respect to the starting position when drawing.

Source: src/fonts/castletexturefontdata.pas (line 109).

Public AdvanceX: Integer;

How to advance the position for next glyph.

Source: src/fonts/castletexturefontdata.pas (line 112).

Public AdvanceY: Integer;

How to advance the position for next glyph.

Source: src/fonts/castletexturefontdata.pas (line 112).

Public Width: Cardinal;

Size of the glyph. Always Width and Height >= 0 (they are Cardinal type after all), but note that it is possible that Width = Height = 0 (it commonly happens for space ' ' character).

For rendering, use GlyphDrawImageRect to get the actual size, as these fields include an extra padding in case of distance field rendering.

Source: src/fonts/castletexturefontdata.pas (line 121).

Public Height: Cardinal;

Size of the glyph. Always Width and Height >= 0 (they are Cardinal type after all), but note that it is possible that Width = Height = 0 (it commonly happens for space ' ' character).

For rendering, use GlyphDrawImageRect to get the actual size, as these fields include an extra padding in case of distance field rendering.

Source: src/fonts/castletexturefontdata.pas (line 121).

Public ImageX: Cardinal;

Position of the glyph on the image in TTextureFontData.Image.

For rendering, use GlyphDrawImageRect to get the actual size, as these fields include an extra padding in case of distance field rendering.

Source: src/fonts/castletexturefontdata.pas (line 127).

Public ImageY: Cardinal;

Position of the glyph on the image in TTextureFontData.Image.

For rendering, use GlyphDrawImageRect to get the actual size, as these fields include an extra padding in case of distance field rendering.

Source: src/fonts/castletexturefontdata.pas (line 127).


Generated by PasDoc 0.17.0.snapshot.