Bug 7990 - sans fonts not working in Chinese locales
Summary: sans fonts not working in Chinese locales
Status: RESOLVED WORKSFORME
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal major
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-05 23:32 CET by Joseph Wang
Modified: 2012-11-23 19:00 CET (History)
0 users

See Also:
Source RPM: google-droid-sans-fonts-20100409-3.mga2
CVE:
Status comment:


Attachments

Description Joseph Wang 2012-11-05 23:32:20 CET
Description of problem:

Google sans is not displaying in Chinese locales.  I get this as a error

Fontconfig warning: "/etc/fonts/conf.d/65-google-droid-sans.conf", line 61: Having multiple values in <test> isn't supported and may not works as expected
Fontconfig warning: "/etc/fonts/conf.d/65-google-droid-sans.conf", line 93: Having multiple values in <test> isn't supported and may not works as expected

It turns out that those lines select sans fonts for Chinese so that with this broken sans is off in Chinese

   <test name="lang">
      <string>zh-cn</string>
      <string>zh-sg</string>
      <string>zh-hk</string>
      <string>zh-tw</string>
      <string>zh</string>
    </test>


Version-Release number of selected component (if applicable):


How reproducible:

Switch to Chinese locale, start up gnome.  No sans fonts

Listing as a major bug since it makes things look ugly

Steps to Reproduce:
1.
2.
3.
Comment 1 Joseph Wang 2012-11-17 18:23:52 CET
This is not a droid sans issue as it still happens when I remove it from system.

fontconfig is not resolving correctly.  When I do a 

fc-match Sans --sort

The first entry is 

uming.ttc: "AR PL UMing CN" "Light"

This is incorrect as AR PL UMing is a serif font (and a rather ugly one at that).
Comment 2 Joseph Wang 2012-11-17 19:17:09 CET
One other problem I can see is that when I do an fc-match Sans --sort

uming.ttc: "AR PL UMing CN" "Light"
DejaVuSans.ttf: "DejaVu Sans" "Book"
DejaVuSans-Bold.ttf: "DejaVu Sans" "Bold"
DejaVuSans-Oblique.ttf: "DejaVu Sans" "Oblique"
DejaVuSans-BoldOblique.ttf: "DejaVu Sans" "Bold Oblique"
LiberationSans-Regular.ttf: "Liberation Sans" "Regular"
n019003l.pfb: "Nimbus Sans L" "Regular"
helvR12-ISO8859-1.pcf.gz: "Helvetica" "Regular"
odohei.ttf: "éæ¾é»é«" "Regular"  <------
wqy-microhei.ttc: "ææ³é©å¾®ç±³é»" "Regular" <--------

Those two fonts are sans fonts that should be preferred to UMing, but the names are in Chinese and they aren't matching.

Also everything worked in Mageia 2 and so I don't know what broke.
Comment 3 Joseph Wang 2012-11-23 19:00:27 CET
Marking as invalid since everything seems to work with a clean update to Mageia 3 - Alpha 3

Status: NEW => RESOLVED
Resolution: (none) => WORKSFORME


Note You need to log in before you can comment on or make changes to this bug.