|
Forum Index : Microcontroller and PC projects : FontTweak
| Author | Message | ||||
| PhenixRising Guru Joined: 07/11/2023 Location: United KingdomPosts: 1849 |
Just a quick Thank You Jim.This is soooo awesome I see what you mean about tidying up but you made it easy (a happy problem) |
||||
TassyJim![]() Guru Joined: 07/08/2011 Location: AustraliaPosts: 6508 |
Glad you found it useful VK7JH MMedit |
||||
Chopperp![]() Guru Joined: 03/01/2018 Location: AustraliaPosts: 1124 |
Yes a great program. When I last used FontTweak a number of years ago, I wanted some largeish numbers (0-9) for the smaller display on the F4. I had little success trying to get them to look good so I found the font I wanted from a drawing prog & printed the individual numbers out on A4 overhead transparency film. I then stuck them individually on the PC screen over the top of FontTweak & filled in the appropriate blanks. Worked well. (I used "6" for both 6 & 9) Brian ChopperP |
||||
| PhenixRising Guru Joined: 07/11/2023 Location: United KingdomPosts: 1849 |
So it's not just me who comes-up with wacky solutions However, I think that I would use layers in Paint.Net or GIMP ![]() Edit: might not work....I'll try it. Edited 2026-03-11 20:22 by PhenixRising |
||||
| phil99 Guru Joined: 11/02/2018 Location: AustraliaPosts: 3156 |
If the font you want is available in graphics type program scale the characters to the required size and save as BMP images. If the font is in a program that doesn't save an image use Print Screen then edit in a graphics program. Load the image into almost any version of MMBasic with a program to read the pixels and save to a DefineFont file, 4 pixels per Hex character. |
||||
| PhenixRising Guru Joined: 07/11/2023 Location: United KingdomPosts: 1849 |
Hi Phil, Do you mean; write a program or one that exists? |
||||
| phil99 Guru Joined: 11/02/2018 Location: AustraliaPosts: 3156 |
You will need to write it. The first 8-digit hex word is the characteristics of the font. The 4 bytes are:- Number of characters (95 for a full set, 10 for just numbers) Starting ASCII character number (32 for a full set, 48 for just numbers) Height (pixels, including space between lines) Width (pixels, including space between characters) The core FOR loop (there would be several nested for reading the lines of each character and for formatting the output file) could read the pixels and shift them into an integer (0 = 0, 1 = NOT 0). That would then be appended to a string as HEX$() characters. When the string reaches a suitable length it would be appended to the new file. Clear the string and repeat until done. Edit. See Embedded Fonts folder in firmware download. There is a program that converts UTFT fonts. Edited 2026-03-12 17:00 by phil99 |
||||
| PhenixRising Guru Joined: 07/11/2023 Location: United KingdomPosts: 1849 |
This is fun stuff |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2026 |