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

Fixed issue - rendering of bold fonts #40

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

Conversation

cdce8p
Copy link

@cdce8p cdce8p commented Jan 2, 2018

In some cases bold fonts weren't rendered correctly. Especially for fonts that don't natively support bold text. See image below. For this demonstration I used the Tangerine Font from Google but it's not the only font that has the issue. Normally both lines should be the same length.
bug_bold-fonts

I solved the issue by adding a scaling transformation to those fonts that don't support bold text. Due to the fact that all fonts are slightly diffrent, I added the option s to allow the user to set an individual scaling factor for their font.
fix_bold-fonts

@rbodziony
Copy link

For me looks nice can you mege this too ?

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.

2 participants