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

font.h

Go to the documentation of this file.
00001 /*  $Id: font.h,v 1.2 2000/12/06 18:42:29 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_FONT
00052 #define INCLUDE_FONT
00053 
00054 #ifdef __cplusplus
00055 extern "C" {
00056 #endif
00057 
00058 /******************************************************************************
00059 ****  DEFINES  ****************************************************************
00060 ******************************************************************************/
00061 
00062 #define PS_FONTTYPE_UNKNOWN                     0     
00063 #define PS_FONTTYPE_TRUETYPE                    1
00064 #define PS_FONTTYPE_PSTYPE1ALPHA                2
00065 #define PS_FONTTYPE_PSTYPE1BIN                  3
00066 #define PS_FONTTYPE_PRINTER                     4
00067 
00068 #define PS_FONT_WEIGHT_UNKNOWN                  0
00069 #define PS_FONT_WEIGHT_THIN                     1
00070 #define PS_FONT_WEIGHT_EXTRALIGHT               2
00071 #define PS_FONT_WEIGHT_LIGHT                    3
00072 #define PS_FONT_WEIGHT_NORMAL                   4
00073 #define PS_FONT_WEIGHT_MEDIUM                   5
00074 #define PS_FONT_WEIGHT_SEMIBOLD                 6
00075 #define PS_FONT_WEIGHT_BOLD                     7
00076 #define PS_FONT_WEIGHT_EXTRABOLD                8
00077 #define PS_FONT_WEIGHT_BLACK                    9
00078 
00079 #define PS_FONT_WIDTH_UNKNOWN                   0
00080 #define PS_FONT_WIDTH_ULTRACONDENSED            1
00081 #define PS_FONT_WIDTH_EXTRACONDENSED            2
00082 #define PS_FONT_WIDTH_CONDENSED                 3
00083 #define PS_FONT_WIDTH_SEMICONDENSED             4
00084 #define PS_FONT_WIDTH_NORMAL                    5
00085 #define PS_FONT_WIDTH_SEMIEXPANDED              6
00086 #define PS_FONT_WIDTH_EXPANDED                  7
00087 #define PS_FONT_WIDTH_EXTRAEXPANDED             8
00088 #define PS_FONT_WIDTH_ULTRAEXPANDED             9
00089 
00090 /******************************************************************************
00091 ****  TYPEDEFS  ***************************************************************
00092 ******************************************************************************/
00093 
00102 typedef struct psFont
00103 {
00104   char
00105     *fontFileName,              
00106     *fontMetricFileName,        
00107     *fontName,                  
00108     *fontFamily;                
00110   PSList
00111     *xFontNames;                
00113   int
00114     weight,                     
00115     width,                      
00116     italic,                     
00117     fontType;                   
00119   PSAFM
00120     *fontMetric;                
00121 } PSFont;
00127 /******************************************************************************
00128 ****  GLOBALS  ****************************************************************
00129 ******************************************************************************/
00130 
00131 extern char
00132   *psWeightNames[],
00133   *psWidthNames[];
00134   
00135 /******************************************************************************
00136 ****  FUNCTION PROTOTYPES  ****************************************************
00137 ******************************************************************************/
00138 
00139 PSFont* psFontAlloc(void);
00140 PSFont* psFontCalloc(int count);
00141 void psFontFree(PSFont* font);
00142 
00143 #ifdef __cplusplus
00144 }
00145 #endif
00146 
00147 #endif /* INCLUDE_FONT */

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