PLplot: plfci-truetype.h Source File

PLplot 5.15.0

plfci-truetype.h
Go to the documentation of this file.
1 //
2 // This header file contains the lookup table used for converting between
3 // FCIs (font characterization integers) and font names for TrueType fonts.
4 //
5 // Copyright (C) 2005 Alan W. Irwin
6 //
7 // This file is part of PLplot.
8 //
9 // PLplot is free software; you can redistribute it and/or modify
10 // it under the terms of the GNU Library General Public License as published
11 // by the Free Software Foundation; either version 2 of the License, or
12 // (at your option) any later version.
13 //
14 // PLplot is distributed in the hope that it will be useful,
15 // but WITHOUT ANY WARRANTY; without even the implied warranty of
16 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 // GNU Library General Public License for more details.
18 //
19 // You should have received a copy of the GNU Library General Public License
20 // along with PLplot; if not, write to the Free Software
21 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 //
23
24 // N.B. When updating this table by hand be sure to keep it in
25 // ascending order in fci!
26 //
27 #define N_TrueTypeLookup 30
28 static const FCI_to_FontName_Table TrueTypeLookup[N_TrueTypeLookup] = {
29 { PL_FCI_MARK | 0x000, (const unsigned char *) PL_FREETYPE_SANS },
30 { PL_FCI_MARK | 0x001, (const unsigned char *) PL_FREETYPE_SERIF },
31 { PL_FCI_MARK | 0x002, (const unsigned char *) PL_FREETYPE_MONO },
32 { PL_FCI_MARK | 0x003, (const unsigned char *) PL_FREETYPE_SCRIPT },
33 { PL_FCI_MARK | 0x004, (const unsigned char *) PL_FREETYPE_SYMBOL },
34 { PL_FCI_MARK | 0x010, (const unsigned char *) PL_FREETYPE_SANS_ITALIC },
35 { PL_FCI_MARK | 0x011, (const unsigned char *) PL_FREETYPE_SERIF_ITALIC },
36 { PL_FCI_MARK | 0x012, (const unsigned char *) PL_FREETYPE_MONO_ITALIC },
37 { PL_FCI_MARK | 0x013, (const unsigned char *) PL_FREETYPE_SCRIPT_ITALIC },
38 { PL_FCI_MARK | 0x014, (const unsigned char *) PL_FREETYPE_SYMBOL_ITALIC },
39 { PL_FCI_MARK | 0x020, (const unsigned char *) PL_FREETYPE_SANS_OBLIQUE },
40 { PL_FCI_MARK | 0x021, (const unsigned char *) PL_FREETYPE_SERIF_OBLIQUE },
41 { PL_FCI_MARK | 0x022, (const unsigned char *) PL_FREETYPE_MONO_OBLIQUE },
42 { PL_FCI_MARK | 0x023, (const unsigned char *) PL_FREETYPE_SCRIPT_OBLIQUE },
43 { PL_FCI_MARK | 0x024, (const unsigned char *) PL_FREETYPE_SYMBOL_OBLIQUE },
44 { PL_FCI_MARK | 0x100, (const unsigned char *) PL_FREETYPE_SANS_BOLD },
45 { PL_FCI_MARK | 0x101, (const unsigned char *) PL_FREETYPE_SERIF_BOLD },
46 { PL_FCI_MARK | 0x102, (const unsigned char *) PL_FREETYPE_MONO_BOLD },
47 { PL_FCI_MARK | 0x103, (const unsigned char *) PL_FREETYPE_SCRIPT_BOLD },
48 { PL_FCI_MARK | 0x104, (const unsigned char *) PL_FREETYPE_SYMBOL_BOLD },
49 { PL_FCI_MARK | 0x110, (const unsigned char *) PL_FREETYPE_SANS_BOLD_ITALIC },
50 { PL_FCI_MARK | 0x111, (const unsigned char *) PL_FREETYPE_SERIF_BOLD_ITALIC },
51 { PL_FCI_MARK | 0x112, (const unsigned char *) PL_FREETYPE_MONO_BOLD_ITALIC },
52 { PL_FCI_MARK | 0x113, (const unsigned char *) PL_FREETYPE_SCRIPT_BOLD_ITALIC },
53 { PL_FCI_MARK | 0x114, (const unsigned char *) PL_FREETYPE_SYMBOL_BOLD_ITALIC },
54 { PL_FCI_MARK | 0x120, (const unsigned char *) PL_FREETYPE_SANS_BOLD_OBLIQUE },
55 { PL_FCI_MARK | 0x121, (const unsigned char *) PL_FREETYPE_SERIF_BOLD_OBLIQUE },
56 { PL_FCI_MARK | 0x122, (const unsigned char *) PL_FREETYPE_MONO_BOLD_OBLIQUE },
57 { PL_FCI_MARK | 0x123, (const unsigned char *) PL_FREETYPE_SCRIPT_BOLD_OBLIQUE },
58 { PL_FCI_MARK | 0x124, (const unsigned char *) PL_FREETYPE_SYMBOL_BOLD_OBLIQUE }
59 };
PL_FREETYPE_SCRIPT_BOLD
#define PL_FREETYPE_SCRIPT_BOLD
Definition: plplot_config.h:219
PL_FREETYPE_MONO_BOLD_OBLIQUE
#define PL_FREETYPE_MONO_BOLD_OBLIQUE
Definition: plplot_config.h:189
PL_FREETYPE_SYMBOL
#define PL_FREETYPE_SYMBOL
Definition: plplot_config.h:252
PL_FREETYPE_SERIF
#define PL_FREETYPE_SERIF
Definition: plplot_config.h:234
PL_FREETYPE_SCRIPT_BOLD_ITALIC
#define PL_FREETYPE_SCRIPT_BOLD_ITALIC
Definition: plplot_config.h:222
PL_FREETYPE_SANS
#define PL_FREETYPE_SANS
Definition: plplot_config.h:198
PL_FREETYPE_SERIF_ITALIC
#define PL_FREETYPE_SERIF_ITALIC
Definition: plplot_config.h:246
PL_FREETYPE_SCRIPT_OBLIQUE
#define PL_FREETYPE_SCRIPT_OBLIQUE
Definition: plplot_config.h:231
PL_FREETYPE_SERIF_OBLIQUE
#define PL_FREETYPE_SERIF_OBLIQUE
Definition: plplot_config.h:249
PL_FREETYPE_MONO
#define PL_FREETYPE_MONO
Definition: plplot_config.h:180
PL_FREETYPE_SERIF_BOLD_OBLIQUE
#define PL_FREETYPE_SERIF_BOLD_OBLIQUE
Definition: plplot_config.h:243
PL_FREETYPE_MONO_OBLIQUE
#define PL_FREETYPE_MONO_OBLIQUE
Definition: plplot_config.h:195
PL_FREETYPE_SYMBOL_OBLIQUE
#define PL_FREETYPE_SYMBOL_OBLIQUE
Definition: plplot_config.h:267
PL_FREETYPE_SYMBOL_BOLD_ITALIC
#define PL_FREETYPE_SYMBOL_BOLD_ITALIC
Definition: plplot_config.h:258
PL_FREETYPE_SCRIPT
#define PL_FREETYPE_SCRIPT
Definition: plplot_config.h:216
PL_FREETYPE_SYMBOL_BOLD
#define PL_FREETYPE_SYMBOL_BOLD
Definition: plplot_config.h:255
TrueTypeLookup
static const FCI_to_FontName_Table TrueTypeLookup[N_TrueTypeLookup]
Definition: plfci-truetype.h:28
PL_FREETYPE_SANS_BOLD
#define PL_FREETYPE_SANS_BOLD
Definition: plplot_config.h:201
PL_FREETYPE_MONO_BOLD
#define PL_FREETYPE_MONO_BOLD
Definition: plplot_config.h:183
N_TrueTypeLookup
#define N_TrueTypeLookup
Definition: plfci-truetype.h:27
PL_FREETYPE_SERIF_BOLD_ITALIC
#define PL_FREETYPE_SERIF_BOLD_ITALIC
Definition: plplot_config.h:240
FCI_to_FontName_Table
Definition: plplotP.h:1229
PL_FREETYPE_SCRIPT_ITALIC
#define PL_FREETYPE_SCRIPT_ITALIC
Definition: plplot_config.h:228
PL_FREETYPE_SCRIPT_BOLD_OBLIQUE
#define PL_FREETYPE_SCRIPT_BOLD_OBLIQUE
Definition: plplot_config.h:225
PL_FREETYPE_MONO_BOLD_ITALIC
#define PL_FREETYPE_MONO_BOLD_ITALIC
Definition: plplot_config.h:186
PL_FREETYPE_SANS_ITALIC
#define PL_FREETYPE_SANS_ITALIC
Definition: plplot_config.h:210
PL_FREETYPE_SANS_BOLD_ITALIC
#define PL_FREETYPE_SANS_BOLD_ITALIC
Definition: plplot_config.h:204
PL_FREETYPE_SANS_BOLD_OBLIQUE
#define PL_FREETYPE_SANS_BOLD_OBLIQUE
Definition: plplot_config.h:207
PL_FREETYPE_SERIF_BOLD
#define PL_FREETYPE_SERIF_BOLD
Definition: plplot_config.h:237
PL_FREETYPE_SYMBOL_BOLD_OBLIQUE
#define PL_FREETYPE_SYMBOL_BOLD_OBLIQUE
Definition: plplot_config.h:261
PL_FREETYPE_SANS_OBLIQUE
#define PL_FREETYPE_SANS_OBLIQUE
Definition: plplot_config.h:213
PL_FREETYPE_MONO_ITALIC
#define PL_FREETYPE_MONO_ITALIC
Definition: plplot_config.h:192
PL_FREETYPE_SYMBOL_ITALIC
#define PL_FREETYPE_SYMBOL_ITALIC
Definition: plplot_config.h:264
PL_FCI_MARK
#define PL_FCI_MARK
Definition: plplot.h:370