Comment 72 for bug 744812

Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote :

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.