| Class | PDF::Writer::FontMetrics |
| In: |
lib/pdf/writer/fontmetrics.rb
|
| Parent: | Object |
| METRICS_PATH | = | [ File.join(File.dirname(File.expand_path(__FILE__)), 'fonts') ] |
| KEYS | = | %w{FontName FullName FamilyName Weight ItalicAngle IsFixedPitch CharacterSet UnderlinePosition UnderlineThickness Version EncodingScheme CapHeight XHeight Ascender Descender StdHW StdVW StartCharMetrics FontBBox C KPX} |
| NUMBER | = | /^[+\-0-9.]+$/o |
| differences | [RW] | |
| encoding | [RW] | |
| font_num | [RW] | |
| path | [RW] |
Open the font file and return a PDF::Writer::FontMetrics object containing it. The font_name may specify just a font file or a full path. If a path is specified, that is the only place where the font file will be looked for.