File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -177,13 +177,23 @@ def text_(
177
177
)
178
178
):
179
179
kwargs .update ({"F" : "" })
180
- if angle is not None and isinstance (angle , (int , float , str )):
180
+
181
+ if angle is True :
182
+ kwargs ["F" ] += "+a"
183
+ elif isinstance (angle , (int , float , str )):
181
184
kwargs ["F" ] += f"+a{ str (angle )} "
182
- if font is not None and isinstance (font , str ):
185
+
186
+ if font is True :
187
+ kwargs ["F" ] += "+f"
188
+ elif isinstance (font , str ):
183
189
kwargs ["F" ] += f"+f{ font } "
184
- if justify is not None and isinstance (justify , str ):
190
+
191
+ if justify is True :
192
+ kwargs ["F" ] += "+j"
193
+ elif isinstance (justify , str ):
185
194
kwargs ["F" ] += f"+j{ justify } "
186
- if position is not None and isinstance (position , str ):
195
+
196
+ if isinstance (position , str ):
187
197
kwargs ["F" ] += f'+c{ position } +t"{ text } "'
188
198
189
199
extra_arrays = []
You can’t perform that action at this time.
0 commit comments