use capitalize not title

main
Matthew Butterick 5 years ago
parent 6ccf2fe7e9
commit 52ca4c3411

@ -663,7 +663,7 @@ Vertical offset of font baseline (positive values move the baseline up, negative
}
@defthing[#:kind "attribute" font-case symbol?]{
Case transformation of string. Possibilities are @racket["upper"], @racket["lower"], or @racket["title"].
Case transformation of string. Possibilities are @racket["uppercase"], @racket["lowercase"], or @racket["capitalize"] (= first letter of each word is uppercase, the rest is lowercase).
}
@deftogether[(@defthing[#:kind "attribute" line-height symbol?]

@ -152,7 +152,7 @@
(define cased-str ((match (quad-ref q :font-case)
[(or "upper" "uppercase") string-upcase]
[(or "lower" "lowercase" "down" "downcase") string-downcase]
[(or "title" "titlecase") string-titlecase]
[(or "capitalize" "capitalized") string-titlecase]
[_ values]) (unsafe-car (quad-elems q))))
(struct-copy
string-quad q:string

Loading…
Cancel
Save