Re: Severe : Exception. Cannot Load Font. No font URI's available.
Perhaps I am posting this question on the wrong list or perhaps my question has been asked and answered before. But to state my question again, why is it not sufficient to supply FOP with a font metrics file and the font triplets in the configuration file? Why does it seem that FOP needs to be able to open and load the font file itself? Is that the intended behavior or is it a problem that could potentially be addressed? Is there something I could be doing that would make FOP work with fonts other than the Base14 and without embedding the font? OK, that's more than one question. Thanks, Loran Kary On Jul 6, 2007, at 5:22 PM, Loran Kary wrote: I need to be able to use some fonts other than the Base 14 in the PDF's I generate. I have created some font metrics files with TTFReader and in the configuration file I specify the font metrics files and the font triplets. If I specify an embed-url with the path of the font ttf file, this seems to work. But I don't want to have to embed the fonts in the PDF file because they are already installed on my Mac OS X system. I just want to reference those fonts in the PDF file. Since I have supplied FOP with the font metrics and the font triplets, I would expect that FOP has everything it needs to use those fonts in the PDF. But without embedding the font, I get the severe exception, cannot load font, and no PDF output. This is with FOP 0.93 and I understand there may be some known problems in this area. Can anyone tell me more? Thanks, Loran Kary
Re: Severe : Exception. Cannot Load Font. No font URI's available.
Thanks Andreas, I got a brief and vague response on the users group that left me wanting more information. Whether or not I could contribute to a potential solution, and that is a possibility, would depend on whether the work involved would be major or minor. So I am trying to get some sense. I would imagine that support for additional fonts beyond the Base14 would be pretty fundamental to PDF formatting and therefore if it isn't fully implemented there must be a pretty good reason. But if there is not much that needs to be done and it's just waiting for someone with some motivation to do it, that would be interesting to know. Thanks, Loran Kary On Jul 12, 2007, at 11:24 AM, Andreas L Delmelle wrote: On Jul 12, 2007, at 20:12, Loran Kary wrote: Hi Perhaps I am posting this question on the wrong list or perhaps my question has been asked and answered before. The latter, in a way... You asked the same question on fop-users a couple of days ago, where the response was that FOP currently does not yet support this feature. On the other hand, if you re-posted on fop-dev because you are interested in contributing to a potential solution, then you are in the right place. Personally, I have not enough insight in the related parts of the FOP-code and the PDF-spec to help you with that, but I'm definitely hoping someone could chime in soon to offer a few ideas on how this can be solved. Just don't forget that it's holiday season in the northern hemisphere. It may take a few days for the right person to pick up... Cheers Andreas
Severe : Exception. Cannot Load Font. No font URI's available.
I need to be able to use some fonts other than the Base 14 in the PDF's I generate. I have created some font metrics files with TTFReader and in the configuration file I specify the font metrics files and the font triplets. If I specify an embed-url with the path of the font ttf file, this seems to work. But I don't want to have to embed the fonts in the PDF file because they are already installed on my Mac OS X system. I just want to reference those fonts in the PDF file. Since I have supplied FOP with the font metrics and the font triplets, I would expect that FOP has everything it needs to use those fonts in the PDF. But without embedding the font, I get the severe exception, cannot load font, and no PDF output. This is with FOP 0.93 and I understand there may be some known problems in this area. Can anyone tell me more? Thanks, Loran Kary
Character-by-character font selection strategy
I see there was a recent thread on fop-user called Mixing Languages and Unicode. I have the same problem. The PDFs that I create with FOP could potentially contain any mix of languages and no one font will support them all. I do not believe it is practical to try to implement a character-by- character font selection strategy in XSLT, even if I could figure out how to do it. Nor do I believe it is practical to try to create some custom font that supports all languages and embed that in all my PDFs. So my question is, what would it take to implement support for the font-selection-strategy property? Has anyone looked at this or taken a crack at it? Is there any chance that it might be implemented in the foreseeable future? Thanks, Loran Kary