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

Image cut when using some font #28

Closed
wanmeihuali opened this issue Jan 17, 2018 · 3 comments
Closed

Image cut when using some font #28

wanmeihuali opened this issue Jan 17, 2018 · 3 comments

Comments

@wanmeihuali
Copy link

out
I think the reason is that PIL's textsize() function does not consider the offset of the font.
python-pillow/Pillow#644
I don't know it is a bug or feature for PIL, But you can fix this by just adding the offset the w and h in _draw_character() function.

@lepture
Copy link
Owner

lepture commented Jan 18, 2018

@wanmeihuali You are welcome to submit a PR to fix it.

@wanmeihuali
Copy link
Author

I rechecked this problem and found that they have fixed it in one of the pillow version. So this problem can be fixed by updating pillow.

@Oktai15
Copy link

Oktai15 commented Jan 8, 2019

let's close it, @lepture

@lepture lepture closed this as completed Jan 9, 2019
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

3 participants