Re: 0.95 Acrobat Performance Problems
I've just added support for forcing a single-byte encoding when using the font element without an XML font metric file in FOP Trunk: http://svn.apache.org/viewvc?rev=731248view=rev So using current FOP Trunk you could do: font embed-url=file:///opt/sigma_tomcat/webapps/sigma/WEB-INF/fonts/ocra.ttf encoding-mode=single-byte font-triplet name=ocra style=normal weight=normal/ /font This way and for larger fonts than OCRA (i.e. fonts with characters outside the WinAnsi encoding), you'll have access to all glyphs in the font which you don't have when working with an XML font metric file. On 19.12.2008 21:40:00 Jeremias Maerki wrote: Just as I thought. You're doing this: font kerning=yes embed-url=file:///opt/sigma_tomcat/webapps/sigma/WEB-INF/fonts/ocra.ttf font-triplet name=ocra style=normal weight=normal/ /font This bypasses the XML font metric files. Currently, it's not possible to tell FOP this way to use WinAnsi encoding. You have to create an XML font metrics file for each font as described in [1] (using -enc ansi, just as in FOP 0.20.5 although you'll have to recreate the files). Then you'll have to do this: font metrics-url=file:///opt/sigma_tomcat/webapps/sigma/WEB-INF/fonts/ocra.ttf.xml kerning=yes embed-url=file:///opt/sigma_tomcat/webapps/sigma/WEB-INF/fonts/ocra.ttf font-triplet name=ocra style=normal weight=normal/ /font HTH [2] http://xmlgraphics.apache.org/fop/trunk/fonts.html#truetype-metrics On 19.12.2008 20:20:01 egibler wrote: The font configuration should be attached (I used the 'Upload File...' button, but don't know where the file goes). Thanks!!! Ed That's just a font metrics file. It could still be that your configuration file is set up so you get a CID font. Can we see the font configuration, too? http://www.nabble.com/file/p21096930/configuration.xml configuration.xml -- View this message in context: http://www.nabble.com/0.95---Acrobat-Performance-Problems-tp20774481p21096930.html Sent from the FOP - Users mailing list archive at Nabble.com. Jeremias Maerki Jeremias Maerki - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
'metrics-url' not respect 'base'?
If I'm not misunderstand, in the file 'userconfig.xml', embed-url should respect 'font-base', and 'metrics-url' should respect 'base', isn't it? But in my test, 'metrics-url' not respect 'base', I have to use absolutely url instead of relative url. Thanks for some help. Dongsheng Song - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: 'metrics-url' not respect 'base'?
Dongsheng Song wrote: If I'm not misunderstand, in the file 'userconfig.xml', embed-url should respect 'font-base', and 'metrics-url' should respect 'base', isn't it? But in my test, 'metrics-url' not respect 'base', I have to use absolutely url instead of relative url. In most cases you shouldn't need to use metrics-url anymore as FOP can generate metrics on the fly since v0.94, i.e. it is sufficient to specify just embed-url. Chris - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org