Author Topic: DP200 large font  (Read 11647 times)

Offline hproffitt

  • PLUS+1 Developer
  • ***
  • Posts: 28
  • Karma: +0/-0
DP200 large font
« 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?

Offline hproffitt

  • PLUS+1 Developer
  • ***
  • Posts: 28
  • Karma: +0/-0
Re: DP200 large font
« Reply #1 on: July 30, 2018, 10:02:14 PM »
Took this up with the helpdesk.  No known work-around, fyi.

Offline BRIan

  • PLUS+1 Expert
  • ****
  • Posts: 56
  • Karma: +3/-0
Re: DP200 large font
« Reply #2 on: August 01, 2018, 12:49:50 AM »
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

Offline hproffitt

  • PLUS+1 Developer
  • ***
  • Posts: 28
  • Karma: +0/-0
Re: DP200 large font
« Reply #3 on: August 01, 2018, 05:52:08 PM »
I had considered that, but for as small as this project is it really wouldn't be justified to develop.

Thanks for the suggestion!

Offline oiltronic

  • PLUS+1 Guru
  • *****
  • Posts: 170
  • Karma: +15/-0
Re: DP200 large font
« Reply #4 on: December 21, 2018, 04:32:35 AM »
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.