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

Umlauts are corrupted on printing #108

Open
Markus87 opened this issue Jul 22, 2020 · 6 comments
Open

Umlauts are corrupted on printing #108

Markus87 opened this issue Jul 22, 2020 · 6 comments

Comments

@Markus87
Copy link

I noticed a curious problem on printing on a real printer from Windows.
If we print from our software umlauts they are corrupted starting with v7.210.
Also this problem only shows if printing with a physical printer, the pdf or xps printer do not show it.

grafik

They are okay with v7.200, so we just downgraded.
But maybe this is useful for you somehow.

@kalapi
Copy link
Collaborator

kalapi commented Jul 27, 2020

Hello @Markus87

Thanks for filing the issues. Unfortunately i'm not able to reproduce this on my end. I'm using the following:

Software/Hardware Name/Version
Operating System macOS 10.15.5
App TextEdit
Font format OTF & TTF
Weight(s) Thin, ExtraLight, Light, and Regular
Printer HP Laserjet P 1102w

If you can provide similar info, it would be easier to pinpoint the issue :)

@JulietaUla
Copy link
Owner

JulietaUla commented Jul 27, 2020 via email

@Markus87
Copy link
Author

Hi @kalapi

Thanks for the quick response and sorry for the little detail of the issue.
I was afraid that this will not be easy to reproduce. It happens out of our application we make, and we have custom print code, so its absolutely possible it is our fault. Maybe I can reproduce it with a program Windows provides.
I am currently on holidays, but I will try to provide you with better information when I am back at work.

@kalapi
Copy link
Collaborator

kalapi commented Jul 27, 2020

It could be on your end, but it also could be a regression in v7.210 especially because the previous version works and not much has changed in the text layout code in the relevant tables. However, my initial checks haven't produced any issues.

I'd love to get more info If/when you and back and have time.

Thanks again!

@moyogo
Copy link
Contributor

moyogo commented Jul 28, 2020

This could be a buggy printer TrueType interperter, as some fail to handle glyphs with nested components (composite glyph using another composite glyph as a component).
The fontmake/ufo2ft flattenComponents filter is used in the UFO-source based Montserrat that was made for Google Fonts, see googlefonts@653c946.

@Markus87
Copy link
Author

@kalapi I finally had time to investigate this issue again and I was able to create a small program which reproduces the issue we have in our application.
I also noticed the issue can only be reproduced if printing in landscape mode, switch to portrait and it works. 🤷‍♂️

Software/Hardware Name/Version
Operating System Windows 10 (Version 2004)
App Custom Application(see attached example)
Font format TTF
Weight(s) Default (Regular?)
Printer HP PageWide 377dw MFP

Example program:

  • Example good prints with v7.200
  • Example bad prints with v7.210
  • The program will close itself after printing
    grafik

Prints look like that:
grafik

Download source
Download application

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

4 participants