From 6e8c3e072bd582cfa8758851c2e5ca96589a7eed Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Fri, 17 Feb 2012 10:33:19 -0700 Subject: [PATCH] racket/draw: change font face name interpretation again Treat a "face" as a font description only if it has a comma, otherwise go back to treating it as a family name. This change fixes the problem of parsing "Times New Roman" as "Times New, Roman". original commit: 530b35379830819f7de46c80dc9f9691a17fcc7b --- collects/tests/gracket/dc.rktl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/collects/tests/gracket/dc.rktl b/collects/tests/gracket/dc.rktl index 849f6936..801350d6 100644 --- a/collects/tests/gracket/dc.rktl +++ b/collects/tests/gracket/dc.rktl @@ -502,4 +502,9 @@ ;; ---------------------------------------- +(test #f 'no-commas (ormap (lambda (s) (regexp-match? #rx"," s)) (get-face-list))) +(test #t 'all-commas (andmap (lambda (s) (regexp-match? #rx"," s)) (get-face-list #:all-variants? #t))) + +;; ---------------------------------------- + (report-errs)