class Gruff::Font
Handle font setting to draw texts
Constants
- BOLD_PATH
- REGULAR_PATH
Attributes
Get/set font setting whether render bold text.
Get/set font color.
Get/set font path.
Get/set font size.
Public Class Methods
Source
Public Instance Methods
Source
# File lib/gruff/font.rb, line 45 def file_path return @path if @path @bold ? BOLD_PATH : REGULAR_PATH end
@private @rbs return: String
Source
# File lib/gruff/font.rb, line 39 def weight @bold ? Magick::BoldWeight : Magick::NormalWeight end
Get font weight. @return [Magick::WeightType] font weight TODO: type annotation of return value