Main Page   Modules   Alphabetical List   Compound List   File List   Compound Members   File Members  

xfont.h

Go to the documentation of this file.
00001 /*  $Id: xfont.h,v 1.2 2000/12/06 18:42:30 dbryson Exp $
00002 **
00003 **  Copyright (c) 2000 Derry Bryson <derry@techass.com>
00004 **
00005 **  Description:
00006 **  
00007 **    Postscript Library
00008 **
00009 **
00010 **  License:
00011 **
00012 **    This library is free software; you can redistribute it and/or
00013 **    modify it under the terms of the GNU Lesser General Public
00014 **    License as published by the Free Software Foundation; either
00015 **    version 2.1 of the License, or (at your option) any later version.
00016 **
00017 **    This library is distributed in the hope that it will be useful,
00018 **    but WITHOUT ANY WARRANTY; without even the implied warranty of
00019 **    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00020 **    Lesser General Public License for more details.
00021 **
00022 **    You should have received a copy of the GNU Lesser General Public
00023 **    License along with this library; if not, write to the Free Software
00024 **    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00025 **
00026 **
00027 **  Contact:
00028 **
00029 **      Mail:
00030 **
00031 **        Technology Associates, Inc.
00032 **        LIBPS Project
00033 **        1455 Deming Way #11
00034 **        Sparks, NV  89431
00035 **        USA
00036 **
00037 **      Email:
00038 **
00039 **        libps@techass.com
00040 **
00041 **      See our website at:
00042 **
00043 **        libps.sourceforge.net
00044 **
00045 */
00046 
00051 #ifndef INCLUDE_XFONT
00052 #define INCLUDE_XFONT
00053 
00054 #ifdef __cplusplus
00055 extern "C" {
00056 #endif
00057 
00058 /******************************************************************************
00059 ****  DEFINES  ****************************************************************
00060 ******************************************************************************/
00061 
00062 #define PS_XFONT_WILDCARD                       -1
00063 
00064 #define PS_XFONT_WEIGHT_UNKNOWN                 0
00065 #define PS_XFONT_WEIGHT_MEDIUM                  1
00066 #define PS_XFONT_WEIGHT_BOLD                    2
00067 #define PS_XFONT_WEIGHT_BLACK                   3
00068 #define PS_XFONT_WEIGHT_EXTRABOLD               4
00069 #define PS_XFONT_WEIGHT_DEMIBOLD                5
00070 #define PS_XFONT_WEIGHT_ULTRABOLD               6
00071 #define PS_XFONT_WEIGHT_LIGHT                   7
00072 #define PS_XFONT_WEIGHT_THIN                    8
00073 
00074 #define PS_XFONT_SLANT_UNKNOWN                  0
00075 #define PS_XFONT_SLANT_ROMAN                    1
00076 #define PS_XFONT_SLANT_ITALIC                   2
00077 #define PS_XFONT_SLANT_OBLIQUE                  3
00078 
00079 #define PS_XFONT_WIDTH_UNKNOWN                  0
00080 #define PS_XFONT_WIDTH_NORMAL                   1
00081 #define PS_XFONT_WIDTH_CONDENSED                2
00082 #define PS_XFONT_WIDTH_NARROW                   3
00083 #define PS_XFONT_WIDTH_DOUBLE                   4
00084 
00085 #define PS_XFONT_SPACING_UNKNOWN                0
00086 #define PS_XFONT_SPACING_MONOSPACE              1
00087 #define PS_XFONT_SPACING_PROPORTIONAL           2
00088 
00089 /******************************************************************************
00090 ****  TYPEDEFS  ***************************************************************
00091 ******************************************************************************/
00092 
00100 typedef struct psXFont
00101 {
00102   char
00103     *foundry,                   
00104     *family;                    
00106   int
00107     weight,                     
00108     slant,                      
00109     width,                      
00110     pixels,                     
00111     points,                     
00112     hdpi,                       
00113     vdpi,                       
00114     spacing,                    
00115     averageWidth;               
00117   char
00118     *encoding;                  
00120 } PSXFont;
00126 /******************************************************************************
00127 ****  GLOBALS  ****************************************************************
00128 ******************************************************************************/
00129 
00130 /******************************************************************************
00131 ****  FUNCTION PROTOTYPES  ****************************************************
00132 ******************************************************************************/
00133 
00134 char* psXFontGetWeightName(int weight);
00135 char* psXFontGetSlantName(int slant);
00136 char* psXFontGetWidthName(int width);
00137 char* psXFontGetSpacingName(int spacing);
00138 
00139 PSXFont* psXFontAlloc(void);
00140 void psXFontFree(PSXFont* xfont);
00141 void  psXFontSet(PSXFont* xfont, char *xlfd);
00142 char* psXFontGetXLFD(PSXFont* xfont);
00143 int psXFontMatch(PSXFont* f1, PSXFont* f2);
00144 
00145 #ifdef __cplusplus
00146 }
00147 #endif
00148 
00149 #endif /* INCLUDE_XFONT */

Generated at Mon Dec 11 22:46:28 2000 for Postscript Utility Library by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000