Another of my travel projects checked in: I wanted to know how easy it
is to load fonts without the XML metrics file. As you can see from the
amount of code, it was rather easy. Makes me wonder why we didn't do it
Please note that the existing functionality is still fully there. The
only change is that you can simply now omit the metrics-url attribute in
the font configuration and the font will still load. What you lose in
this case is the ability to manually tweak the XML metrics file or to
specify WinAnsi encoding for TrueType fonts. Furthermore, you currently
don't have control over TrueType Collections. The WinAnsi feature should
not be necessary anymore now that we have ToUnicode CMaps. The
Collection feature is easily added again through an additional attribute
in the font configuration.
I'd be grateful if anyone could test what happens if you load a Type 1
fonts on a Unix where the PFM file has an uppercase extension, e.g.
"FUTURA.PFM". I have to construct the URI to the PFM manually from the
PFB and use a lowercase extension (".pfm"). Maybe we have to improve
that to check with upper- and lowercase to account for case sensitive
On 13.11.2006 17:28:14 jeremias wrote:
> Author: jeremias
> Date: Mon Nov 13 08:28:13 2006
> New Revision: 474387
> URL: http://svn.apache.org/viewvc?view=rev&rev=474387
> Added initial support for loading fonts without a pre-created XML font
> metrics file.