Pascal
procedure tsCharOutW(CharCode: WideChar);
C/C++
void tsCharOutW(WideChar CharCode);
This function simple draws an single char. You can use this to print text by yourself. In combination with this function you may need the function tsFontGetCharParameter to query some informations of the chars. Like advance, baseline, glyph position or something else.
|
Note |
|---|---|
|
Notice. If you print text by yourself it's highly possible that it will be slower than if you are using functions like tsTextOut. |
|
This is charcode of the char you want to draw.
There is no active context. See also tsContextBind.
There was no renderer set. See the parameter TS_RENDERER.
There was no font bound to the actual context. See also tsFontBind.
It isn't possible to call this function inside the blockmode. You only cann call it outside.
You have passed an charcode from an not existing char to this function. Before you are able to draw char you must create it with tsFontAddChar.