3.1.3.1. AfmParser

Reference: Adobe Font Metrics File Format Specification, Version 4.1, 7 October 1998

All measurements in AFM files are given in terms of units equal to 1/1000 of the scale factor (point size) of the font being used. To compute actual sizes in a document (in points; with 72 points = 1 inch), these amounts should be multiplied by (scale factor of font) / 1000.

class PyDvi.Font.AfmParser.AfmParser(filename)[source]

Bases: object

_get_values(types, line)[source]
_logger = <logging.Logger object at 0x3676f90>
_parse(stream)[source]
_parse_end(line)[source]
_parse_key_values(keys, line)[source]
_parse_key_values_list(keys, line)[source]
_parse_start(line)[source]
static parse(filename)[source]
exception PyDvi.Font.AfmParser.BadAfmFile[source]

Bases: exceptions.NameError

PyDvi.Font.AfmParser.boolean(x)[source]
PyDvi.Font.AfmParser.hex(x)[source]

Previous topic

3.1.3. Font

Next topic

3.1.3.2. Encoding

This Page