[Bug 732447] New: fonts-config builds fontconfig.SuSE.properties which refers to missing Lucida fonts
https://bugzilla.novell.com/show_bug.cgi?id=732447 https://bugzilla.novell.com/show_bug.cgi?id=732447#c0 Summary: fonts-config builds fontconfig.SuSE.properties which refers to missing Lucida fonts Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: All OS/Version: All Status: NEW Severity: Minor Priority: P5 - None Component: Java AssignedTo: bnc-team-java@forge.provo.novell.com ReportedBy: Michael.Zapf@web.de QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20100101 Firefox/8.0 After doing the same fixes with every new installation I guess it's about time to look for the cause of the trouble. For some time now, openJDK is automatically installed in place of SunJDK. Since then I have recurring problems with logical fonts. In particular, the "Monospaced" font is not monospaced but some replacement font which is even proportional. The reason is that SunJava REs include the Lucida fonts which are not bundled with openJDK. But even when openJDK is used, the fonts-config script (which is part of openSUSE) creates a fontconfig.SuSE.properties in $JRE_HOME/lib which refers to the Lucida fonts. This again is due to the template with contains these font names. Unfortunately, Java does not allow for a user fontconfig but only reads the fontconfig in $JRE_HOME. That is, each time I reinstall, I have to fix the file. It is possible to override the file with another fontconfig file by including the version numbers in the file name, but that is, in fact, just a workaround. I suggest to update the template to use a font that is guaranteed to be delivered with openSUSE, e.g. Liberation. Michael Reproducible: Always Steps to Reproduce: 1. Install openJDK 2. Make sure that the font "Lucida Typewriter" is not installed by some other application 3. Start a Java application that uses the logical font Monospaced Actual Results: Java output is rendered with an unexpected font, not necessarily monospaced. Expected Results: The logical font "Monospaced" should be mapped to a physical font that is monospaced. Problem can be solved by updating the /usr/share/fonts-config/fontconfig.SuSE.properties.template, possibly depending on whether openJDK or SunJDK is installed. -- 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=732447 https://bugzilla.novell.com/show_bug.cgi?id=732447#c1 Michal Vyskocil <mvyskocil@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mvyskocil@suse.com AssignedTo|bnc-team-java@forge.provo.n |pgajdos@suse.com |ovell.com | --- Comment #1 from Michal Vyskocil <mvyskocil@suse.com> 2011-12-01 10:13:14 UTC --- This is a fonts-config stuff, as openjdk package reffers to DejaVu fonts only. Reassigning to proper 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=732447 https://bugzilla.novell.com/show_bug.cgi?id=732447#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=732447 https://bugzilla.novell.com/show_bug.cgi?id=732447#c2 Petr Gajdos <pgajdos@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #2 from Petr Gajdos <pgajdos@suse.com> 2011-12-05 16:22:40 UTC --- Michael and Michal, what I am trying to do now is to generate font setup also for latin1 with following priorities: my @sans_latin1_priority = ("DejaVu Sans:style=Book:width=100", "Liberation Sans:style=Regular", "Droid Sans:style=Regular"); my @mono_latin1_priority = ("DejaVu Sans Mono:style=Book", "Liberation Mono:style=Regular", "Droid Sans Mono:style=Regular"); my @serif_latin1_priority = ("DejaVu Serif:style=Book:width=100", "Liberation Serif:style=Regular", "Droid Serif:style=Regular"); I would very appreciate if you help with testing fonts-config from http://download.opensuse.org/repositories/home:/pgajdos/openSUSE_Factory/noa... and tell me what's wrong :-). Or please guide me (as non-java-programmer) how to quickly test it. I have also dropped code for 1.4 setup, if you have any problems with it, please let me know. -- 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=732447 https://bugzilla.novell.com/show_bug.cgi?id=732447#c3 --- Comment #3 from Michael Zapf <Michael.Zapf@web.de> 2011-12-05 16:54:26 UTC --- Here is a test program in Java. You just need to have an openjdk installed. Start it with java -jar TestFont.jar <input_file> <font_name> The input file should have text-only content. The font name can be a real font name like "DejaVu Sans" or one of the five logical names "Monospaced", "Serif", "Sansserif", "Dialog", "DialogInput". You can unzip the jar to get the source code (using unzip or jar xf). You can use the source file as the input file like java -jar TestFont.jar TestFont.java Monospaced Michael -- 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=732447 https://bugzilla.novell.com/show_bug.cgi?id=732447#c4 --- Comment #4 from Michael Zapf <Michael.Zapf@web.de> 2011-12-05 16:55:29 UTC --- Created an attachment (id=465924) --> (http://bugzilla.novell.com/attachment.cgi?id=465924) Test program in java -- 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=732447 https://bugzilla.novell.com/show_bug.cgi?id=732447#c5 Petr Gajdos <pgajdos@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #5 from Petr Gajdos <pgajdos@suse.com> 2011-12-06 10:14:37 UTC --- Michael, thanks for your test program, i think it will be usefull for me also in future. I have tested fonts-config output (/usr/lib*/jvm/jre/lib/fontconfig.SuSE.properties) and it seems to work for me at least when dejavu fonts are installed. For 12.1, updated fonts-config is downloadable from http://download.opensuse.org/repositories/M17N/openSUSE_12.1/noarch feel free to install it and provide feedback (reopen bug if neccesary). For Factory, see sr#95533. Thanks a lot for reporting and cooperation! -- 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=732447 https://bugzilla.novell.com/show_bug.cgi?id=732447#c6 --- Comment #6 from Bernhard Wiedemann <bwiedemann@suse.com> 2011-12-06 12:00:08 CET --- This is an autogenerated message for OBS integration: This bug (732447) was mentioned in https://build.opensuse.org/request/show/95533 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.
participants (1)
-
bugzilla_noreply@novell.com