\i C ? T string::text
Parameter | Type | Range | Description |
---|---|---|---|
text | string | ASCII chars (0x01 .. 0xFF) | text string to measure |
Returns the extent of a text string when drawn with the current font.
Note
Response: | [ACK] word::height word::width [ACK] |
Parameter | Type | Range | Description |
---|---|---|---|
height | word | 0 ... display width - 1 | height of the text string |
width | word | 0 ... display height - 1 | width of the text string |
Note
Example
\iC?THello World!\0
Response Example
[ACK][00][51][00][10][ACK]
This response means that the text "Hello World!" will occupy a space of width = 81 (0x51) pixels, and height = 16 (0x10) pixels with the selected font.
Note
See also:
Copyright © demmel products gmbh. All rights reserved.