[Bug 788838] New: Liberation-2.0 fonts have no or broken bycode interpreter
https://bugzilla.novell.com/show_bug.cgi?id=788838 https://bugzilla.novell.com/show_bug.cgi?id=788838#c0 Summary: Liberation-2.0 fonts have no or broken bycode interpreter Classification: openSUSE Product: openSUSE Factory Version: 12.3 Milestone 0 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: anixx@opensuse.org QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20100101 Firefox/15.0.1 Liberation-2.0 have not working bytecode interpreter which makes it appear with no hinting and with "soap" and "rainbow" effects. The problem is that so-called "Liberation-2.0" font IS NOT the continuation of Liberation fonts. It is produced by different company and under different license. Besides disabled bytecode it also has different layout metric (it is more condensed) which may cause documents which use Liberation to appear differently and incorrectly. So my suggestion is to return to the true Liberation font or give the Liberation-2.0 package another name and ship it along with the non-broken Liberation. See also this Fedora bugreport: https://bugzilla.redhat.com/show_bug.cgi?id=856239 Reproducible: Always Steps to Reproduce: 1. 2. 3. -- 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=788838
https://bugzilla.novell.com/show_bug.cgi?id=788838#c
Petr Gajdos
https://bugzilla.novell.com/show_bug.cgi?id=788838
https://bugzilla.novell.com/show_bug.cgi?id=788838#c1
--- Comment #1 from Petr Gajdos
https://bugzilla.novell.com/show_bug.cgi?id=788838
https://bugzilla.novell.com/show_bug.cgi?id=788838#c2
--- Comment #2 from Petr Gajdos
https://bugzilla.novell.com/show_bug.cgi?id=788838
https://bugzilla.novell.com/show_bug.cgi?id=788838#c3
Petr Gajdos
Besides disabled bytecode it also has different layout metric (it is more condensed) which may cause documents which use Liberation to appear differently and incorrectly.
You are saying Liberation 2.0 are not metric compatible with Liberation 1.0? Can you please point me to the source of this information? -- 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=788838
https://bugzilla.novell.com/show_bug.cgi?id=788838#c4
--- Comment #4 from Ilya Chernykh
https://bugzilla.novell.com/show_bug.cgi?id=788838
https://bugzilla.novell.com/show_bug.cgi?id=788838#c5
Ilya Chernykh
https://bugzilla.novell.com/show_bug.cgi?id=788838
https://bugzilla.novell.com/show_bug.cgi?id=788838#c6
--- Comment #6 from Ilya Chernykh
https://bugzilla.novell.com/show_bug.cgi?id=788838
https://bugzilla.novell.com/show_bug.cgi?id=788838#c7
--- Comment #7 from Ilya Chernykh
https://bugzilla.novell.com/show_bug.cgi?id=788838
https://bugzilla.novell.com/show_bug.cgi?id=788838#c8
--- Comment #8 from Ilya Chernykh
https://bugzilla.novell.com/show_bug.cgi?id=788838
https://bugzilla.novell.com/show_bug.cgi?id=788838#c9
Petr Gajdos
https://bugzilla.novell.com/show_bug.cgi?id=788838
https://bugzilla.novell.com/show_bug.cgi?id=788838#c10
--- Comment #10 from Takashi Iwai
https://bugzilla.novell.com/show_bug.cgi?id=788838
https://bugzilla.novell.com/show_bug.cgi?id=788838#c11
--- Comment #11 from Petr Gajdos
One possible way would be to call Liberation 2.0 liberation2-fonts or such, and let croscore-fonts provides/obsoletes liberation-fonts. This won't change the situation of "Liberation" family conflicts, though.
Right now Liberation fonts have different hint styles defined in 16-suse-hintstyle.conf. Maybe we need to fix this and/of provide the overriding config from liberation2-fonts?
+1 liberation-fonts and liberation2-fonts will conflict on file level, so liberation2-fonts could be provider of liberation-fonts and which one will be preffered could be chosen on project level. -- 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=788838
https://bugzilla.novell.com/show_bug.cgi?id=788838#c12
--- Comment #12 from Petr Gajdos
https://bugzilla.novell.com/show_bug.cgi?id=788838
https://bugzilla.novell.com/show_bug.cgi?id=788838#c13
Petr Gajdos
https://bugzilla.novell.com/show_bug.cgi?id=788838
https://bugzilla.novell.com/show_bug.cgi?id=788838#c14
--- Comment #14 from Thomas Schraitle
I have used term 'metric compatibility' only as naively until now, what's actually the exact definition? I suppose one have to take e. g. kerning into account?
I've found some useful "definition" in Wikipedia (http://en.wikipedia.org/wiki/Typeface#Font_metrics): Typefaces with the same metrics (i.e., with the same glyph dimensions) are said to be "metric-compatible", that is, they can be substituted for one another in a document without changing the document's text flow. With that definition, kerning needs to be considered too, otherwise line breaks would differ. -- 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=788838
https://bugzilla.novell.com/show_bug.cgi?id=788838#c15
--- Comment #15 from Petr Gajdos
Right now Liberation fonts have different hint styles defined in 16-suse-hintstyle.conf. Maybe we need to fix this and/of provide the overriding config from liberation2-fonts?
maybe would be the option too to distinguish version of installed Liberation fonts directly in 16-suse-hintstyle.conf (or maybe rather new 16-suse-liberation.conf)? That could be detected via lang element as Liberation fonts 2.0 supports more languages. Advantage would be to have all liberation-fonts-specific-configuration on one place. -- 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=788838
https://bugzilla.novell.com/show_bug.cgi?id=788838#c16
--- Comment #16 from Takashi Iwai
https://bugzilla.novell.com/show_bug.cgi?id=788838
https://bugzilla.novell.com/show_bug.cgi?id=788838#c17
--- Comment #17 from Petr Gajdos
So, if we'd like to keep M17N:fonts stuff somehow independent from distro version, an override config is preferred, IMO.
Ok. -- 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=788838
https://bugzilla.novell.com/show_bug.cgi?id=788838#c18
Petr Gajdos
https://bugzilla.novell.com/show_bug.cgi?id=788838
https://bugzilla.novell.com/show_bug.cgi?id=788838#c19
--- Comment #19 from Petr Gajdos
https://bugzilla.novell.com/show_bug.cgi?id=788838
https://bugzilla.novell.com/show_bug.cgi?id=788838#c20
--- Comment #20 from Ilya Chernykh
https://bugzilla.novell.com/show_bug.cgi?id=788838
https://bugzilla.novell.com/show_bug.cgi?id=788838#c21
--- Comment #21 from Ilya Chernykh
https://bugzilla.novell.com/show_bug.cgi?id=788838
https://bugzilla.novell.com/show_bug.cgi?id=788838#c22
--- Comment #22 from Thomas Schraitle
@Petr Gajdos I think that autohint is what we get anyway when BCI codes are absent. So on the screenshots above we see Liberation-2 with autohinting anyway.
@Petr: How do you perform autohinting? Do you use Fontforge or another tool? I'm not sure if you know it already, but in my home repo (home:thomas-schraitle) there is the ttfautohint package which seems to create pretty good hinting information: http://www.freetype.org/ttfautohint/ ttfautohint's goal is a 99% automated hinting process for web fonts, acting as a platform for finely hand-tuned hinting. Could be worth a try. :) -- 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=788838
https://bugzilla.novell.com/show_bug.cgi?id=788838#c23
--- Comment #23 from Petr Gajdos
@Petr Gajdos I think that autohint is what we get anyway when BCI codes are absent. So on the screenshots above we see Liberation-2 with autohinting anyway.
Really? I think only when would KDE tweak somehow fontconfig configuration. pgajdos@laura:~[0]> rpm -q liberation-fonts liberation-fonts-2.00.1-15.1.noarch pgajdos@laura:~[0]> fc-match -v 'Liberation Sans' | grep hint hintstyle: 1(i)(w) hinting: FcTrue(s) autohint: FcFalse(w) But if you don't want to test, never mind, I will simply pick configuration from comment 12. But don't say then that Liberation fonts 2.0 are broken. They are simply not designed for using BCI algorithm. And you are likely to use BCI to render them. -- 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=788838
https://bugzilla.novell.com/show_bug.cgi?id=788838#c24
--- Comment #24 from Petr Gajdos
By the way, can the folders and files of Liberation-2 be somehow renamed so to make it not to conflict with Liberation?
No, they conflicts not only on file level, but also on 'family name' level. These two fonts can't be installed together on one system. -- 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=788838
https://bugzilla.novell.com/show_bug.cgi?id=788838#c25
--- Comment #25 from Petr Gajdos
(In reply to comment #20) @Petr: How do you perform autohinting? Do you use Fontforge or another tool?
I'm not sure if you know it already, but in my home repo (home:thomas-schraitle) there is the ttfautohint package which seems to create pretty good hinting information:
http://www.freetype.org/ttfautohint/
ttfautohint's goal is a 99% automated hinting process for web fonts, acting as a platform for finely hand-tuned hinting.
Could be worth a try. :)
That should do upstream if they decide it is the best way. You can suggest it in RH bug. But in its comment_24 one of the commenter says there that using ttfautohint versus freetype autohinter makes no big difference (in general). But I haven't use it so far, so I cannot tell. I suppose I will not have time for testing it for Liberation fonts 2.0 in near future. I think we should use freetype autohinting for time being and we will see what happens in RH bug. There are participating Behdad and Akira (upstream of fontconfig), so I am sure they'll choose the best solution. -- 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=788838
https://bugzilla.novell.com/show_bug.cgi?id=788838#c26
Petr Gajdos
https://bugzilla.novell.com/show_bug.cgi?id=788838
https://bugzilla.novell.com/show_bug.cgi?id=788838#c27
--- Comment #27 from Ilya Chernykh
https://bugzilla.novell.com/show_bug.cgi?id=788838
https://bugzilla.novell.com/show_bug.cgi?id=788838#c28
Petr Gajdos
https://bugzilla.novell.com/show_bug.cgi?id=788838
https://bugzilla.novell.com/show_bug.cgi?id=788838#c29
--- Comment #29 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=788838
https://bugzilla.novell.com/show_bug.cgi?id=788838#c30
--- Comment #30 from Bernhard Wiedemann
participants (1)
-
bugzilla_noreply@novell.com