struct Tessell::Text::GlyphSlot

Defined in:

tessell/text/glyph_atlas.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(page : Int32, x : Int32, y : Int32, w : Int32, h : Int32, bearing_x : Int32, bearing_y : Int32, advance : Float32, color : Bool = false) #

[View source]

Instance Method Detail

def advance : Float32 #

[View source]
def bearing_x : Int32 #

[View source]
def bearing_y : Int32 #

[View source]
def color : Bool #

true: slot lives in an RGBA page (color glyph, premultiplied 4B/px); false: R8 page.


[View source]
def h : Int32 #

[View source]
def page : Int32 #

[View source]
def w : Int32 #

[View source]
def x : Int32 #

[View source]
def y : Int32 #

[View source]