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 Kubuntu
Bugs, which is subscribed to qt4-x11 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)

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

-- 
kubuntu-bugs mailing list
kubuntu-b...@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs

Reply via email to