Scrawl-canvas v8
- Canvas test 017
Phrase entity - test lineHeight, letterSpacing and justify attributes
.setGlyphStyles() functionality
Line height
Letter spacing
Justify
left
center
right
full
Font family
sans-serif
serif
monospace
cursive
fantasy
system-ui
Font size
smaller
xx-small
x-small
small
medium
large
x-large
xx-large
larger
Font size (px)
Starts ('n%')
X:
Y:
Handles ('n%')
X:
Y:
Starts (n)
X:
Y:
Handles (n)
X:
Y:
Starts ('str')
X:
left
center
right
Y:
top
center
bottom
Handles ('str')
X:
left
center
right
Y:
top
center
bottom
Roll
Scale
Flip-upend
false
true
Flip-reverse
false
true
Overline
Width (n)
Test purpose
Create a Phrase entity
Display the Phrase entity on a canvas
Check that Phrase.setGlyphStyles() functionality works as expected
Check that Phrase justification functionality works as expected
Check that Phrase line height functionality works as expected
Check that Phrase letter spacing functionality works as expected