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

ttf.h

Go to the documentation of this file.
00001 /*  $Id: ttf.h,v 1.5 2000/12/08 00:47:46 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 
00058 #ifndef INCLUDE_TTF
00059 #define INCLUDE_TTF
00060 
00061 /******************************************************************************
00062 ****  DEFINES  ****************************************************************
00063 ******************************************************************************/
00064 
00065 #define PS_TT_WEIGHT_THIN                       100
00066 #define PS_TT_WEIGHT_EXTRALIGHT                 200
00067 #define PS_TT_WEIGHT_LIGHT                      300
00068 #define PS_TT_WEIGHT_NORMAL                     400
00069 #define PS_TT_WEIGHT_MEDIUM                     500
00070 #define PS_TT_WEIGHT_SEMIBOLD                   600
00071 #define PS_TT_WEIGHT_BOLD                       700
00072 #define PS_TT_WEIGHT_EXTRABOLD                  800
00073 #define PS_TT_WEIGHT_BLACK                      900
00074 
00075 #define PS_TT_WIDTH_ULTRACONDENSED              1
00076 #define PS_TT_WIDTH_EXTRACONDENSED              2
00077 #define PS_TT_WIDTH_CONDENSED                   3
00078 #define PS_TT_WIDTH_SEMICONDENSED               4
00079 #define PS_TT_WIDTH_NORMAL                      5
00080 #define PS_TT_WIDTH_SEMIEXPANDED                6
00081 #define PS_TT_WIDTH_EXPANDED                    7
00082 #define PS_TT_WIDTH_EXTRAEXPANDED               8
00083 #define PS_TT_WIDTH_ULTRAEXPANDED               9
00084 
00085 #define PS_TT_FSSELECTION_ITALIC                0x0001
00086 #define PS_TT_FSSELECTION_BOLD                  0x0010
00087 #define PS_TT_FSSELECTION_REGULAR               0x0020
00088 
00089 /******************************************************************************
00090 ****  TYPEDEFS  ***************************************************************
00091 ******************************************************************************/
00092 
00097 typedef struct psTTFontInfo
00098 {
00099   char
00100     *name,
00101     *fullName,
00102     *family,
00103     *foundry;
00104     
00105   int
00106     weight,
00107     width,
00108     italic;
00109     
00110 } PSTTFontInfo;
00116 /******************************************************************************
00117 ****  FUNCTION PROTOTYPES  ****************************************************
00118 ******************************************************************************/
00119 
00120 int psTTInit(void);
00121 void psTTDone(void);
00122 
00123 PSTTFontInfo* psTTFontInfoAlloc(void);
00124 void psTTFontInfoFree(PSTTFontInfo* info);
00125 
00126 PSTTFontInfo* psTTGetFontInfo(char *fileName);
00127 
00128 int psTTGetPSFontWidth(PSTTFontInfo* info);
00129 int psTTGetPSFontWeight(PSTTFontInfo* info);
00130 
00131 int psTTFToT1PFA(char *ttfFileName, PSStream *pfa, int flags);
00132 
00133 #endif /* INCLUDE_TTF */

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