Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(SVG): naive support to Text element #3320

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rodolforg
Copy link
Contributor

It doesn't handle , text span (), stroke, multiple lines, and per-character transformations (offset and rotation) autowrap, font selection among options...

But it does some work, I promise ;)

{"xx-small", default_size * 3./5.},
{"x-small", default_size * 3./4.},
{"small", default_size * 8./9.},
{"medium", default_size},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently build fails on macOS with the error:

Undefined symbols for architecture x86_64:
  "FontSize::default_size", referenced from:

This is a little counter-intuitive, but this can be fixed by this:

{"medium",   default_size*1},

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

o.O
Done.

It doesn't handle <textPath>, text span (<tspan>), stroke,
multiple lines, and per-character transformations (offset and rotation)
autowrap, font selection among options...

But it does some work, I promise ;)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants