[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 <pgajdos@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium -- 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#c1 --- Comment #1 from Stefan Dirsch <sndirsch@suse.com> 2014-01-23 14:38:25 UTC --- Peter, thanks a lot for taking care about fonts-config! This is very much appreciated! Just some input you might find useful for further decisions about how to proceed with fonts-config. 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". 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. -- 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#c2 --- Comment #2 from Petr Gajdos <pgajdos@suse.com> 2014-01-24 07:45:45 UTC --- (In reply to comment #1)
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 <jsmeix@suse.com> 2014-01-24 09:16:13 CET --- Petr Gajdos, I appreciate it very much that you keep me informed via CC! I try to follow what is going on here but unfortunately I don't know anything about fonts and font handling. Therefore I would even more appreciate it if you could tell me when I need to adapt my packages that contain fonts for general usage (i.e. fonts that are also used by other application programs). As far as I know currently only the package ghostscript-fonts with its sub-packages ghostscript-fonts-std and ghostscript-fonts-other contain fonts for general usage so that ghostscript-fonts could be affected by changes in font handling. In contrast - as far as I understand it - the fonts in the cups package are only used (and are only meant to be used) by CUPS internal filters which means cups does not contain fonts for general usage so that cups cannot be affected by changes in font handling. -- 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#c4 --- Comment #4 from Petr Gajdos <pgajdos@suse.com> 2014-01-24 09:07:12 UTC --- Johannes, (In reply to comment #3)
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 <jsmeix@suse.com> 2014-01-24 11:42:06 CET --- Petr Gajdos, in comment#0 you wrote: -------------------------------------------------------------------- fonts-config nowadays: .. 6. makes gs fontmap .. In home:pgajdos/fonts-config is abandoned for now: .. (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. -------------------------------------------------------------------- On my openSUSE 13.1 system I have in /etc/sysconfig/fonts-config -------------------------------------------------------------------- GENERATE_GHOSTSCRIPT_FONTMAPS="no" -------------------------------------------------------------------- which confirms that "Whole point 6" is not used nowadays and because on my openSUSE 13.1 system I can print I assume that "Whole point 6" is no longer needed (at least it is no longer needed for printing). Therefore from my current point of view it looks peferctly right when "Whole point 6" gets completely removed. But again: I don't know anything about fonts and font handling. I didn't know anything about Ghostscript stuff in fonts-config. FYI: On my openSUSE 13.1 system I noticed right now: ----------------------------------------------------------------------- # for f in /usr/share/ghostscript/fonts/* ; \ do echo -n "$f " ; rpm -qf $f ; done \ | egrep -v 'ghostscript-fonts' /usr/share/ghostscript/fonts/font.map enscript-1.6.4-180.1.2.i586 # rpm -ql enscript | grep ghostscript /usr/share/ghostscript /usr/share/ghostscript/fonts /usr/share/ghostscript/fonts/font.map ----------------------------------------------------------------------- I have no idea why enscript installs a font.map file in Ghostscript's /usr/share/ghostscript/fonts/ directory. Is this of interest here or is it a different issue? -- 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#c6 Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |eich@suse.com, | |msrb@suse.com, | |werner@suse.com --- Comment #6 from Stefan Dirsch <sndirsch@suse.com> 2014-01-24 13:26:38 UTC --- I believe this is all well thought through, so please submit the changes also 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. -- 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#c7 --- Comment #7 from Dr. Werner Fink <werner@suse.com> 2014-01-24 13:36:13 UTC --- (In reply to comment #5) Please be aware that there is a symbolic link /usr/share/fonts/ghostscript -> ../ghostscript/fonts which makes those fonts available for X11 applications -- 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#c8 --- Comment #8 from Petr Gajdos <pgajdos@suse.com> 2014-01-30 13:30:01 UTC --- Created an attachment (id=576528) --> (http://bugzilla.novell.com/attachment.cgi?id=576528) Aegean with as=0.2 and ds=y Aegean font has only Regular style. -- 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#c9 --- Comment #9 from Petr Gajdos <pgajdos@suse.com> 2014-01-30 13:40:28 UTC --- (In reply to comment #0)
(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 <pgajdos@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO CC| |lchiquitto@suse.com InfoProvider| |behlert@suse.com --- Comment #10 from Petr Gajdos <pgajdos@suse.com> 2014-01-30 13:49:26 UTC --- (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? -- 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 <bwiedemann@suse.com> 2014-01-30 15:00:45 CET --- This is an autogenerated message for OBS integration: This bug (860097) was mentioned in https://build.opensuse.org/request/show/220365 Factory / fonts-config -- 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#c12 Stefan Behlert <behlert@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|behlert@suse.com | --- Comment #12 from Stefan Behlert <behlert@suse.com> 2014-01-30 14:28:57 UTC --- (In reply to comment #10)
(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