-
Notifications
You must be signed in to change notification settings - Fork 45
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
Skparagraph does not properly handle newlines on windows #278
Comments
Probably the same as #268 - did you copy a icudtl.dat ? |
The icudtl.dat issue is also where we differ from rust-skia . See #270 |
This does seem to be the problem. I did copy icudtl.dat before, otherwise there will be an error. But it seems to be something wrong with the icudtl.dat. When I replaced it with icudtl.dat from rust-skia and the problem disappeared! |
Maybe it's the icu version? I tried ICU 74.2 and it's working. |
I don't quite understand where rust-skia's icudtl.dat comes from, maybe there is a icudtl.dat in skia's build results? |
That's very interesting - so you are saying 75.1 doesn't work correctly, but 74.2 from unicode-org upstream and also whatever version from rust-skia does? Can you give the skipped tests in #270 (on windows) a try? |
Okay, thanks. I checked, and basically you need v69 before m126, and current skia since m126 uses v74. Current v75 is too new. See 2b6ab54 |
There seems to be an And, should |
If you can figure out how to package that, that would be good. AFAIK, next to |
I tried adding the |
Thanks. That looks neat. I'll need to withdraw #270 and do a "try 2". :-). |
One possible problem is that we might break another python package which also uses unicode-related functionality (since the location is outside skia-python's). Forcing the user to copy it from somewhere at least he/she is aware of it. Anyway, that's just hypothetical, we don't know any other python package doing that. |
Describe the bug
When given text that has newlines in it, Skparagraph fails to render the newlines and instead renders them as unknown characters.
![test](https://private-user-images.githubusercontent.com/33149974/382552361-3612d143-278c-438d-adde-c9e286515831.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1ODk5NjYsIm5iZiI6MTczOTU4OTY2NiwicGF0aCI6Ii8zMzE0OTk3NC8zODI1NTIzNjEtMzYxMmQxNDMtMjc4Yy00MzhkLWFkZGUtYzllMjg2NTE1ODMxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDAzMjEwNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY0Nzc3MGJkMDI1ODc4Mzc5ZjYxYjUwZmEzMWQ5MDVhNTE3NGM5NzUxMTQyZGNkMWU4NWI1YTQ2NDA4NzEwZTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.JYspTIBWO_BZPcYRxZy6ewZlwrsb8uC3xuyjurU6m6E)
But it works on linux:
![test](https://private-user-images.githubusercontent.com/33149974/382552395-0f69f683-9978-4493-aa68-c61ce687c08d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1ODk5NjYsIm5iZiI6MTczOTU4OTY2NiwicGF0aCI6Ii8zMzE0OTk3NC8zODI1NTIzOTUtMGY2OWY2ODMtOTk3OC00NDkzLWFhNjgtYzYxY2U2ODdjMDhkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDAzMjEwNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE0NTVkMmEyOGFjY2Q2ZDM1MzM3MmYzNzRlNzFkZjU0ODczNzVjZjUwMGQ2OTc0MjcyMTZjZmJlZWNkYWRjMzAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.GfiyAf4fTMuAX_8cWkcUPj5lx2lytS-GJYlT097jEkw)
I‘m not sure if it's an upstream problem, but when I tried it with rust-skia, it worked on both windows and linux.
To Reproduce
Code:
Expected behavior
The text with newlines is rendered properly on windows.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: