4.5. tsFontDeleteChar

Syntax

Pascal

procedure tsFontDeleteCharRange(CharStart: WideChar;
  CharEnd: WideChar);

procedure tsFontDeleteChars(Chars: pWideChar);

procedure tsFontDeleteChar(Char: WideChar);

C/C++

void tsFontDeleteCharRange(WideChar CharStart,
  WideChar CharEnd);

void tsFontDeleteChars(WideChar * Chars);

void tsFontDeleteChar(WideChar Char);

Description

With these functions you can delete some chars from an font.

Params

CharStart

If you wants to delete an range of chars this is the first char that will be deleted.

CharEnd

If you wants to delete an range of chars this is the last char that will be deleted.

Chars

This param contains the pointer of an null terminated string with chars that will be added to the font. Existing chars wont be created multiple.

Char

This is an charcode from an singe char that will be deleted.

Error Codes

TS_NO_ACTIVE_CONTEXT

There is no active context. See also tsContextBind.

TS_NO_ACTIVE_FONT

There was no font bound to the actual context. See also tsFontBind.

TS_INVALID_OPERATION

This error will happen if you try to delete some chars with an font which hasn't the ability to delete chars. So it's not an creator.

TS_INVALID_VALUE

This error occours if you pass nil / NULL as chars parameter.