[Bug 860097] New: fonts-config script is outdated
https://bugzilla.novell.com/show_bug.cgi?id=860097 https://bugzilla.novell.com/show_bug.cgi?id=860097#c0 Summary: fonts-config script is outdated Classification: openSUSE Product: openSUSE Factory Version: 13.2 Milestone 0 Platform: Other OS/Version: Other Status: ASSIGNED Severity: Normal Priority: P5 - None Component: Other AssignedTo: pgajdos@suse.com ReportedBy: pgajdos@suse.com QAContact: qa-bugs@suse.de CC: jsmeix@suse.com, aj@suse.com, coolo@suse.com, pmladek@suse.com, sndirsch@suse.com, tiwai@suse.com, mvyskocil@suse.com Found By: --- Blocker: --- CC all persons I think they should be there. Of course feel free to remove yourself if you don't think so (sorry for noise then) or add whomever could have interest. The Story (can be skipped) --------- For example, in xorg_config_font_dirs(), present fonts-config is searching /etc/X11/xorg.conf not only for FontPath, but also for Load directions and sets xtt_module_used or freetype_module_used accordingly. Apart from that only freetype module seems to be used nowdays: since this file do not exist for some time yet, content of these variables remains intact (zero) and thus elsif ( !$freetype_module_used && !$xtt_module_used) { # neither the xtt module nor the freetype module is used, generating TTCap # options makes no sense. next; } become a tautology. Solution -------- I would like to 1) cleanup present code little bit and 2) add some setting possibilities related to hinting like LCD_SUBPIXEL or HINTING_STYLE sysconfig variables. Second point should remain out of scope of this bug. For the first point, please find rpm or sources here: home:pgajdos/fonts-config I will highly appreciate any comments or suggestions, especially related to following section. Changes ------- fonts-config nowadays: 1. gets options from sysconfig 2. make fonts.scale and fonts.dir files in font directories 3. adjusts hinting setup 4. adjusts embedded bitmap setup 5. run fc-cache 6. makes gs fontmap 7. makes OpenOffice font setup 8. generates java font setup 9. xset fp rehash 10. reloads X font server In home:pgajdos/fonts-config is abandoned for now: (a) From point 2. do not call fix_font_scale(), which almost means, that custom fonts.scale.* will not be merged and that TTCap entries will not be created in scale files. Even if I do not know if TTCap entries are used somewhere (pointer appreciated), no one is missing them from /etc/X11/xorg.conf removal. (b) Whole point 6. Not sure if make sense to keep this code alive. This is by default sysconfig value turned off. Introduces dependency to f2tdemos. (c) Whole point 7. It seems to be outdated: you get 'Nothing to do for this version of OpenOffice.' anyway as the xcu file it is searching doesn't exist anymore If you think there is a single user using that, please speak up. home:pgajdos/fonts-config now honors --quiet and as we call it with this option in fontpackages rpm macros, there will not be any "progress bar" or any '*java might not work*' warning message during package installation anymore. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=860097
https://bugzilla.novell.com/show_bug.cgi?id=860097#c
Petr Gajdos
https://bugzilla.novell.com/show_bug.cgi?id=860097
https://bugzilla.novell.com/show_bug.cgi?id=860097#c1
--- Comment #1 from Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=860097
https://bugzilla.novell.com/show_bug.cgi?id=860097#c2
--- Comment #2 from Petr Gajdos
Peter, thanks a lot for taking care about fonts-config! This is very much appreciated!
I am fonts-config maintainer .. so I should ;).
xtt Xserver module (and functionality) is no longer available. freetype Xserver module (and functionality) is now part of the Xserver binary itself. So one could assume "$freetype_module_used = 1".
Thanks for confirmation. Exactly that I assume in home:pgajdos/fonts-config.
You're right. Server side rendering is almost dead, only still in use by some legacy apps/toolkits. Modern toolkits/applications switched to client font rendering. Java appears to use some mixture, i.e. opening the font files itself for font informations, but then uses server side font rendering? Honestly I never really understood, how font rendering in Java works/worked.
Anything from Changes influences server side rendering? Sorry, I am not versed in this area at all. Concise documentation link welcome. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=860097
https://bugzilla.novell.com/show_bug.cgi?id=860097#c3
--- Comment #3 from Johannes Meixner
https://bugzilla.novell.com/show_bug.cgi?id=860097
https://bugzilla.novell.com/show_bug.cgi?id=860097#c4
--- Comment #4 from Petr Gajdos
I try to follow what is going on here but unfortunately I don't know anything about fonts and font handling.
I have cc'ed you mainly because of (b). With the current fonts-config, try sudo /usr/sbin/fonts-config --gs-fontmap --force On my factory system, it writes /usr/share/ghostscript/9.07/lib/Fontmap.X11-auto which appears to be some map of /usr/share/fonts tree. Do you think it is needed by ghostscript? The code seems to be quite compact, so there's no problem to readd it to new fonts-config again. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=860097
https://bugzilla.novell.com/show_bug.cgi?id=860097#c5
--- Comment #5 from Johannes Meixner
https://bugzilla.novell.com/show_bug.cgi?id=860097
https://bugzilla.novell.com/show_bug.cgi?id=860097#c6
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=860097
https://bugzilla.novell.com/show_bug.cgi?id=860097#c7
--- Comment #7 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=860097
https://bugzilla.novell.com/show_bug.cgi?id=860097#c8
--- Comment #8 from Petr Gajdos
https://bugzilla.novell.com/show_bug.cgi?id=860097
https://bugzilla.novell.com/show_bug.cgi?id=860097#c9
--- Comment #9 from Petr Gajdos
(a) From point 2. do not call fix_font_scale(), which almost means, that custom fonts.scale.* will not be merged and that TTCap entries will not be created in scale files. Even if I do not know if TTCap entries are used somewhere (pointer appreciated), no one is missing them from /etc/X11/xorg.conf removal.
As can be seen from comment 8, TTCap entries works as expected (even with xfnts) and as long as we will generate fonts.{scale,dir} perhaps it make sense to me to generate also TTCap entries. So I put the code back. Several font packages also ship custom fonts.scale.* files: /truetype/fonts.scale.intlfonts-ttf: intlfonts-ttf-fonts /truetype/fonts.scale.gbsn00lp: arphic-gbsn00lp-fonts /truetype/fonts.scale.sazanami-fonts: sazanami-fonts /truetype/fonts.scale.bkai00mp: arphic-bkai00mp-fonts /truetype/fonts.scale.gkai00mp: arphic-gkai00mp-fonts /truetype/fonts.scale.baekmuk: baekmuk-ttf-fonts /truetype/fonts.scale.bsmi00lp: arphic-bsmi00lp-fonts /truetype/fonts.scale.efont-serif-ttf: efont-serif-fonts /misc/sgi/fonts.scale: sgi-bitmap-fonts /Type1/fonts.scale.culmus: culmus-fonts /Chinese/wqy-bitmapfont/fonts.scale: wqy-bitmap-fonts I re-add this code too. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=860097
https://bugzilla.novell.com/show_bug.cgi?id=860097#c10
Petr Gajdos
for sle12, so new fonts-config will be tested as soon as possible (also with legacy toolkits/applications). One thing I'm aware of is that xfig uses - if possible - ghostscript fonts. I would appreciate not to break this. ;-) I'm also adding Michal, Egbert (from X side) and Werner as xfig maintainer.
Stefan, something for sle12? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=860097
https://bugzilla.novell.com/show_bug.cgi?id=860097#c11
--- Comment #11 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=860097
https://bugzilla.novell.com/show_bug.cgi?id=860097#c12
Stefan Behlert
(In reply to comment #6)
for sle12, so new fonts-config will be tested as soon as possible (also with legacy toolkits/applications). One thing I'm aware of is that xfig uses - if possible - ghostscript fonts. I would appreciate not to break this. ;-) I'm also adding Michal, Egbert (from X side) and Werner as xfig maintainer.
Stefan, something for sle12?
I'm fine with a new fonts-config, and if we need to adapt something we should do so before beta1. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com