racket / drracket

DrRacket, IDE for Racket
http://www.racket-lang.org/
Other
454 stars 93 forks source link

Most text fields can't fully show unicode characters #397

Open sorawee opened 4 years ago

sorawee commented 4 years ago

Inputting คุณครู to most text fields in DrRacket would show only about top 70% of the text.

Screen Shot 2020-07-13 at 09 07 19

The text field in find and replace is slightly better, but it still doesn't fully show the text:

Screen Shot 2020-07-13 at 09 11 04

Here's how Chrome's text field displays this text:

Screen Shot 2020-07-13 at 09 07 52
rfindler commented 4 years ago

Here's some racket/gui code showing the same thing. Probably any fix there will be inherited here.

#lang racket/gui
(define f (new frame% [label ""] [width 200] [height 100]))
(define tf (new text-field% [parent f] [label #f]
                [init-value " คุณครู"]))
(send f show #t)