const
cAsia = #$9019#$662F#$6A23#$54C1#$4E2D#$570B#$6587#$672C#$70BA#$6E2C#$8A66#$5716#$66F8#$9928#$3002;
procedure TMainForm.Init_TextSuite;
begin
tsInit(...)
tsSetParameteri(TS_RENDERER, TS_RENDERER_OPENGL);
tsSetParameteri(TS_RENDERER_OPENGL_TEXTURE_SIZE, TS_RENDERER_OPENGL_TEXTURE_SIZE_512);
tsSetParameteri(TS_CREATOR, TS_CREATOR_GDI_FACENAME);
tsFontCreateCreator('
Arial Unicode MS', 52, TS_STYLE_NORMAL, TS_DEFAULT, TS_DEFAULT, @fFont1ID);
tsPostAddFillColor3ub(233, 118, 33, TS_CHANNELS_RGB);
tsPostAddBorder3f(2.4, 1, 1, 1, 1);
tsPostAddShadow4f(0, 3, 3, 0, 0, 0, 0.5);
tsFontCreateCreator('
Bitstream Cyberbit', 52, TS_STYLE_NORMAL, TS_DEFAULT, TS_DEFAULT, @fFont2ID);
tsPostAddFillColor3ub(233, 118, 33, TS_CHANNELS_RGB);
tsPostAddShadow4f(0, -1, -1, 1, 1, 1, 1);
tsPostAddShadow4f(0, 1, 1, 0, 0, 0, 1);
tsPostAddBorder4f(1.8, 1, 0, 0, 0, 0.4);
begin
procedure TMainForm.FormPaint(Sender: TObject);
begin
// clear screen and depth buffer
glClear(GL_COLOR_BUFFER_BIT);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity;
glTranslatef(0, 0, -10);
// set align to center
tsSetParameteri(TS_ALIGN, TS_ALIGN_CENTER);
glPushMatrix;
glTranslatef(ClientWidth
div 2, 90, 0);
tsFontBind(fFont1ID);
tsTextOutW(cAsia);
glPopMatrix;
glPushMatrix;
glTranslatef(ClientWidth
div 2, 180, 0);
tsFontBind(fFont2ID);
tsTextOutW(cAsia);
glPopMatrix;
// Check for Errors
CheckError;
SwapBuffers(fDC);
end;