Bug 77492
Summary: | xfs excludes directories that contain bad true type font file information | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Michael Lee Yohe <michael> |
Component: | ttmkfdir | Assignee: | Yu Shao <yshao> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | David Lawrence <dkl> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 8.0 | CC: | eng-asia-list, gczarcinski, mharris, phostetl, rdieter |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i686 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2003-10-28 18:56:36 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: | |||
Bug Depends On: | 77272 | ||
Bug Blocks: |
Description
Michael Lee Yohe
2002-11-07 22:16:10 UTC
Yeah, thats nice that the ttmkfdir util you found doesn't have the problem that you're describing in our ttmkfdir. What you don't realize however, is that using that utility in all of the fonts that come with Red hat Linux breaks Korean, Chinese, Japanese, Thai fonts, as well as various others such as Russian (Cyrillic). That is why we have the utility that we do have. It is the best ttmkfdir there is. They all suck, ours just sucks slightly less. So if you're suggesting we use the original ttmkfdir, or Debians, or Mandrakes, or $RANDOM_ttmkfdir_version, you're horribly wrong. I've personally investigated them all, and every one of them is broken, ours included. They just aren't broken in the same places. At any rate, I don't maintain ttmkfdir, so.... Reassigning.. Please download the bug fix code here, also refer to bug id #77272. http://people.redhat.com/yshao/ttmkfdir2.20021109.tar.bz2 What the new fix does is: * any warning goes to stdout. * skip any "corrupted" font file and also give warning * default generate fonts.scale in the current working directory mharris: I wasn't implying that Red Hat uses the original utility. I just reverted because everytime I ran Red Hat's it would abort :) I never figured out the conclusion until I started sleuthing strace's and certain font sets. xfs's exclusion is a result of corrupted ttf font stuff produced by ttmkfdir - sort of. You can also have a file that generates without a SIGABRT and xfs STILL ignores the directory (I'm still sleuthing...) Detecting a corrupt TTF file is going to be tricky. This bug is related to Bug 77272, but not entirely. yshao: I downloaded the ttmkfdir2 tarball, compiled - and ran... $ ls -laF ttmkfdir -rwxr-xr-x 1 myohe myohe 1053107 Nov 9 13:47 ttmkfdir* $ ./ttmkfdir Aborted :) What are there in your current working directory? are you be able to pick up the corrupted font file for me? Here is my working example: [root@localhost TrueType]# pwd /usr/share/fonts/zh_CN/TrueType [root@localhost TrueType]# ls -l total 19612 -rw-r--r-- 1 root root 0 11TB 7 15:05 aaa.ttf -rw-r--r-- 1 root root 14233 10TB 3 07:10 fonts.cache-1 -rw-r--r-- 1 root root 773 11TB 9 19:59 fonts.dir -rw-r--r-- 1 root root 773 11TB 9 16:44 fonts.scale -rw-r--r-- 1 root root 5192076 9TB 2 21:23 gbsn00lp.ttf -rw-r--r-- 1 root root 4633128 9TB 2 21:23 gkai00mp.ttf -rw-r--r-- 1 root root 10184696 8TB 16 20:14 zysong.ttf [root@localhost TrueType]# /root/ttmkfdir2/ttmkfdir Warning: Can't initialize Face : aaa.ttf(85) Hi Michael, for the font sewer.ttf you attached in #77491, ttmkfdir will skip it: [root@localhost ttmkfdir2]# ./ttmkfdir Warning: Can't initialize Face : sewer.ttf(2) Warning: Can't initialize Face : aaa.ttf(85) [root@localhost ttmkfdir2]# ftview ppem sewer.ttf could not find/open any font file error = 0x0002 [root@localhost ttmkfdir2]# Yu, I think you might want to have it print a message stating that the font is corrupt perhaps. We might otherwise get a bunch of bug reports stating: "I installed fonts and ttmkfdir/xfs says can't Initialize Face". IOW, perhaps make the message more "Your fonts suck" blatant. ;o) Just an idea though.. ;o) Presumed to be fixed in RHL 9, rawhide and Fedora Core. Closing CURRENTRELEASE. Please reopen if issue persists in Fedora Core 1. |