Skip to content

Type1Font ​

Adobe Type 1 font handler.

Overview ​

Fontisan::Type1Font handles Adobe Type 1 fonts (PFB/PFA).

Properties ​

PropertyTypeDescription
font_nameStringFont name
family_nameStringFamily name
charstringsHashGlyph outlines
private_dictHashPrivate dictionary

Methods ​

glyph_count ​

Get total glyph count.

ruby
count = font.glyph_count

charstring(glyph_name) ​

Get CharString for a glyph.

ruby
cs = font.charstring('A')

See Also ​

Fontisan is a [Ribose](https://open.ribose.com/) project