Text Attributes
- Last UpdatedJan 07, 2026
- 2 minute read
This section describes text attributes functions.
|
text_height_set(Height) |
||
|
The function sets the modal text height. |
||
|
Input Parameters: |
||
|
Height |
real |
The text height (> 0.0) |
|
Returned value: |
||
|
None |
||
|
Exceptions: |
||
|
kcs_ValueError |
Invalid parameter value |
|
|
text_height_get() |
||
|
The function gets the modal text height. |
||
|
Input Parameters: |
||
|
None |
||
|
Returned value: |
||
|
[0] |
real |
The text height |
|
Exceptions: |
||
|
None |
||
|
text_rotation_set(Rot) |
||
|
The function sets the modal text rotation angle. |
||
|
Input Parameters: |
||
|
Rot |
real |
The text rotation angle, in degrees. |
|
Returned value: |
||
|
None |
||
|
Exceptions: |
||
|
None |
||
|
text_rotation_get() |
||
|
The function gets the modal text rotation angle. |
||
|
Input Parameters: |
||
|
None |
||
|
Returned value: |
||
|
[0] |
real |
The text rotation angle, in degrees |
|
Exceptions: |
||
|
None |
||
|
text_aspect_set(Aspect) |
||
|
The function sets the modal text aspect, that means, the width/height ratio. |
||
|
Input Parameters: |
||
|
Aspect |
real |
The text aspect. A negative value means proportional text. |
|
Returned value: |
||
|
None |
||
|
Exceptions: |
||
|
None |
||
|
text_aspect_get() |
||
|
The function gets the modal text aspect. |
||
|
Input Parameters: |
||
|
None |
||
|
Returned value: |
||
|
[0] |
real |
The text aspect |
|
Exceptions: |
||
|
None |
||
|
text_slant_set(Slant) |
||
|
The function sets the modal text slanting angle |
||
|
Input Parameters: |
||
|
Slant |
real |
The text slanting angle, in degrees (90 means standard slant). |
|
Returned value: |
||
|
None |
||
|
Exceptions: |
||
|
None |
||
|
text_slant_get() |
||
|
The function gets the modal text slanting angle. |
||
|
Input Parameters: |
||
|
None |
||
|
Returned value: |
||
|
[0] |
real |
The text slanting angle, in degrees |
|
Exceptions: |
||
|
None |
||
|
text_ascii_font_set(Font) |
||
|
The function sets the modal ASCII text font. |
||
|
Input Parameters: |
||
|
Font |
integer |
The ASCII text font. |
|
Valid fonts are: 0-7 (system fonts) 8-99 (user-defined fonts) 101,105 (ISO8859 fonts) |
||
|
Returned value: |
||
|
None |
||
|
Exceptions: |
||
|
kcs_ValueError |
Invalid parameter value |
|
|
text_ascii_font_get() |
||
|
The function gets the modal ASCII text font. |
||
|
Input Parameters: |
||
|
None |
||
|
Returned value: |
||
|
[0] |
integer |
The ASCII text font |
|
Exceptions: |
||
|
None |
||
|
text_vector_font_set(Vfont) |
||
|
The function sets the modal text vector (multi-byte) font, for example, Japanese. Note: The validity of given font is not checked here. |
||
|
Input Parameters: |
||
|
Vfont |
integer |
The text vector font |
|
Returned value: |
||
|
None |
||
|
Exceptions: |
||
|
None |
||
|
text_vector_font_get() |
||
|
The function gets the modal text vector font. |
||
|
Input Parameters: |
||
|
None |
||
|
Returned value: |
||
|
[0] |
integer |
The text vector font |
|
Exceptions: |
||
|
None |
||
|
text_ilsp_set(Ilsp) |
||
|
The function sets the modal text interline space factor, used for multiple line texts. The distance between two text lines will then be Interline space factor * text height. Note: A negative value means "negative" growth direction. |
||
|
Input Parameters: |
||
|
Ilsp |
real |
The text interline space factor |
|
Returned value: |
||
|
None |
||
|
Exceptions: |
||
|
None |
||
|
text_ilsp_get() |
||
|
The function gets the modal text interline space factor. |
||
|
Input Parameters: |
||
|
None |
||
|
Returned value: |
||
|
[0] |
real |
The text interline space factor |
|
Exceptions: |
||
|
None |
||
|
Example: |
||
|
# Example: kcs_ex_draft5.py |
||