PLplot
5.10.0
|
00001 // 00002 // This header file contains the lookup table used for converting between 00003 // FCIs (font characterization integers) and font names for TrueType fonts. 00004 // 00005 // Copyright (C) 2005 Alan W. Irwin 00006 // 00007 // This file is part of PLplot. 00008 // 00009 // PLplot is free software; you can redistribute it and/or modify 00010 // it under the terms of the GNU Library General Public License as published 00011 // by the Free Software Foundation; either version 2 of the License, or 00012 // (at your option) any later version. 00013 // 00014 // PLplot is distributed in the hope that it will be useful, 00015 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 // GNU Library General Public License for more details. 00018 // 00019 // You should have received a copy of the GNU Library General Public License 00020 // along with PLplot; if not, write to the Free Software 00021 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00022 // 00023 00024 // N.B. When updating this table by hand be sure to keep it in 00025 // ascending order in fci! 00026 // 00027 #define N_TrueTypeLookup 30 00028 static const FCI_to_FontName_Table TrueTypeLookup[N_TrueTypeLookup] = { 00029 { PL_FCI_MARK | 0x000, (const unsigned char *) PL_FREETYPE_SANS }, 00030 { PL_FCI_MARK | 0x001, (const unsigned char *) PL_FREETYPE_SERIF }, 00031 { PL_FCI_MARK | 0x002, (const unsigned char *) PL_FREETYPE_MONO }, 00032 { PL_FCI_MARK | 0x003, (const unsigned char *) PL_FREETYPE_SCRIPT }, 00033 { PL_FCI_MARK | 0x004, (const unsigned char *) PL_FREETYPE_SYMBOL }, 00034 { PL_FCI_MARK | 0x010, (const unsigned char *) PL_FREETYPE_SANS_ITALIC }, 00035 { PL_FCI_MARK | 0x011, (const unsigned char *) PL_FREETYPE_SERIF_ITALIC }, 00036 { PL_FCI_MARK | 0x012, (const unsigned char *) PL_FREETYPE_MONO_ITALIC }, 00037 { PL_FCI_MARK | 0x013, (const unsigned char *) PL_FREETYPE_SCRIPT_ITALIC }, 00038 { PL_FCI_MARK | 0x014, (const unsigned char *) PL_FREETYPE_SYMBOL_ITALIC }, 00039 { PL_FCI_MARK | 0x020, (const unsigned char *) PL_FREETYPE_SANS_OBLIQUE }, 00040 { PL_FCI_MARK | 0x021, (const unsigned char *) PL_FREETYPE_SERIF_OBLIQUE }, 00041 { PL_FCI_MARK | 0x022, (const unsigned char *) PL_FREETYPE_MONO_OBLIQUE }, 00042 { PL_FCI_MARK | 0x023, (const unsigned char *) PL_FREETYPE_SCRIPT_OBLIQUE }, 00043 { PL_FCI_MARK | 0x024, (const unsigned char *) PL_FREETYPE_SYMBOL_OBLIQUE }, 00044 { PL_FCI_MARK | 0x100, (const unsigned char *) PL_FREETYPE_SANS_BOLD }, 00045 { PL_FCI_MARK | 0x101, (const unsigned char *) PL_FREETYPE_SERIF_BOLD }, 00046 { PL_FCI_MARK | 0x102, (const unsigned char *) PL_FREETYPE_MONO_BOLD }, 00047 { PL_FCI_MARK | 0x103, (const unsigned char *) PL_FREETYPE_SCRIPT_BOLD }, 00048 { PL_FCI_MARK | 0x104, (const unsigned char *) PL_FREETYPE_SYMBOL_BOLD }, 00049 { PL_FCI_MARK | 0x110, (const unsigned char *) PL_FREETYPE_SANS_BOLD_ITALIC }, 00050 { PL_FCI_MARK | 0x111, (const unsigned char *) PL_FREETYPE_SERIF_BOLD_ITALIC }, 00051 { PL_FCI_MARK | 0x112, (const unsigned char *) PL_FREETYPE_MONO_BOLD_ITALIC }, 00052 { PL_FCI_MARK | 0x113, (const unsigned char *) PL_FREETYPE_SCRIPT_BOLD_ITALIC }, 00053 { PL_FCI_MARK | 0x114, (const unsigned char *) PL_FREETYPE_SYMBOL_BOLD_ITALIC }, 00054 { PL_FCI_MARK | 0x120, (const unsigned char *) PL_FREETYPE_SANS_BOLD_OBLIQUE }, 00055 { PL_FCI_MARK | 0x121, (const unsigned char *) PL_FREETYPE_SERIF_BOLD_OBLIQUE }, 00056 { PL_FCI_MARK | 0x122, (const unsigned char *) PL_FREETYPE_MONO_BOLD_OBLIQUE }, 00057 { PL_FCI_MARK | 0x123, (const unsigned char *) PL_FREETYPE_SCRIPT_BOLD_OBLIQUE }, 00058 { PL_FCI_MARK | 0x124, (const unsigned char *) PL_FREETYPE_SYMBOL_BOLD_OBLIQUE } 00059 };