Re: [racket-dev] racket/gui checkbox clips text

2013-12-16 Thread Richard Hopkins
Thanks for looking into this. It still happens here and I haven't managed
to narrow it down any more than my initial report. i.e. Windows, 5.3.6+ and
increased DPI.

I've also tried changing Windows font settings such as ClearType and the
Smooth edges of screen fonts option, but they don't solve the issue.

I'll keep investigating though and let you know if I find out any more.

Thanks



 From: Matthew Flatt mfl...@cs.utah.edu
To: Richard Hopkins richhguard-monot...@yahoo.co.uk 
Cc: dev@racket-lang.org dev@racket-lang.org 
Sent: Sunday, 15 December 2013, 15:22
Subject: Re: [racket-dev] racket/gui checkbox clips text
 

Thanks for the report! Unfortunately, I haven't been able to replicate
the problem on either Windows 7 machine that I tried.

Is there possibly some other configuration that's needed to provoke the
error, such as a font change?

At Tue, 10 Dec 2013 18:56:02 + (GMT), Richard Hopkins wrote:
 Using the DrRacket nightly build for 2013-12-09, checkboxes in the 
 Preferences 
 dialog have the text clipped.
 
 It appears as though there isn't enough space to fit the text on 1 line, so 
 it 
 renders 2 lines. However, the top of the 1st
 line and bottom of the 2nd line is rendered outside the client area for the 
 checkbox. This issue is not specific to DrRacket
 and can be reproduced using
 
 #lang racket/gui
 (define frame (new frame% [label Example]))
 
 (define check-box (new check-box%
    (parent frame)
    (label A check box with a really long label to see if 
 it still works and does not truncate any text.)
    (value #t)))
 
 (send frame show #t)
 
 I think all of the following must be true to reproduce the issue:
 
 * racket/gui later than 5.3.6;
 * run on Windows; and
 
 * have DPI set larger than the Windows default.
 
 Regarding the DPI issue, this can be changed via the 'Personalize' menu item 
 from the Desktop and selecting the Make text appear larger (125%) item for 
 example.
 A log off and on is required for the change to apply.
 
 Broken example:
 2013-12-09 nightly on Windows 7 with text set to 125%.
 
 Working examples:
 5.3.6 on Windows 7 with text set to 125%.
 2013-12-09 nightly on Windows 8 with text set to 100%
 5.3.6 on Linux with GTK and default DPI
 2013-12-09 nightly on Linux with GTK and default DPI
 
 Regards_
   Racket Developers list:
  http://lists.racket-lang.org/dev_
  Racket Developers list:
  http://lists.racket-lang.org/dev


Re: [racket-dev] racket/gui checkbox clips text

2013-12-15 Thread Matthew Flatt
Thanks for the report! Unfortunately, I haven't been able to replicate
the problem on either Windows 7 machine that I tried.

Is there possibly some other configuration that's needed to provoke the
error, such as a font change?

At Tue, 10 Dec 2013 18:56:02 + (GMT), Richard Hopkins wrote:
 Using the DrRacket nightly build for 2013-12-09, checkboxes in the 
 Preferences 
 dialog have the text clipped.
 
 It appears as though there isn't enough space to fit the text on 1 line, so 
 it 
 renders 2 lines. However, the top of the 1st
 line and bottom of the 2nd line is rendered outside the client area for the 
 checkbox. This issue is not specific to DrRacket
 and can be reproduced using
 
 #lang racket/gui
 (define frame (new frame% [label Example]))
 
 (define check-box (new check-box%
    (parent frame)
    (label A check box with a really long label to see if 
 it still works and does not truncate any text.)
    (value #t)))
 
 (send frame show #t)
 
 I think all of the following must be true to reproduce the issue:
 
 * racket/gui later than 5.3.6;
 * run on Windows; and
 
 * have DPI set larger than the Windows default.
 
 Regarding the DPI issue, this can be changed via the 'Personalize' menu item 
 from the Desktop and selecting the Make text appear larger (125%) item for 
 example.
 A log off and on is required for the change to apply.
 
 Broken example:
 2013-12-09 nightly on Windows 7 with text set to 125%.
 
 Working examples:
 5.3.6 on Windows 7 with text set to 125%.
 2013-12-09 nightly on Windows 8 with text set to 100%
 5.3.6 on Linux with GTK and default DPI
 2013-12-09 nightly on Linux with GTK and default DPI
 
 Regards_
   Racket Developers list:
   http://lists.racket-lang.org/dev

_
  Racket Developers list:
  http://lists.racket-lang.org/dev


[racket-dev] racket/gui checkbox clips text

2013-12-10 Thread Richard Hopkins
Using the DrRacket nightly build for 2013-12-09, checkboxes in the Preferences 
dialog have the text clipped.

It appears as though there isn't enough space to fit the text on 1 line, so it 
renders 2 lines. However, the top of the 1st
line and bottom of the 2nd line is rendered outside the client area for the 
checkbox. This issue is not specific to DrRacket
and can be reproduced using

#lang racket/gui
(define frame (new frame% [label Example]))

(define check-box (new check-box%
   (parent frame)
   (label A check box with a really long label to see if 
it still works and does not truncate any text.)
   (value #t)))

(send frame show #t)

I think all of the following must be true to reproduce the issue:

* racket/gui later than 5.3.6;
* run on Windows; and

* have DPI set larger than the Windows default.

Regarding the DPI issue, this can be changed via the 'Personalize' menu item 
from the Desktop and selecting the Make text appear larger (125%) item for 
example.
A log off and on is required for the change to apply.

Broken example:
2013-12-09 nightly on Windows 7 with text set to 125%.

Working examples:
5.3.6 on Windows 7 with text set to 125%.
2013-12-09 nightly on Windows 8 with text set to 100%
5.3.6 on Linux with GTK and default DPI
2013-12-09 nightly on Linux with GTK and default DPI

Regards_
  Racket Developers list:
  http://lists.racket-lang.org/dev