7.7
11 Text
Link to this section with
@secref["Text" #:doc '(lib "simple-svg/scribble/simple-svg.scrbl")]
Link to this section with
@secref["Text" #:doc '(lib "simple-svg/scribble/simple-svg.scrbl")]
(svg-def-text | | text | | | | | | [ | #:font-size? font-size? | | | | | | | #:font-family? font-family? | | | | | | | #:dx? dx? | | | | | | | #:dy? dy? | | | | | | | #:rotate? rotate? | | | | | | | #:textLength? textLength? | | | | | | | #:kerning? kerning? | | | | | | | #:letter-space? letter-space? | | | | | | | #:word-space? word-space? | | | | | | | #:text-decoration? text-decoration? | | | | | | | #:path? path? | | | | | | | #:path-startOffset? path-startOffset?]) | | → | | string? |
|
text : string? |
font-size? : (or/c #f natural?) = #f |
font-family? : (or/c #f string?) = #f |
dx? : (or/c #f integer?) = #f |
dy? : (or/c #f integer?) = #f |
rotate? : (or/c #f (listof integer?)) = #f |
textLength? : (or/c #f natural?) = #f |
kerning? : (or/c #f natural? 'auto 'inherit) = #f |
letter-space? : (or/c #f natural? 'normal 'inherit) = #f |
word-space? : (or/c #f natural? 'normal 'inherit) = #f |
| text-decoration? | | : | | (or/c #f 'overline 'underline 'line-through) | | | | = | | #f |
|
path? : (or/c #f string?) = #f |
path-startOffset? : (or/c #f (integer-in 0 100)) = #f |
dx, dy: relative position.
kerning, letter-space, word-space: all about letter and word spaces.
rotate: a list of rotate angles, it represent each letter’s rotate, only one means each letter have same angle.
let text follow a path: