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

borad coordinates can't be seen on linux #11

Open
udvarid opened this issue May 17, 2024 · 4 comments
Open

borad coordinates can't be seen on linux #11

udvarid opened this issue May 17, 2024 · 4 comments

Comments

@udvarid
Copy link

udvarid commented May 17, 2024

I can't find why but when I use this with windows os, the coordinates at the PNG file can be seen.
When I use the same code in a linux machine, there are no any coordinates..

I'm not sure how could be this fixed..

@cjsaylor
Copy link
Owner

@udvarid Can you leave a code snippet to illustrate the issue?

@udvarid
Copy link
Author

udvarid commented May 29, 2024

at the 'drawRankFile' function a font is used (airal.ttf) which is not installed by default at linux system, that was the problem.

@cjsaylor
Copy link
Owner

cjsaylor commented May 29, 2024

@udvarid Thanks for finding that. Do you know a good fallback font to use on linux? The way the function is currently used is swallowing errors. Maybe an alternative would be to allow for a font to be configured via the Options object that gets passed in.

@udvarid
Copy link
Author

udvarid commented May 29, 2024

Yes, it seems to be a good solution.
Currently I copied that ttf file to my project so your library can find it, but it is just a workaround.
At least some log messages should be written if no font file can be found

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

2 participants