back TypeServer QuickTour next
Step 1 - Create a TypeServer

Creating a TypeServer instance is very simple.  Declare a TypeServer handle, and then pass a pointer to it to the tsServer_Create() function.  Upon return, the instance handle will contain a server identifier that you can use when calling other TypeServer funtions.

  
    TSSERVER  myServer=NULL;    /* a TypeServer instance handle */
    
    /* create a TypeServer instance */
    tsServer_Create( &myServer );
    if ( myServer == NULL )
        { /* perform error handling */ }

Typically a single application needs to only create and use a single TypeServer instance.  A single TypeServer can render multiple different TrueType fonts, in numerous sizes, to different bitmaps at varying resolutions.  For example, a single TypeServer could scale and render multiple TrueType fonts for both a display bitmap at one resolution, and a printer bitmap at a different resolution.

In operating system uses, a separate server might be created for each independent task.  Since TypeServer contains no static variables, each server instance maintains its own state information.  Using this design, a single TypeServer DLL is reenterant and can support multiple server instances in a thread safe environment.

TypeServer objects

next»


Home | Products | Order | Register | Support | Company | Contact | Feedback

Copyright © 1999-2001 - Metagraphics Software Corporation.