pango 1.36.6 breaks 'Light' font styles in 0.48 and trunk
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Medium
|
Tavmjong Bah |
Bug Description
After upgrading to latest release of pango (1.36.6) [1], 'Light' variants of fonts are identified as 'Semi-Light' in Inkscape, but the style cannot be applied - neither via text tool controls bar nor via 'Text and Font' dialog.
Surprising detail: the font style can actually be used in trunk if typing 'Light' into the style selector on the text tool controls bar: the result renders as expected on-canvas, but the style is not recognized in the 'Text and Font' dialog (selects 'Normal').
Font used for tests: Adobe's 'Source Sans Pro'
Systems: Mac OS X 10.7.5 (me), Debian sid (houz, via irc)
Likely relevant changes in Pango 1.36.6:
- support for a new font weight: PANGO_WEIGHT_
Comparison with other GTK+ apps:
- gtk demo font picker: lists style as 'Light', renders preview ok
- GIMP 2.8.14: lists font style as 'Semi-Light', renders font as expected on-canvas
Upgrading fontconfig to latest git master didn't help (tested on OS X only).
Affects current stable Inkscape 0.48.5 (r10040) and trunk (0.91pre2) (r13543).
Wrt related upstream changes in pango (and fontconfig), see also
- https:/
- https:/
--
[1] verified by downgrading pango to earlier version 1.36.5: the same inkscape builds then list the font style as 'Light', allow to assign it to text and render it on-canvas as expected.
description: | updated |
Changed in inkscape: | |
importance: | Undecided → Medium |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
Related new warnings when building Inkscape (trunk) with pango 1.36.6 installed:
CXX libnrtype/ font-lister. o libnrtype/ font-lister. cpp:616: 16: warning: enumeration value 'PANGO_ WEIGHT_ SEMILIGHT' not handled in switch [-Wswitch-enum]
../../src/
switch ( weight ) {
^
1 warning generated.
CXX libnrtype/ Layout- TNG-Output. o libnrtype/ Layout- TNG-Output. cpp:510: 13: warning: enumeration value 'PANGO_ WEIGHT_ SEMILIGHT' not handled in switch [-Wswitch-enum]
../../src/
switch (w) {
^
1 warning generated.