Skip to content

Commit 4ad178e

Browse files
committed
Adding comments about textlayout.TextAlign.*
1 parent 18adb2a commit 4ad178e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

shape_text.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
style.setFontSize(10.5)
8686
paraStyle = textlayout.ParagraphStyle()
8787
paraStyle.setTextStyle(style)
88+
# available alternatives to kRight are: kLeft, kRight, kCenter, kJustify, kStart, kEnd
8889
paraStyle.setTextAlign(textlayout.TextAlign.kRight)
8990

9091
# "unicode" is reserved in Python

0 commit comments

Comments
 (0)