Bug 907330

Summary: Fix the PostScript name in font files
Product: [Fedora] Fedora Reporter: Parag Nemade <pnemade>
Component: sil-padauk-fontsAssignee: Minto Joseph <mvaliyav>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: caolanm, fonts-bugs, mvaliyav, paul, pnemade, rpiddapa
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: sil-padauk-fonts-2.8-4.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-13 09:45:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Parag Nemade 2013-02-04 06:38:29 UTC
Description of problem:
Fix the PostScript name in font files. The PostScript name is in ASCII encoding. Convert it to Unicode.

Version-Release number of selected component (if applicable):
sil-padauk-fonts-2.8-2.fc18

How reproducible:
always

Steps to Reproduce:
1.open font in fontforge
2. Font Info-> Font name is not valid
3.
  
Actual results:
Font PostScript name is not valid.

Expected results:
Font PostScript name should be valid.

Additional info:

Comment 1 Parag Nemade 2013-02-04 06:39:11 UTC
I will patch the ttf files to at least fc-scan extract the correct font name.

Comment 2 Paul Flo Williams 2013-02-04 08:01:05 UTC
PostScript names are defined to be in ASCII. If you want Unicode characters, you need to fix the names in the "name" table.

It would help if the bug report said what you thought was actually wrong, rather than just what you believe you need to change.

Comment 3 Parag Nemade 2013-02-04 09:10:15 UTC
oops! sorry I mean to have the PostScript name in ASCII only. sorry I wrote it in opposite. Don't know what format existing name is and why can't be it rendered as it is.

Here is simple way to fix those font files to make rpm happy
------------------------------------------------------------
%build
# Following is needed to fix the postscript font name
ttx *.ttf
sed -i 's|&#225;&#128;&#149;&#225;&#128;&#173;&#225;&#128;&#144;&#225;&#128;&#177;&#225;&#128;&#172;&#225;&#128;&#128;&#225;&#128;&#186;|Padauk|g' Padauk*.ttx

sed -i 's|&#225;&#128;&#133;&#225;&#128;&#172;&#225;&#128;&#156;&#225;&#128;&#175;&#225;&#128;&#182;&#225;&#128;&#184;&#225;&#128;&#153;&#225;&#128;&#178;|Bold|g' Padauk*.ttx

sed -i 's|&#225;&#128;&#133;&#225;&#128;&#172;&#225;&#128;&#161;&#225;&#128;&#175;&#225;&#128;&#149;&#225;&#128;&#186;|Book|g' Padauk-book*.ttx
rm *.ttf
ttx Padauk*.ttx

rm *.ttx
-------------------------------------------------------------------------

Comment 4 Parag Nemade 2013-03-13 09:45:02 UTC
Fixed in sil-padauk-fonts-2.8-4.fc19