CairoSVG icon indicating copy to clipboard operation
CairoSVG copied to clipboard

font-weight issue

Open SyPRX opened this issue 3 years ago • 0 comments

Hey there, Using svg2png, I can not generate PNG with correct font-weight. For instance I want to use the black version of my font (which is well installed). (font-weight = 900) It seems font-weight attribute is limited to few values, is this normal ?

How can I generate a PNG using the right font-weight value ?

Here is an example, I have 2 different SGV but the generated PNG are the same

SVG1: <text class="st4 st15 st16" font-weight="700">Hello World</text> SVG2: <text class="st4 st15 st16" font-weight="900">Hello World</text>

SyPRX avatar Jul 06 '22 09:07 SyPRX