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

give text its own dimension function #2992

Merged
merged 5 commits into from
May 21, 2016
Merged

give text its own dimension function #2992

merged 5 commits into from
May 21, 2016

Conversation

asturur
Copy link
Member

@asturur asturur commented May 21, 2016

closes #2991

@asturur
Copy link
Member Author

asturur commented May 21, 2016

That is a plus in text svg import accuracy also:

SVG:

<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 14.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 43363)  -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
     width="396px" height="162px" viewBox="0 0 396 162" enable-background="new 0 0 396 162" xml:space="preserve">
<text y="40" fill="#FF00FF" stroke="#00FF00" stroke-width="2" font-size="40">PBIS Winter Bash Dance</text>
<text x="1" y="80" fill="#FF00FF" stroke="#00FF00" stroke-width="2" font-size="40">PBIS Winter Bash Dance</text>
<text x="1" y="120" fill="#FF00FF" stroke="#00FF00" stroke-width="6" font-size="40">PBIS Winter Bash Dance</text>
</svg>

new import
image

svg content in browser:
image

actual 1.6.2 rendering:
image

@asturur
Copy link
Member Author

asturur commented May 21, 2016

@plainview nice find! thanks.

@asturur asturur merged commit f425966 into master May 21, 2016
@asturur asturur deleted the asturur-patch-1 branch May 21, 2016 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Textbox w/ stroke width toDataUrl has slightly different offset compared to canvas
1 participant