Bug 479521

Summary: Invalid character in ttf name table regarding copyright that crashes XML marshalling
Product: [Fedora] Fedora Reporter: Pander <pander>
Component: liberation-fontsAssignee: Caius Chance <K9>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 11CC: fonts-bugs, i18n-bugs, K9, petersen
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-07-01 02:47:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Pander 2009-01-10 16:29:05 UTC
Description of problem:
Invalid character in ttf name table regarding copyright that crashes XML marshalling

Version-Release number of selected component (if applicable):
  ttf-liberation 1.04~beta2-2 from Ubuntu 8.10

How reproducible:


Steps to Reproduce:
1. retrieve font nama table
  ttx -d . -t name /usr/share/fonts/truetype/ttf-liberation/LiberationSans-Regular.ttf

2. in python, read the XML file via
  doc = libxml2.parseFile('LiberationSans-Regular.ttx')
  
Actual results:
LiberationSans-Regular.ttx:27: parser error : xmlParseCharRef: invalid xmlChar value 1
      Liberation is a trademark of Red H&#1;t, Inc. registered in U.S. Patent an
                                            ^
LiberationSans-Regular.ttx:69: parser error : xmlParseCharRef: invalid xmlChar value 1
      Liberation is a trademark of Red H&#1;t, Inc. registered in U.S. Patent an

Expected results:
Red H&#1;t should be Red Hat, this is all right for the other TTF files in this package.

Additional info:
Please fix and push updated package downstream.

Comment 2 Pander 2009-04-29 13:56:06 UTC
Please also fix LiberationSerif-BoldItalic, see line 57:
  Ascender - Liberation Seri&#1; Bold Italic
from:
  ttx -d . -t name LiberationSerif-BoldItalic.ttf

Comment 3 Pander 2009-04-29 13:57:44 UTC
Please check all metadata in output of "ttx -d . -t name" for unwanted &# HTML codes. Python (and other) XML parsers crash on it.

Comment 4 Bug Zapper 2009-06-09 10:38:59 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 11 development cycle.
Changing version to '11'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 5 Jens Petersen 2009-06-22 05:42:26 UTC
ping

Comment 6 Pander 2009-06-23 11:03:32 UTC
Has the second bug also been fixed and available for download?

Comment 7 Caius Chance 2009-06-23 23:44:32 UTC
pong, in progress

Comment 8 Caius Chance 2009-07-01 02:47:28 UTC
Fixed on 1.05.1.20090630.