Get Unicode Text Extent

\i C ? U string::unicode_text

Parameter Type Range Description
unicode_text wstring Unicode chars (0x0001 .. 0xFFFF) unicode text to measure

Returns the extent of a unicode text string according to the current font.

Note

Response: [ACK] word::height word::width [ACK]

Parameter Type Range Description
height word 0 ... display width - 1 width of the text string
width word 0 ... display height - 1 height of the text string

Example

\iC?UHello 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.

Not supported by: DPC3020, DPC2060, DPC10xx

See also:

Write Unicode Text
Write Text
Get Text Extent
Get Text Message Extent