|
Bugzilla – Full Text Bug Listing |
| Summary: | FifthLeg font not supported by server side rendering | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE 12.3 | Reporter: | Christopher Yeleighton <giecrilj> |
| Component: | Other | Assignee: | Petr Gajdos <pgajdos> |
| Status: | RESOLVED FIXED | QA Contact: | E-mail List <qa-bugs> |
| Severity: | Minor | ||
| Priority: | P3 - Medium | CC: | pgajdos, sndirsch, thomas.schraitle |
| Version: | Final | ||
| Target Milestone: | --- | ||
| Hardware: | i686 | ||
| OS: | openSUSE 12.3 | ||
| Whiteboard: | |||
| Found By: | Community User | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
| Bug Depends on: | |||
| Bug Blocks: | 843949 | ||
|
Description
Christopher Yeleighton
2013-09-14 21:55:32 UTC
Did you run fonts-config afterwards as root and of course 'xset fp rehash' as logged in user? Unfortunately the former is required since someone had the glorious idea to get rid of SuSEconfig(.fonts). :-( Yes, I did. I suppose that OTF fonts are not supported by the X server. They are. And I see such XLFD lines in xlsfonts output. I ran mkfontscale and mkfontdir as root and the problem disappeared. But shouldn’t that thing be run from %post? Also, while xfontsel does allow to select the font now, it is unable to show it; the font preview area does not refresh. When I open a pop-up menu to select anything, the trace of the part of the menu covering the preview area remains there. { xfd -fn '-*-fifthleg-medium-r-*-*-17-*-*-*-*-*-iso10646-1'; }
Warning: Cannot convert string "-*-fifthleg-medium-r-*-*-17-*-*-*-*-*-iso10646-1" to type FontStruct
xfd: no font to display
{ xlsfonts -fn '-*-fifthleg-medium-r-*-*-17-*-*-*-*-*-iso10646-1'; }
-misc-fifthleg-medium-r-normal--17-123-100-100-p-0-iso10646-1
{ xlsfonts -o -fn '-*-fifthleg-medium-r-*-*-17-*-*-*-*-*-iso10646-1'; }
xlsfonts: pattern "-*-fifthleg-medium-r-*-*-17-*-*-*-*-*-iso10646-1" unmatched
Hmm. Seems the font cannot be displayed via server side rendering. Using fontconfig/xft it works though. xfd -fa FifthLeg Not sure, whether server side rendering doesn't support OTFs at all or whether it's specific to this font. Could be. Jürgen, Thomas, fifth-leg-font is yours :-]. (In reply to comment #1) > Did you run fonts-config afterwards as root and of course 'xset fp rehash' as > logged in user? Unfortunately the former is required since someone had the > glorious idea to get rid of SuSEconfig(.fonts). :-( Every font should have %reconfigure_fonts_scriptlets macro, which should run fonts-config. fifth-leg-font do so, so additional run of fonts-config should not be needed. Or am I missing something? (In reply to comment #0) > The font is apparently available as a client font only. The font should be > reclassified into Publishing (hence Minor). Why? FifthLeg is font, so it is in M17N:fonts. I am no problem to display it on my workstation. (In reply to comment #9) > Jürgen, Thomas, fifth-leg-font is yours :-]. Are there any special criteria for a font, to be suitable for server side rendering? I am not aware of any. Hmm: $ sudo zypper in google-exo-fonts $ grep -c Exo fonts.dir 192 $ sudo rpm -e google-exo-fonts $ grep -c Exo fonts.dir 0 But $ sudo zypper in fifth-leg-font $ grep -c Fifth fonts.dir 0 $ sudo mkfontscale $ sudo mkfontdir $ grep -c Fifth fonts.dir 4 To be complete $ sudo rpm -e fifth-leg-font $ grep -c Fifth fonts.dir 0 Issue described in comment 13 has following explanation. fonts-config is checking whether freetype module is loaded by searching /etc/X11/xorg.conf for /\s*Load\s+"freetype"/. Then if ($extension =~ /otf/i && ! $freetype_module_used) { if ($VERBOSITY >= $VERBOSITY_DEBUG) { print ".otf won't work without freetype module,... ...discarding $fonts_scale_entries{$xlfd} $xlfd\n"; } delete $fonts_scale_entries{$xlfd}; } So question for Stefan: is checking for freetype module still relevant? Or is it safe to assume that freetype is always used? fonts-config checks for freetype and xtt but the latter is outdated, correct? Assigning back to me as the problem described in comment 0 seems to be caused by fonts-config. There is no /etc/X11/xorg.conf any longer. Yes, it is safe to assume that freetype is always available. Seems it's now included by Xorg binary and no X module any longer. xtt is considered dead. (In reply to comment #17) > There is no /etc/X11/xorg.conf any longer. Yes, it is safe to assume that Have noticed ;-). > freetype is always available. Seems it's now included by Xorg binary and no X > module any longer. xtt is considered dead. seems fonts-config needs major rewrite. (In reply to comment #18) > > freetype is always available. Seems it's now included by Xorg binary and no X > > module any longer. xtt is considered dead. > > seems fonts-config needs major rewrite. It hasn't been touched since Mike Fabian left the company, right? Which is now about 4 1/2 years ago ... (In reply to comment #19) > It hasn't been touched since Mike Fabian left the company, right? Which is now > about 4 1/2 years ago ... Yes. It has been touched, but only in in very isolated portions of code. Will see if I have enough knowledge for this task and in which time horizon it could be done. This bug can be resolved for now by simple removal of condition from comment 15, though. Did so, giving fonts-config high priority in my TODO list. Christopher, this should resolve issue described in comment 0. Please file a new bug report for other issues described in this bug, if you want to. Thanks for reporting! This is an autogenerated message for OBS integration: This bug (840416) was mentioned in https://build.opensuse.org/request/show/201591 Factory / fonts-config |