Bug 99534 - /etc/init.d/xfs (xorg-x11-6.8.2-r2) doesn't find CP1251 encoding in TTF fonts
Bug#: 99534 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: major Priority: P2
Resolution: FIXED Assigned To: x11@gentoo.org Reported By: isee@inbox.ru
Component: Applications
URL: 
Summary: /etc/init.d/xfs (xorg-x11-6.8.2-r2) doesn't find CP1251 encoding in TTF fonts
Keywords:  Inclusion
Status Whiteboard: 
Opened: 2005-07-19 08:02 0000
Description:   Opened: 2005-07-19 08:02 0000
when /etc/init.d/xfs regenerate fonts.dir and fonts.scale files,
it always execute mkfontscale after successful execution of ttmkfdir,
thus making ttmkfdir useless. Resulting fonts.scale & fonts.dir does't
contains some font encodings (for example CP1251).

This is caused by typo in /etc/init.d/xfs at line 249:
   if [ ${ttmkfdir_return} -ne 1 ]
must be:
   if [ ${ttmkfdir_return} -ne 0 ]


Reproducible: Always
Steps to Reproduce:
1.
2.
3.

------- Comment #1 From Donnie Berkholz 2005-07-19 09:57:49 0000 -------
Ah, good catch! I've been looking for a while for an actual example of where
mkfontscale is less capable than ttmkfdir.

------- Comment #2 From Donnie Berkholz 2005-07-20 14:28:24 0000 -------
This should be fixed in 6.8.99.15 -- I'll get a fix into 6.8.2-r2 later on.

------- Comment #3 From Donnie Berkholz 2005-07-22 14:01:39 0000 -------
(In reply to comment #2)
> This should be fixed in 6.8.99.15 -- I'll get a fix into 6.8.2-r2 later on.

Done. Thanks for the detailed report.