namespace Quik.Typography
{
///
/// Glyph properties with metrics based on FreeType glyph metrics.
///
public struct QuikGlyph
{
///
/// The code point for the character.
///
public int Character { get; }
///
/// Location of the glyph on the atlas.
///
public QuikRectangle Location { get; }
///
/// Size of the glyph in units.
///
public QuikVec2 Size { get; }
///
/// Bearing vector for horizontal layout.
///
public QuikVec2 HorizontalBearing { get; }
///
/// Bearing vector for vertical layout.
///
public QuikVec2 VerticalBearing { get; }
///
/// Advance vector for vertical and horizontal layouts.
///
public QuikVec2 Advance { get; }
public QuikGlyph(
int character,
QuikRectangle location,
QuikVec2 size,
QuikVec2 horizontalBearing,
QuikVec2 verticalBearing,
QuikVec2 advance)
{
Character = character;
Location = location;
Size = size;
HorizontalBearing = horizontalBearing;
VerticalBearing = verticalBearing;
Advance = advance;
}
}
}