racket/draw cocoa: adjust default 'script font

Also, adjust the way a font is converted for control labels to
strp away Pango descriptions.
This commit is contained in:
Matthew Flatt 2012-04-25 18:48:26 -06:00
parent 2d2f013465
commit 418a3cd83b
2 changed files with 3 additions and 2 deletions

View File

@ -26,7 +26,8 @@
find-family-default-font-id
(send f get-family))
weight
style))])
style))]
[name (regexp-replace #rx",.*" name "")])
(atomically
(with-autorelease
(let ([f (tell NSFont

View File

@ -60,7 +60,7 @@
[(windows) "Arial"]
[else "Helvetica"])]
[(script) (case (system-type)
[(macosx) "Apple Chancery"]
[(macosx) "Apple Chancery, Italic"]
[else "Chancery"])]
[(symbol) "Symbol"]
[else (case (system-type)