Light/Condensed font workaround

Post questions on how to use or achieve an effect in Inkscape.
brendanarnold
Posts: 1
Joined: Sun Nov 10, 2013 9:08 am

Light/Condensed font workaround

Postby brendanarnold » Sun Nov 10, 2013 9:20 am

I use many fonts which are 'Light' variants of the main fonts e.g. Roboto and Sego UI when mocking up apps, however there seems to be a long standing bug which means that you cannot use a Light font variant in Inkscape. Frustratingly, the Light version appear in the font list drop down but after selection just revert back to the canonical font.

I understand there may be a way to hack the XML to get the Light versions to render but it seems rather complex, the font name appears at least twice in the node style and its not clear exactly what I should adjust. I have tried setting font-variant, font-family, font-weight, inkscape-font-specification but with no luck.

Does anyone know how to adjust the XML appropriately or any other workaround?

I'm on Windows 8 using Inkscape 0.48.4

davideddu
Posts: 1
Joined: Tue Aug 05, 2014 6:13 am

Re: Light/Condensed font workaround

Postby davideddu » Tue Aug 05, 2014 6:15 am

Up, this bug affects me too.

User avatar
Maestral
Posts: 982
Joined: Sat Aug 27, 2011 7:10 am

Re: Light/Condensed font workaround

Postby Maestral » Tue Aug 05, 2014 4:51 pm

Aside of being a long standing, this is not just Inkscape specific bug.

I`d truly appreciate if either of you two make an effort for a second post.
:tool_zoom: <<< click! - but, those with a cheaper tickets should go this way >>> :!:

svsudhir
Posts: 1
Joined: Tue Feb 03, 2015 5:27 pm

Re: Light/Condensed font workaround

Postby svsudhir » Tue Feb 03, 2015 5:38 pm

Hi,

Perhaps this is a late reply to this issue. However, to make Roboto, Opensans and other fonts that have light, condensed and other variants work in Inkscape, all I have done is to rename the font files on the disk. See this Roboto font sample image to see what I have done. You will notice that I have removed the hypen (-) symbol from the variants.

inkscape-font-variants-workaround.jpg
Inkscape workaround for light/condensed/thin fonts
inkscape-font-variants-workaround.jpg (41 KiB) Viewed 4614 times


After renaming the font files, then only install them. Inkscape will now display all the variants, allow selection, display correctly and will enable you to work with them.

Do the same for other fonts that have such variants.

Hope this helps and from now you can use the exact fonts in your website mockups and designs.

Thanks
S V Sudharshan
Freelance web designer & developer
India.
M:+919949054101

Arlo James Barnes
Posts: 2
Joined: Tue Nov 26, 2013 2:26 pm

Re: Light/Condensed font workaround

Postby Arlo James Barnes » Sun Feb 21, 2016 2:28 pm

Brendan Arnold:

CSS (and Opentype I believe, but that is irrelevant for this thread) specifies font weight in numbers ending in 00, ranging from very light at 100 to very heavy at 900. If you replace the 'normal' (minus quotes) string in the font-weight with the appropriate number (try different things to see which number matches to what weight font you have installed), you will be able to use different weights.
I presume there is something similar for 'font-stretch' in order to be able to condensed and extended cuts, but I have not figured it out yet.

:tool_text: By the way, for the bug linked above (which contrary to what was stated is not a descendant of the Mozilla bug also linked), Tavmjong Bah has marked 'fixed' for 0.91 and later.


Return to “Help with using Inkscape”