Back to index

texmacs  1.0.7.15
tt_post.h
Go to the documentation of this file.
00001 /*  $Header: /home/cvsroot/dvipdfmx/src/tt_post.h,v 1.1 2004/09/11 14:50:29 hirata Exp $
00002     
00003     This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks.
00004 
00005     Copyright (C) 2002 by Jin-Hwan Cho and Shunsaku Hirata,
00006     the dvipdfmx project team <dvipdfmx@project.ktug.or.kr>
00007     
00008     This program is free software; you can redistribute it and/or modify
00009     it under the terms of the GNU General Public License as published by
00010     the Free Software Foundation; either version 2 of the License, or
00011     (at your option) any later version.
00012     
00013     This program is distributed in the hope that it will be useful,
00014     but WITHOUT ANY WARRANTY; without even the implied warranty of
00015     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016     GNU General Public License for more details.
00017     
00018     You should have received a copy of the GNU General Public License
00019     along with this program; if not, write to the Free Software
00020     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
00021 */
00022 
00023 #ifndef _TT_POST_H_
00024 #define _TT_POST_H_
00025 
00026 #include "sfnt.h"
00027 
00028 struct tt_post_table
00029 {
00030   Fixed    Version;
00031   Fixed    italicAngle;
00032   FWord    underlinePosition;
00033   FWord    underlineThickness;
00034   ULONG    isFixedPitch;
00035   ULONG    minMemType42;
00036   ULONG    maxMemType42;
00037   ULONG    minMemType1;
00038   ULONG    maxMemType1; 
00039 
00040   USHORT   numberOfGlyphs;
00041 
00042   char   **glyphNamePtr; /* Glyph names (pointer to C string) */
00043   char   **names;        /* Non-standard glyph names */
00044 
00045   USHORT   count;        /* Number of glyph names in names[] */
00046 };
00047 
00048 extern struct tt_post_table  *tt_read_post_table (sfnt *sfont);
00049 extern void   tt_release_post_table (struct tt_post_table *post);
00050 
00051 extern USHORT tt_lookup_post_table  (struct tt_post_table *post, const char *glyphname);
00052 
00053 #endif /* _TT_POST_H_ */