class GD2::Font
Description¶ ↑
Font objects represent a particular font in a particular size.
Built-in Fonts¶ ↑
The following font classes may be used without further instantiation:
Font::Tiny Font::Small Font::MediumBold Font::Large Font::Giant
TrueType Fonts¶ ↑
To use a TrueType font, first instantiate the font at a particular size:
font = Font::TrueType[fontname, ptsize]
Here fontname
may be a path to a TrueType font, or a fontconfig pattern if
fontconfig support is enabled (see Font::TrueType.fontconfig).
See GD2::Font::TrueType.new for further options.