From 312410eaf3550003041a7c9bd799c4883424bdf6 Mon Sep 17 00:00:00 2001 From: Robby Findler Date: Sat, 23 Nov 2013 11:29:00 -0600 Subject: [PATCH] clarify text sizes --- .../htdp-doc/teachpack/2htdp/scribblings/image.scrbl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/htdp-pkgs/htdp-doc/teachpack/2htdp/scribblings/image.scrbl b/pkgs/htdp-pkgs/htdp-doc/teachpack/2htdp/scribblings/image.scrbl index 04028d5f9d..34779a4ad4 100644 --- a/pkgs/htdp-pkgs/htdp-doc/teachpack/2htdp/scribblings/image.scrbl +++ b/pkgs/htdp-pkgs/htdp-doc/teachpack/2htdp/scribblings/image.scrbl @@ -191,6 +191,12 @@ Unlike @racket[scene+curve], if the line passes outside of @racket[image], the i @image-examples[(text "Hello" 24 "olive") (text "Goodbye" 36 "indigo")] + + The text size is measured in pixels, not points, so passing @racket[24] + to @racket[text] should result in an image whose height is @racket[24] + (which might not be the case if the size were measured in points). + @image-examples[(image-height (text "Hello" 24 "olive"))] + } @defproc[(text/font [string string?] [font-size (and/c integer? (<=/c 1 255))] [color image-color?]