diff options
Diffstat (limited to 'Build/source/libs/t1lib/t1lib-5.1.2/examples/t1example1.c')
-rw-r--r-- | Build/source/libs/t1lib/t1lib-5.1.2/examples/t1example1.c | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/Build/source/libs/t1lib/t1lib-5.1.2/examples/t1example1.c b/Build/source/libs/t1lib/t1lib-5.1.2/examples/t1example1.c deleted file mode 100644 index 66c44afa144..00000000000 --- a/Build/source/libs/t1lib/t1lib-5.1.2/examples/t1example1.c +++ /dev/null @@ -1,47 +0,0 @@ -#include <stdio.h> -#include <stdlib.h> -#include <t1lib.h> /* All needed declarations */ - -#ifdef VMS -# define LOCAL_CONFIG "t1libvms.config" -#else -# define LOCAL_CONFIG "./t1lib.config" -#endif -int main( void) -{ - - GLYPH *glyph; - int i; - char * my_config = malloc(25); - - sprintf(my_config, "T1LIB_CONFIG=%s",LOCAL_CONFIG); - - /* Set our environment to an existent config file directory */ - putenv( my_config); - - /* Pad bitmaps to 16 bits, the default being 8 bits */ - T1_SetBitmapPad( 16); - - /* Initialize t1lib and return if error occurs. No logfile will be - generated */ - if ((T1_InitLib(NO_LOGFILE)==NULL)){ - fprintf(stderr, "Initialization of t1lib failed\n"); - return(-1); - } - - /* For every font in the database, generate a glyph for the string - "Test" at 25 bp. Use Kerning. Then dump an ASCII representation - of the glyph to stdout */ - for( i=0; i<T1_GetNoFonts(); i++){ - printf("FontID=%d, Font=%s\n", i, T1_GetFontFilePath(i)); - printf("FontID=%d, Metrics=%s\n", i, T1_GetAfmFilePath(i)); - glyph=T1_SetString( i, "Test", 0, 0, T1_KERNING, 25.0, NULL); - T1_DumpGlyph( glyph); - } - - /* Close library and free all data */ - T1_CloseLib(); - - return( 0); - -} |