Kozea / Kozea/CairoSVG

em font-size text does not support inner element

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

Description

This issue look related to #168.

When a `` element with `font-size` specified in `em` contains inner element, conversion does not works properly.

Example:

```svg

```

CairoSVG output:
![minimal_test](https://user-images.githubusercontent.com/16060904/37912639-38db1db4-3113-11e8-9aa9-8052fdf747ff.png)

Expected (in Chromium):
![screenshot_2018-03-26_16-33-21](https://user-images.githubusercontent.com/16060904/37912739-7162e18a-3113-11e8-8f62-18d5ef89aebc.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

No source file or test is named. Start by reproducing the supplied SVG with the two elements, compare the rendering of the plain text and nested , and trace the SVG text conversion path. Done means em-based font sizing renders consistently with the Chromium result when an inner element is present.

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
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.