FS#57460 - [xscreensaver] akruti[12].ttf interferes with xscreensaver
Attached to Project:
Arch Linux
Opened by Akash Rawal (akash_rawal) - Saturday, 10 February 2018, 12:18 GMT
Last edited by Doug Newgard (Scimmia) - Monday, 07 May 2018, 15:28 GMT
Opened by Akash Rawal (akash_rawal) - Saturday, 10 February 2018, 12:18 GMT
Last edited by Doug Newgard (Scimmia) - Monday, 07 May 2018, 15:28 GMT
|
Details
akruti1.ttf, akruti1b.ttf, akruti2.ttf, akruti2b.ttf map
english characters to Indian ones (why?) and breaks text
rendering in xscreensaver.
Steps to reproduce: - Install both ttf-indic-otf and xscreensaver - Lock screen with xscreensaver / start splash screen. |
This task depends upon
Closed by Doug Newgard (Scimmia)
Monday, 07 May 2018, 15:28 GMT
Reason for closing: Fixed
Additional comments about closing: xscreensaver 5.39-1
Monday, 07 May 2018, 15:28 GMT
Reason for closing: Fixed
Additional comments about closing: xscreensaver 5.39-1
1. -*-helvetica-bold-r-*-*-*-180-*-*-*-*-iso8859-1
2. -*-bitstream charter-bold-r-*-*-*-160-*-*-*-*-iso8859-1
3. -*-*-bold-r-*-*-*-180-*-*-p-*-iso8859-1
xlsfonts has following reactions to the above:
$ xlsfonts -fn '-*-helvetica-bold-r-*-*-*-180-*-*-*-*-iso8859-1'
xlsfonts: pattern "-*-helvetica-bold-r-*-*-*-180-*-*-*-*-iso8859-1" unmatched
$ xlsfonts -fn '-*-bitstream charter-bold-r-*-*-*-160-*-*-*-*-iso8859-1'
xlsfonts: pattern "-*-bitstream charter-bold-r-*-*-*-160-*-*-*-*-iso8859-1" unmatched
$ xlsfonts -fn '-*-*-bold-r-*-*-*-180-*-*-p-*-iso8859-1'
-misc-akrutitml1-bold-r-normal--25-180-100-100-p-0-iso8859-1
-misc-akrutitml2-bold-r-normal--25-180-100-100-p-0-iso8859-1
-misc-dejavu sans condensed-bold-r-semicondensed--25-180-100-100-p-0-iso8859-1
-misc-dejavu sans-bold-r-normal--25-180-100-100-p-0-iso8859-1
-misc-dejavu serif condensed-bold-r-semicondensed--25-180-100-100-p-0-iso8859-1
-misc-dejavu serif-bold-r-normal--25-180-100-100-p-0-iso8859-1
$
My guess is whatever comes first is being used. I also assume Engilsh alphabets should look like english ones, that is the point of character encoding AFAIK, but I may be wrong!
PFA akruti1b.ttf opened in fontforge.
1. Fix xscreensaver by making it look for more fonts (bistream vera, dejavu, sans, etc.). Perhaps there is a configuration switch for this or perhaps the code needs to be patched.
2. (Less satisfying:) Install one of fonts xscreensaver does look for.
Adding more patterns to xscreensaver would only make the problem less likely. Plus we'd need to repeat this for each software that uses xlib directly to draw text. A general solution to reject such fonts would be much better, if at all possible.
The PKGBUILD for ttf-indic-otf is a simple case of installing upstream's tarball contents to the correct directories and if you wish to have changes made on it (such as splitting latin range-reusing fonts to a separate tarball) you should bring that up upstream. But your problem, really, is with xscreensaver.