bdbcat / oesenc_pi

GNU General Public License v2.0
10 stars 17 forks source link

wxWidgets point size portability #78

Closed bdbcat closed 4 years ago

bdbcat commented 4 years ago

Hello all... Working on high definition depth sounding fonts. Fun to have a real new feature to dig into.

Question: On computer screens, font sizes in points are somewhat meaningless. It is a carryover from the print industry, and the conversion from points to pixels is not done well on most widgets libraries. When rendering soundings, I want to start by following the OHO S52 standards. This says that a depth sounding character should be 2.50 mm in height. So, here is my request: I need everyone (with the time) to load some ENCs, turn on text, and adjust the ChartObject font size to yield characters that are 2.5 mm high. I use a caliper to measure on-screen sizes. Please report:

  1. Font point size required to yield 2.5 mm.
  2. Screen size, max horizontal in mm.
  3. Screen resolution.
  4. Host OS (linx, win, etc..)

From this I hope to discover the wxWidgets algorithm for converting from points to pixels. It will vary depending on underlying libraries (gtk vs Win10). And, of course, if you run something like a headless rPi over a VNC connection, the information will be of not much direct use.

Thanks for your help Dave

bdbcat commented 4 years ago

And for inspiration, I show a functioning prototype of TrueType depth soundings on OpenGL. New on the left, old on the right. dsound1

bdbcat commented 4 years ago

Oops, posted to wrong project. Closing