Class PDF::Writer::FontMetrics
In: lib/pdf/writer/fontmetrics.rb
Parent: Object

Methods

new   open   save_as_rfm  

Constants

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

Attributes

differences  [RW] 
encoding  [RW] 
font_num  [RW] 
path  [RW] 

Public Class methods

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.

Public Instance methods

Save the loaded font metrics file as a binary marshaled value.

[Validate]