default arg for character tracking

main
Matthew Butterick 4 years ago
parent abce94fbd4
commit cd3b784bd0

@ -98,7 +98,7 @@ https://github.com/mbutterick/pdfkit/blob/master/lib/mixins/text.coffee
#:features [features (pdf-current-font-features doc)]
#:fill [fill? #t]
#:stroke [stroke? #f]
#:tracking [character-tracking 0]
#:tracking [character-tracking-arg #f]
#:underline [underline? #f]
#:link [link-url #f]
#:strike [strike? #f]
@ -110,6 +110,7 @@ https://github.com/mbutterick/pdfkit/blob/master/lib/mixins/text.coffee
;; 180109: character spacing works in pdf, but quad doesn't account for it yet
(define character-tracking (or character-tracking-arg 0))
;; calculate the actual rendered width of the string after word and character spacing
(define rendered-width
;; wrap this in delay so it's only calculated if needed

Loading…
Cancel
Save