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

Extreme Large Font not working! #1423

Closed
anandrajgupta opened this issue Apr 12, 2022 · 6 comments
Closed

Extreme Large Font not working! #1423

anandrajgupta opened this issue Apr 12, 2022 · 6 comments

Comments

@anandrajgupta
Copy link

Hi, Thank you Mr. Henner Zeller...

I am using Raspberry Pi to Make a Large Display of LED Matrix that can has to be mounted at a very large viewing distance.
So, I am making larger fonts using the tool suggested by you: otf2bdf
The problem I am facing is that Small Fonts are being drawn but Larger Fonts (around 100 pixels high) are not!
There is some sort of Pixel limit per character, because in Larger fonts also few characters are being drawn and few are not, interesting to see that the character which occupies larger number of pixels are getting missed when drawing.

Any help will be highly appreciated!

@hzeller
Copy link
Owner

hzeller commented Apr 12, 2022

Yes, currently the width is at most 64 pixels (internally, each row is read into a 64 bit bitmap).

I might need to adapt that a bit to be able to deal with wider fonts. Can you share the BDF file you created ?

@anandrajgupta
Copy link
Author

anandrajgupta commented Apr 12, 2022

Ok, attaching the font below...
robotoBold_60.zip
The Characters that are missing in this font (robotoBold_60) are: '@', 'M', 'W', 'm', and 'w'
And when i try to use an even larger font of size 100 (robotoBold_100), then almost all characters are missing!
Attaching that also for your reference
robotoBold_100.zip

Thank you so much for such a Quick response, i really appreciate that.
Please provide support for wider Fonts also if possible...

@anandrajgupta
Copy link
Author

Please give me a hint how can i try to make it support wider fonts also...
Thanks!

@hzeller
Copy link
Owner

hzeller commented Apr 16, 2022

If you do a git pull now, it should be possible to show wider fonts.

@anandrajgupta
Copy link
Author

anandrajgupta commented Apr 16, 2022

wow thank you sir, i will check it, thank you so much you are awesome!

@anandrajgupta
Copy link
Author

anandrajgupta commented Apr 19, 2022

Tested it, working perfectly! Thank you very much!
Just one comment:--
I had to to change the line number 189
from y_pos = y_pos - g->height - g->y_offset;
to y_pos = y_pos;
because it was taking some negative offset in Y-Axis for the characters!

Thank you again...

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