Menu

#165 wxwidgets device: text too small

None
closed-works-for-me
None
5
2015-08-21
2015-08-11
No

The size of text needs to be scaled upward by roughly a factor of two. Compare example 2.2 for most any other device compared to -dev wxwidgets.

Discussion

  • Alan W. Irwin

    Alan W. Irwin - 2015-08-11
    • summary: wxwidget device: text too small --> wxwidgets device: text too small
    • Group: -->
     
  • Phil Rosenberg

    Phil Rosenberg - 2015-08-21

    I have just checked Example 2 on Windows for a plot which is 538 pixels high by 744 pixels wide. I am using an assumed DPI of 90, which means this page is approximately A5 landscape.

    The driver gets passed pls->chrht of 6.33 mm. Using the assumed 90 dpi this should give text of 22.4 pixels. For Arial, the descender is approximately 19% of the total font size (see https://msdn.microsoft.com/en-us/library/xwf9s90b(v=vs.110).aspx) so we expect the ascender to be 18.1 pixels. The actual height from baseline to character top may be slightly less to give space for accents - see e.g. (https://msdn.microsoft.com/en-gb/library/windows/desktop/ff684173(v=vs.85).aspx).

    The digit '1' in the example is 17 pixels high. This is as I would expect and therefore I am closing this bug as the driver is behaving as designed.

     
  • Phil Rosenberg

    Phil Rosenberg - 2015-08-21
    • status: open --> closed-works-for-me
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.