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

Ensuring even width and heights when scaling 200% #420

Open
tommypreger opened this issue Oct 19, 2016 · 0 comments
Open

Ensuring even width and heights when scaling 200% #420

tommypreger opened this issue Oct 19, 2016 · 0 comments
Assignees

Comments

@tommypreger
Copy link

tommypreger commented Oct 19, 2016

When resizing text layers to 200% sometimes the rendered files get uneven widths and heights (e.g. 99*45 instead of 100x46), which makes them blurry when scaled down by two and watched on a non-retina display. This feels like a bug to me.

For the time being I have added two lines of code to renderer.js in the fnHandlePixmap function:

if(pixmap.width % 2) padding.right = 1;
if(pixmap.height % 2) padding.bottom = 1;

This fixes the problem for me, but I'd rather not have to go in and mess with the source...

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

No branches or pull requests

2 participants