albrechtf / mcf2pdf

"My CEWE Photobook" MCF to PDF converter
Other
41 stars 36 forks source link

Fixed issue - rendering of bold fonts #40

Open cdce8p opened 6 years ago

cdce8p commented 6 years ago

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 commented 6 years ago

For me looks nice can you mege this too ?