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
enhancement for drawString - add a font size multiplier #978
Comments
Have you used I'd try using that first and see how it goes? |
Ups - have not stated that clear - Yes on Espruino I use the setFontVector - sure what else ;-) Just a thought ..... I will do some testing and come back with results or close this issue. |
The actual draw code is here: https://github.com/espruino/Espruino/blob/master/libs/graphics/jswrap_graphics.c#L625 There are 3 different paths though:
The easiest option would be to add a way to set custom fonts with a scale factor - I'm not sure how much use that would be. Maybe the most useful enhancement would be to add a scaling option to |
Is it fine to close this now? With the 4MB build you'll be able to include vector fonts, so will be able to resize properly |
Yes I close |
Normally I use the vectorfont to draw large strings on oleds.
Using oled-i2c-bus on beaglebone brings a nice feature that allows a font size multiplier as parameter for writeString
This is how it is done Oled.prototype._drawChar - not sure how complex this will be - but like to try.
Benefit: use one fixed font in multiple size like 1:4x6, 2:8x12, 3:12x18 ......
Thought this could be a smart enhancement to have.
@gfwilliams What do you think ?
The text was updated successfully, but these errors were encountered: