[Bug 744812] Re: FontConfig/Qt stack choke on Ubuntu Medium font meta-data (No medium in Inkscape and too bold in Qt apps)

Björn Michaelsen bjoern.michaelsen at canonical.com
Tue Oct 9 07:26:56 UTC 2012


Just following up on comment 42, I assume the equivalent to be done in LibreOffice at convertWeight() in fontmanager.cxx:                                                                                         
                                                                                                                                                                                 
 http://opengrok.libreoffice.org/xref/core/vcl/generic/fontmanager/fontconfig.cxx#428                                                                                            
                                                                                                                                                                                 
which maps:                                                                                                                                                                      
                                                                                                                                                                                 
LibreOffice weight      fontconfig weight                               value                                                                                                    
WEIGHT_THIN             FC_WEIGHT_THIN                                  <=0                                                                                                      
WEIGHT_ULTRALIGHT       FC_WEIGHT_ULTRALIGHT/FC_WEIGHT_EXTALIGHT        <=40                                                                                                     
                        FC_WEIGHT_LIGHT                                 <=50                                                                                                     
WEIGHT_LIGHT            FC_WEIGHT_BOOK                                  <=75                                                                                                     
WEIGHT_SEMILIGHT        FC_WEIGHT_REGULAR/FC_WEIGHT_NORMAL              <=80                                                                                                     
WEIGHT_NORMAL           FC_WEIGHT_MEDIUM                                <=100                                                                                                    
WEIGHT_MEDIUM           FC_WEIGHT_DEMIBOLD/FC_WEIGHT_SEMIBOLD           <=180                                                                                                    
WEIGHT_SEMIBOLD         FC_WEIGHT_BOLD                                  <=200                                                                                                    
WEIGHT_BOLD             FC_WEIGHT_EXTRABOLD/FC_WEIGHT_ULTRABOLD         <=205                                                                                                    
                        FC_WEIGHT_BLACK/FC_WEIGHT_HEAVY                 <=210 
WEIGHT_BLACK            FC_WEIGHT_EXTRABLACK/FC_WEIGHT_EXTRAHEAVY       <=215 

Where do the Ubuntu fonts fall in that scale?
I will try to testload the Ubuntu font in a debug build of LibreOffice, to see what http://opengrok.libreoffice.org/xref/core/vcl/generic/fontmanager/fontconfig.cxx#545 says about it.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to fontconfig in Ubuntu.
https://bugs.launchpad.net/bugs/744812

Title:
  FontConfig/Qt stack choke on Ubuntu Medium font meta-data (No medium
  in Inkscape and too bold in Qt apps)

Status in Fontconfig - Font Configuration Library:
  Confirmed
Status in Linux Libertine:
  Unknown
Status in Ubuntu Font Family:
  Invalid
Status in “fontconfig” package in Ubuntu:
  Confirmed
Status in “qt4-x11” package in Ubuntu:
  Fix Released
Status in “ubuntu-font-family-sources” package in Ubuntu:
  Fix Released
Status in “qt4-x11” source package in Natty:
  Invalid
Status in “ubuntu-font-family-sources” source package in Natty:
  Fix Released
Status in “qt4-x11” source package in Oneiric:
  Invalid
Status in “ubuntu-font-family-sources” source package in Oneiric:
  Fix Released
Status in “qt4-x11” source package in Precise:
  Invalid
Status in “ubuntu-font-family-sources” source package in Precise:
  Fix Released
Status in “qt4-x11” source package in Quantal:
  Fix Released
Status in “ubuntu-font-family-sources” source package in Quantal:
  Fix Released

Bug description:
  [Kubuntu natty up-to-date]
  Hi,
  Without any change on my system, I noticed some days ago that my default font (ubuntu) changed. Some odd behaviour appeared : ubuntu medium 10 pt was ok but ubuntu medium 11pt was bold (-> in my taskbar clock or in kpackapgekit). In fact, after some play with kcm kubuntu font manager, the ubuntu medium 10pt was wrong, since kcm module shows the true appearance of ubuntu medium, which is quite bold. I swapped to ubunu light font
  SO ! I changed font hinting to light (default in kubuntu seems to be medium) and it seems to have solved bugs.
  Anyway, "ubuntu font" management by KDE seems to be strange, and firefox 4 font rendering is worse (imho) with light hinting (but maybe because of unselected "system default" parameter in fonts kcm).

To manage notifications about this bug go to:
https://bugs.launchpad.net/fontconfig/+bug/744812/+subscriptions




More information about the foundations-bugs mailing list