Load font formats
Read BDF bitmap fonts or rasterize TrueType outlines.
Font loading · measuring · rasterizing
Load BDF bitmap fonts and TrueType outlines, measure UTF-8 text, and draw into Tessel images.
gem install glyphic
Keep text layout and drawing close to the Ruby graphics code that uses it.
Read BDF bitmap fonts or rasterize TrueType outlines.
Wrap UTF-8 strings and lay out text boxes.
Configure fallbacks and use the built-in example font.
A small first step
Install the gem, then follow the project guide for platform requirements and the full API.
require "glyphic"
require "tessel"
font = Glyphic.default
image = Tessel::Image.new(320, 112, fill: "#101827")
font.draw(image, 12, 12, "Glyphic", color: "#fbbf24")
image.write("type.png")