PLUS+1 User Forum
PLUS+1 Software => Displays => Topic started by: hproffitt on July 19, 2018, 09:47:09 PM
-
Creating a very simple display program for a DP200, so older screen editor, and would like the font to be quite large. The display is only to show 2-3 digits. Whenever I try to install a font any larger than a 36 size I receive the following error, "Font file size exceeds 65535 bytes. Please try with smaller font size."
Is there any way to accomplish this that I am not remembering?
-
Took this up with the helpdesk. No known work-around, fyi.
-
I've done this by creating graphics for the numbers 0 - 9, then using some logic turn the right ones on to represent the number required. I had 4 digits with dp ie 999.9
-
I had considered that, but for as small as this project is it really wouldn't be justified to develop.
Thanks for the suggestion!
-
I use the same solution as BRIan. It's actually really easy.
- Type large numbers in any image editor (even MS Paint) and save as images, one at a time, closely cropped.
- Add images to screen editor
- Create an image list, in sequence, so the index value matches the image number.
- Duplicate the list for each digit.
- Back in the main application, split the value to be displayed into "ones", "tens", etc.
- Connect split values to the image lists. Done.
Other details like blanking out unused leading digits (enable list with flags like "enable_tens" when "tens">0), negative sign, and decimal points are easy enough to figure out.