Main Page | Data Structures | File List | Globals

include/libppr_font.h

00001 /*
00002 ** mouse:~ppr/src/include/libppr_font.h
00003 ** Copyright 1995--1999, Trinity College Computing Center.
00004 ** Written by David Chappell.
00005 **
00006 ** Permission to use, copy, modify, and distribute this software and its
00007 ** documentation for any purpose and without fee is hereby granted, provided
00008 ** that the above copyright notice appear in all copies and that both that
00009 ** copyright notice and this permission notice appear in supporting
00010 ** documentation.  This software and documentation are provided "as is"
00011 ** without express or implied warranty.
00012 **
00013 ** Last modified 19 July 1999.
00014 */
00015 
00016 struct ENCODING_INFO {
00017         const char *charset;
00018         const char *encoding;
00019         gu_boolean encoding_ascii_compatible;
00020         char line[256];
00021         } ;
00022 
00023 int charset_to_encoding(const char charset[], struct ENCODING_INFO *encinfo);
00024 
00025 struct FONT_INFO
00026         {
00027         char *font_family;
00028         char *font_weight;
00029         char *font_slant;
00030         char *font_width;
00031         char *font_psname;                      /* font's PostScript name */
00032         char *font_encoding;            /* font's default encoding */
00033         char *font_type;                        /* font format type name */
00034 
00035         char *ascii_subst_font;         /* use instead for ASCII only */
00036 
00037         char line[256];                         /* storage space for strings */
00038         };
00039 
00040 int encoding_to_font(const char encoding[], const char fontfamily[], const char fontweight[], const char fontslant[], const char fontwidth[], struct FONT_INFO *fontinfo);
00041 struct FONT_INFO *font_info_new(void);
00042 void font_info_delete(struct FONT_INFO *p);
00043 
00044 /* end of file */
00045 

Generated on Fri Feb 20 15:17:47 2004 for PPR Libraries by doxygen 1.3.5