Canvas Nasal API: Difference between revisions

Jump to navigation Jump to search
Line 255: Line 255:
Sets how the text should be aligned with its position.
Sets how the text should be aligned with its position.


'''Examples of alignment:''' "left-top", "center-center", "right-bottom", "left-baseline", "center-bottom-baseline"
Full list:
 
* left-top
Possible bug: At least 1 person (me) have trouble with center- and right- alignments when not using a monospaced font (see {{issue|1054}}).
* left-center
* left-bottom
* center-top
* center-center
* center-bottom
* right-top
* right-center
* right-bottom
* left-baseline
* center-baseline
* right-baseline
* left-bottom-baseline
* center-bottom-baseline
* right-bottom-baseline


=== setFontSize ===
=== setFontSize ===

Navigation menu