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

vg/vgsvg: make user units equivalent to points #507

Merged
merged 3 commits into from Jan 23, 2019
Merged

Conversation

kortschak
Copy link
Member

This should make us use points for user units, but it causes the text size to be too large.

Please take a look.

/cc @chmike

@chmike
Copy link
Contributor

chmike commented Jan 20, 2019

The font size problem could be solved if the font size is specified in user units. Currently a font size of 12pt is specified as "12pt". I suggest to specify it as "12". Logicaly it is the same since we now use points everywhere. But apparently svg makes an error when scaling the font.

@kortschak
Copy link
Member Author

@sbinet ping

sbinet
sbinet previously approved these changes Jan 23, 2019
Copy link
Member

@sbinet sbinet left a comment

Choose a reason for hiding this comment

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

LGTM modulo minor nitpick.

@@ -39,7 +35,7 @@ const (
type Canvas struct {
svg *svgo.SVG
w, h vg.Length
dpi float64
// dpi float64
Copy link
Member

Choose a reason for hiding this comment

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

remove?

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks

Copy link
Member Author

Choose a reason for hiding this comment

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

BTW Do you know what ht is for. It is not used AFAICS.

Copy link
Member

Choose a reason for hiding this comment

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

@kortschak
Copy link
Member Author

PTAL

@kortschak kortschak merged commit 18bcd5c into master Jan 23, 2019
@kortschak kortschak deleted the pointviewbox branch January 23, 2019 09:25
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.

None yet

3 participants