struct Engine::Font
 
  - Engine::Font
- Struct
- Value
- Object
Included Modules
Defined in:
engine/engine.crConstant Summary
- 
        BOLD = 1
- 
        ITALIC = 2
- 
        UNDERLINED = 4
Constructors
- .new(res : FontResource, *, char_size : Int32 = 24, color : Engine::Color = Engine::Color::WHITE, styles : Int32 = 0, kx : Float32 | Int32 = 1, ky : Float32 | Int32 = 1)
- .new(res : FontResource, *, dont_create : Bool)
Instance Method Summary
- #char_size=(value : Int32)
- #color=(value : Engine::Color)
- #kx=(value : Float32 | Int32)
- #ky=(value : Float32 | Int32)
- #styles=(value : Int32)
- #to_unsafe
Instance methods inherited from module Engine::FontDrawText
  
  
    
      draw_text(text, pos : Vector2)
    draw_text, 
    
  
    
      draw_text_boxed(text, box : AABB, halign : HAlign = HAlign::Left, valign : VAlign = VAlign::Center)
    draw_text_boxed, 
    
  
    
      measure(text)
    measure
    
  
    
    
    
  
    
    
    
    
  
    
    
    
    
  
    
    
    
    
  
Constructor Detail
        
        def self.new(res : FontResource, *, char_size : Int32 = 24, color : Engine::Color = Engine::Color::WHITE, styles : Int32 = 0, kx : Float32 | Int32 = 1, ky : Float32 | Int32 = 1)
        #