class Tessell::Text::FontSet

Defined in:

tessell/text/font_fallback.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def add(font : FontRef) : Int32 #

[View source]
def font(id : Int32) : FontRef | Nil #

[View source]
def font_count : Int32 #

[View source]
def resolve(codepoint : UInt32) : Int32 #

Returns font_id (index in add order) of first covering font, or -1 if none.


[View source]