Go Down

Topic: Font size options using UTFT library (Read 3970 times) previous topic - next topic

dilbert9

I am currently working on a project in which I will be using the 128x128 display from NKCelectronics. I am using the UTFT library to control it. I am in need of a very large font that will take up a large portion of the screen (to show current MPH). The only font options I have seen are SmallFont and BigFont neither of which will do what I am looking for. Is there a way to make my own font or utilize a much larger font? I have been scouring Google for options and could not find any (maybe I am not looking in the right places?).

I hope someone else has been down this road and can give be some guidance.

Thanks in advance.

Nick Gammon

A simple approach might be to find a font you like, render all 10 digits (0 to 9) as small bitmapped files, and write a little utility to read those files in and convert them into a bitmap ... that is a C table ... (one per digit) which you simply display in the correct order.
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

dilbert9

That's not a bad idea Nick. Do you think this is something that can display quickly and change quickly? I plan to update the speed shown pretty rapidly (maybe twice per second?). I will start testing with this now.

Nick Gammon

Maybe. Say you have a font of 32 x 32 pixels. That would be 1024 pixels, which would take 128 bytes each if it was monochrome. Sending 3 x 128 bytes might involve a bit of flicker, especially if it is colour. A bit depends on whether the display itself imposes delays, some do.
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

doc_norway


Is there a way to make my own font or utilize a much larger font?


How about taking a quick look at my website?
There are some ready-made fonts up to 64x100 pixels here: http://www.henningkarlsen.com/electronics/r_fonts.php
You can make your own fonts here: http://www.henningkarlsen.com/electronics/t_make_font_file.php

/Henning

Go Up