struct
Tessell::Text::GlyphPlacement
- Tessell::Text::GlyphPlacement
- Struct
- Value
- Object
Overview
Placement of one shaped glyph in atlas space. uv in [0,1] over atlas page: (u0,v0)=top-left, (u1,v1)=bottom-right of glyph rect. page: atlas page index for drawable glyphs, -1 for zero-bitmap/non-atlas placements. color: true = placement lives in an RGBA atlas page (COLR/CPAL color glyph, premultiplied RGBA texel); false = R8 coverage page (default, backward compatible).
Defined in:
tessell/text/rasterizer.crConstructors
Instance Method Summary
- #advance_px : Float32
- #color : Bool
- #glyph_id : UInt32
- #h : Int32
- #key : GlyphKey
- #offset_x : Int32
- #offset_y : Int32
- #page : Int32
- #u0 : Float32
- #u1 : Float32
- #v0 : Float32
- #v1 : Float32
- #w : Int32
Constructor Detail
def self.new(key : GlyphKey, glyph_id : UInt32, advance_px : Float32, offset_x : Int32, offset_y : Int32, w : Int32, h : Int32, u0 : Float32, v0 : Float32, u1 : Float32, v1 : Float32, page : Int32 = -1, color : Bool = false)
#