Red Hat Bugzilla – Bug 604793
[PATCH] Correct Font Information for MS Symbol encoding
Last modified: 2010-07-07 13:52:07 EDT
Created attachment 424544 [details]
Patch to correct the display of name records (same as upstream)
Description of problem:
For fonts that have the name table encoding as MS Symbol (platform 3, encoding 0), Fontmatrix currently displays the string "Here, imagine some nice symbols!" for all name records, because the specifications don't seem to say how the name recs are encoded.
I created a patch to fix this six months ago and submitted it upstream, as bug 14897 <http://gna.org/bugs/?14897>, but upstream development seems rather sluggish, so I'd like to recommend this patch for Fedora's package in advance of acceptance upstream.
The patch changes Fontmatrix to interpret the name record encoding as UTF-16BE. I produced the patch against Subversion revision 1088, but I have just tested it against r1073 included in Fedora and it works.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Import a dingbat font into Fontmatrix.
2. Go to the Font Information tab.
For fonts that have "MS Symbol" listed alongside "Charmaps List", all other name records will say "Here, imagine some nice symbols!" instead of showing real information.
Dingbat fonts have proper information in the name records, but Fontmatrix doesn't know how to display it.
Can you give me images of what is existing and what will be new information in fontmatrix window?
I applied patch and run fontmatrix but I don't know where to see changes. Also, I am unable to see "Here, imagine some nice symbols!"
Dingbat font I checked is /usr/share/fonts/default/Type1/d050000l.pfb
Also, I am going to scratch build new fontmatrix with your patch on koji. Can you check this build is what you want and working?
Created attachment 424681 [details]
Free symbol font
This font is marked internally as freeware, and displays the problem shown in the screenshots (next two attachments).
Created attachment 424682 [details]
Fontmatrix showing symbol font before patch
Note that the Charmaps List says "MS Symbol". There can be multiple charmaps, but the font must contain this one for the bug to show.
Created attachment 424684 [details]
Fontmatrix showing symbol font after patch
Fontmatrix can now correctly show the contents of the name records.
Note that Fontmatrix loads name records into its database when fonts are imported, so to see the improvement, you need to wipe the database (rm -r ~/.Fontmatrix) before re-importing the font.
I have 1039 fonts that are affected by this bug, and this patch corrects the display for all of them.
(In reply to comment #2)
> Also, I am going to scratch build new fontmatrix with your patch on koji. Can
> you check this build is what you want and working?
I downloaded and installed the x86_64 RPM linked from there, and it solves the problem, thank you.
Do you know any font in Fedora that is having this problem?
(In reply to comment #7)
> Do you know any font in Fedora that is having this problem?
I don't offhand, but I haven't installed every Fedora font package. The example font you picked in comment 1 didn't show the problem because it is a Type 1 font. Only TrueType fonts have name tables.
I could certainly package the font I attached to this bug ;-)
I tried to reproduce this problem with existing Fedora packaged fonts. But unable to reproduce it. So, I think if I need to commit this patch, we should have this bug reproducible.
Ok. I had a look at font file now. Saw its not Unicode font. I think its better to ask upstream to make it unicode.
I use many commands but no satisfactory output has come from this font like fontaine, gnome-font-viewer, fontmatrix, otfinfo.
I will close this as NOTABUG as this needs actually fix in font file not in fontmatrix.
There are many True type fonts in Fedora whose information is correctly shown in fontmatrix.
Ok. After having discussion with reporter on IRC, I see we should have this patch committed.
fontmatrix-0.6.99-6.r1073.fc13 has been submitted as an update for Fedora 13.
fontmatrix-0.6.99-6.r1073.fc13 has been pushed to the Fedora 13 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
su -c 'yum --enablerepo=updates-testing update fontmatrix'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/fontmatrix-0.6.99-6.r1073.fc13
fontmatrix-0.6.99-6.r1073.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report.