← Back to team overview

documentation-packages team mailing list archive

[Bug 1334495] Re: Two mixed fonts when rendering Chinese in KDE/QT apps with Droid Sans fonts

 

Thanks for your latest info, Lukas!

On 2014-07-28 07:59, Lukas Bunsen wrote:
> The local was mixed again, my hypothesis is that the Kubuntu
> installer sets some locale values depending on the timezone you
> choose?

Yes, that's what happens. The installer guesses the locale categories
which control various regional format aspects (as opposed to the display
language) such as date/time and number formats.

> As with the old installation, the font settings dialog only shows the
> same few fonts, and not all of the fonts you have.

That detail is odd; can't tell if it has anything to do with the actual
problem.

In the related bug #1346766 Cheng-Chia Tseng wrote in comment #7:

"Qt does not support fontconfig configuration well, the workaround is
to specify CJK font as the first candidate font instead of western font."

That statement fits well with the fact that it worked for you when you
changed the display language to Chinese. It would be valuable to know if
we can make it work by doing something similar even if the display
language is German.

As an experiment I wrote the attached fontconfig config file. Can you
please store it as

~/.config/fontconfig/conf.d/65-droid-sans-first.conf

It ought to result in a different output from the command

fc-match -a 'sans-serif'

with a bunch of Droid Sans fonts at the top of the list. The question is
if it changes the rendering in qt apps of Chinese content.

** Attachment added: "65-droid-sans-first.conf"
   https://bugs.launchpad.net/ubuntu/+source/fonts-android/+bug/1334495/+attachment/4164625/+files/65-droid-sans-first.conf

-- 
You received this bug notification because you are a member of
Documentation Packages, which is subscribed to fonts-android in Ubuntu.
https://bugs.launchpad.net/bugs/1334495

Title:
  Two mixed fonts when rendering Chinese in KDE/QT apps with Droid Sans
  fonts

Status in “fonts-android” package in Ubuntu:
  Incomplete

Bug description:
  Bug:
  In all desktop applications, two different fonts are mixed to display Chinese text. I attached a screenshot of a paragraph of Chinese text in Kmail - some characters are displayed using a "italic" font, others in a "normal" font. The same problem exists in other applications, for example Dolphin or even Konsole. In Xterm, only the "normal" characters are displayed, where Dolphin displays italic characters Xterm leaves a white space. Websites are displayed fine, if I open the same mail in the web interface only one font is used.

  Background

  I' am using Kubuntu 14.04 with the language set to German in KDE settings.
  The output of "locale" looks a bit messed up, I don't know why, as in the KDE settings all formats are consistently set to German standard. 
  "locale                                                                                                         
  LANG=de_DE.UTF-8
  LANGUAGE=de:en:zh:en
  LC_CTYPE="de_DE.UTF-8"
  LC_NUMERIC=zh_CN.UTF-8
  LC_TIME=zh_CN.UTF-8
  LC_COLLATE="de_DE.UTF-8"
  LC_MONETARY=zh_CN.UTF-8
  LC_MESSAGES="de_DE.UTF-8"
  LC_PAPER=zh_CN.UTF-8
  LC_NAME=zh_CN.UTF-8
  LC_ADDRESS=zh_CN.UTF-8
  LC_TELEPHONE=zh_CN.UTF-8
  LC_MEASUREMENT=zh_CN.UTF-8
  LC_IDENTIFICATION=zh_CN.UTF-8
  LC_ALL=
  "

  fc-match:                                                                                                   
  »DejaVuSans.ttf: "DejaVu Sans" "Book"«

  
  This is my first bug filed at launchpad. I filed it for language-selector as other related bugs I found were filed for the same package. If it isn't language-selector, perhaps you can point me to the right package?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/fonts-android/+bug/1334495/+subscriptions