Mon 18 Apr 2005 10:41:04 PM UTC, original submission:
A subfont within a CID CFF font can have its own font matrix. I believe FreeType 2.1.9 ignores the subfont matrix.
This isn't clear from the CFF spec, but as best as I can tell (based on Acrobat's behavior with CID CFF fonts embedded in PDF files), the correct behavior looks like this:
1. If the main font dict specifies a font matrix and the subfont doesn't, use the main font's matrix.
2. If the main font dict does not specify a font matrix and the subfont does, use the subfont's matrix.
3. If both dictionaries specify matrices, use the product of the two matrices.
4. If neither dictionary has a font matrix, use the default value of [0.001 0 0 0.001 0 0].
Note that you can't simply default the main font matrix to [0.001 0 0 0.001 0 0] and the subfont matrix to [1 0 0 1 0 0] and then use the product of the two matrices. If the subfont has a matrix and the main dict does not, then the main font matrix effectively defaults to [1 0 0 1 0 0].
I'm attaching a sample font (extracted from a PDF file). I can provide the PDF file if desired.
|