Kozea / Kozea/CairoSVG

font-weight issue

Open
#361 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
951
Forks
166
PR merge metrics
No merged PRs in 30d

Description

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: `Hello World`
SVG2: `Hello World`

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue through the svg2png entry point with the two SVG snippets using font-weight 700 and 900. Trace how CairoSVG handles font-weight during SVG text rendering; done means installed fonts render visibly different weights when the SVG requests distinct values.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-graphics
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.