namespace Quik.Media { /// /// Glyph properties with metrics based on FreeType glyph metrics. /// public struct QGlyphMetrics { /// /// The code point for the character. /// public int Rune { get; } /// /// Size of the glyph in units. /// public QVec2 Size { get; } /// /// Bearing vector for horizontal layout. /// public QVec2 HorizontalBearing { get; } /// /// Bearing vector for vertical layout. /// public QVec2 VerticalBearing { get; } /// /// Advance vector for vertical and horizontal layouts. /// public QVec2 Advance { get; } public QGlyphMetrics( int character, QVec2 size, QVec2 horizontalBearing, QVec2 verticalBearing, QVec2 advance) { Rune = character; Size = size; HorizontalBearing = horizontalBearing; VerticalBearing = verticalBearing; Advance = advance; } } }