Skip to content

Fixed issue - rendering of bold fonts#40

Open
cdce8p wants to merge 1 commit intoalbrechtf:masterfrom
cdce8p:fix_bold-fonts
Open

Fixed issue - rendering of bold fonts#40
cdce8p wants to merge 1 commit intoalbrechtf:masterfrom
cdce8p:fix_bold-fonts

Conversation

@cdce8p
Copy link
Copy Markdown

@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
Copy Markdown

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