summaryrefslogtreecommitdiff
path: root/doc/ttfmetrics.ph
Commit message (Collapse)AuthorAgeFilesLines
* doc: fix fonts where the scale (unitsPerEm) is not 1000H. Peter Anvin2017-04-101-8/+4
| | | | | | | | | | AFM metrics always have 1000 font units to a scaled PostScript point, but TTF/OTF doesn't have to. The easiest way (and the one which best avoids unnecessary rounding) is to store the scale in the metrics, and change pswidth.ph to return the width in PostScript points instead of font units. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* doc: improve the look of the documentation with better fontsH. Peter Anvin2017-04-101-0/+67
Use the Adobe Source Sans/Code Pro fonts by default. They are Open Source fonts by Adobe. However, since these fonts are quite large, let them be an external dependency and do our best to try to find them with whatever mechanism is available on the system for finding standard fonts. Also have a list of substitution fonts if necessary. Signed-off-by: H. Peter Anvin <hpa@zytor.com>