[xep-support] Re: Where to put true-type fonts?

jens quade jq at qdevelop.de
Fri Nov 8 07:17:26 PST 2013


On 08.11.2013, at 16:05, Jeffrey Walton <noloader at gmail.com> wrote:

> On Fri, Nov 8, 2013 at 6:50 AM, jens quade <jq at qdevelop.de> wrote:
>> Hi Jeffrey,
>> 
>>> The parser for the xep.xml file is broken. Leave off the trailing
>>> slash ("/") and notice what happens (the training path is dropped,
>>> which results in BadFontDataException):
>>> 
>>>   <font-group xml:base="/usr/share/fonts/truetype/msttcorefonts"
>>> [error] Cannot read font metric from file:/usr/share/fonts/truetype/Arial.ttf
>> 
>> I think this implementation is correct (and probably some xml library stuff) -- see
>> 
>> RFC 3986  Uniform Resource Identifiers (URI): Generic Syntax
>> 5.2.3.  Merge Paths

> Well, it seems to be  a problem in real life, despite what the RFC says.
> 
> http://www.google.com/search?q=BadFontDataException+site:services.renderx.com

Yes, people make mistakes in real life. But not conforming to the expected implementation of xml:base is no solution.

There are XML parsers that issue a warning if a xml:base attribute does not end in an '/', which might be a smart thing to do in this case.



jens

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2276 bytes
Desc: not available
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20131108/52eaa299/attachment.bin>
-------------- next part --------------
!DSPAM:87,527d008e9853894317690!


More information about the Xep-support mailing list