~ubuntu-branches/ubuntu/gutsy/plotutils/gutsy

« back to all changes in this revision

Viewing changes to libplot/g_fontdb.c

  • Committer: Bazaar Package Importer
  • Author(s): Floris Bruynooghe
  • Date: 2007-05-10 19:48:54 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070510194854-mrr3lgwzpxd8hovo
Tags: 2.5-2
Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* This file is part of the GNU plotutils package.  Copyright (C) 1995,
 
2
   1996, 1997, 1998, 1999, 2000, 2005, Free Software Foundation, Inc.
 
3
 
 
4
   The GNU plotutils package is free software.  You may redistribute it
 
5
   and/or modify it under the terms of the GNU General Public License as
 
6
   published by the Free Software foundation; either version 2, or (at your
 
7
   option) any later version.
 
8
 
 
9
   The GNU plotutils package is distributed in the hope that it will be
 
10
   useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
12
   General Public License for more details.
 
13
 
 
14
   You should have received a copy of the GNU General Public License along
 
15
   with the GNU plotutils package; see the file COPYING.  If not, write to
 
16
   the Free Software Foundation, Inc., 51 Franklin St., Fifth Floor,
 
17
   Boston, MA 02110-1301, USA. */
 
18
 
1
19
/* THIS FILE IS NOW SPLIT INTO TWO PIECES: g_fontdb.c and g_fontd2.c, TO
2
20
   FACILITATE COMPILING.  This is the first half, containing PS fonts and
3
21
   Hershey vector fonts. */
17
35
 
18
36
 
19
37
/* The 35 standard PS fonts, with ISO8859-1 (ISO-Latin-1) encoding where
20
 
   that is appropriate.  (Note that NUM_PS_FONTS is defined to equal 35 in
 
38
   that is appropriate.  (Note that PL_NUM_PS_FONTS is defined to equal 35 in
21
39
   extern.h.)  Each plPSFontInfoStruct includes these elements:
22
40
 
23
41
   (1) PS name, (1a) alternative PS name if any (may be NULL), 
24
42
        (1c) 2nd alternative PS name if any (may be NULL),
25
43
   (2a) X name, (2b) alternative X name if any (may be NULL)
 
44
        (2c) 2nd alternative X name if any (may be NULL)
 
45
        (2d) 3rd alternative X name if any (may be NULL)
26
46
   (2.5abcde) CSS font properties.
27
47
   (3) PCL typeface number.
28
48
   (4) PCL info: fixedwidth(0) / proportional(1).
39
59
   (10ab) the font cap height and x height (latter not yet implemented)
40
60
   (11a) the font width information (an array, size 256),   
41
61
   (11b) the `left edge of glyph' information (an array, size 256),   
42
 
   (12) a typeface id (an index into the _ps_typeface_info[] array below)
 
62
   (12) a typeface id (an index into the _pl_g_ps_typeface_info[] array below)
43
63
   (13) a font index (which font within the typeface this is)
44
64
   (14) a Fig font id, for use by FigPlotter methods
45
65
   (15) an `iso8859-1' flag, for the PS driver, which must re-encode
48
68
/* IMPORTANT: The fonts in this array may be referred to elsewhere in the
49
69
   libplot code by number.  If you change the internal numbering of
50
70
   Postscript fonts, i.e., the order in which they appear in this array, be
51
 
   sure to update the definitions DEFAULT_POSTSCRIPT_FONT_INDEX, etc. in
52
 
   extern.h.  Also update the arrays _ps_font_to_cgm_font_id[] and
53
 
   _cgm_font_id_to_ps_font[], below. */
 
71
   sure to update the definitions PL_DEFAULT_POSTSCRIPT_FONT_INDEX, etc. in
 
72
   extern.h.  Also update the arrays _pl_g_ps_font_to_cgm_font_id[] and
 
73
   _pl_g_cgm_font_id_to_ps_font[], below. */
54
74
 
55
 
const struct plPSFontInfoStruct _ps_font_info[] = {
 
75
const struct plPSFontInfoStruct _pl_g_ps_font_info[] = {
56
76
{
57
77
  "Helvetica",                  /* #0 */
58
78
  NULL,
59
79
  NULL,
60
 
  "helvetica-medium-r-normal",
 
80
  "helvetica-medium-r-normal",  /* Adobe */
 
81
  "nimbus sans l-medium-r-normal", /* URW, for SuSE */
 
82
  "nimbus sans l-regular-r-normal", /* URW, for Debian */
61
83
  NULL,
62
84
  "Helvetica", "sans-serif", "normal", "normal", "normal",
63
85
  24580, 1, 0, 0, 14,
133
155
  NULL,
134
156
  NULL,
135
157
  "helvetica-medium-o-normal",
 
158
  "nimbus sans l-medium-o-normal",
 
159
  "nimbus sans l-regular-i-normal",
136
160
  NULL,
137
161
  "Helvetica", "sans-serif", "oblique", "normal", "normal",
138
162
  24580, 1, 1, 0, 14,
208
232
  NULL,
209
233
  NULL,
210
234
  "helvetica-bold-r-normal",
 
235
  "nimbus sans l-bold-r-normal",
 
236
  "nimbus sans l-bold-r-normal",
211
237
  NULL,
212
238
  "Helvetica", "sans-serif", "normal", "bold", "normal",
213
239
  24580, 1, 0, 3, 14,
283
309
  NULL,
284
310
  NULL,
285
311
  "helvetica-bold-o-normal",
 
312
  "nimbus sans l-bold-o-normal",
 
313
  "nimbus sans l-bold-i-normal",
286
314
  NULL,
287
315
  "Helvetica", "sans-serif", "oblique", "bold", "normal",
288
316
  24580, 1, 1, 3, 14,
358
386
  NULL,
359
387
  NULL,
360
388
  "helvetica-medium-r-narrow",
 
389
  "nimbus sans l-medium-r-condensed",
 
390
  "nimbus sans l-regular-r-condensed",
361
391
  NULL,
362
392
  "Helvetica", "sans-serif", "normal", "normal", "condensed",
363
393
  24580, 1, 4, 0, 14,
433
463
  NULL,
434
464
  NULL,
435
465
  "helvetica-medium-o-narrow",
 
466
  "nimbus sans l-medium-o-condensed",
 
467
  "nimbus sans l-regular-i-condensed",
436
468
  NULL,
437
469
  "Helvetica", "sans-serif", "oblique", "normal", "condensed",
438
470
  24580, 1, 5, 0, 14,
508
540
  NULL,
509
541
  NULL,
510
542
  "helvetica-bold-r-narrow",
 
543
  "nimbus sans l-bold-r-condensed",
 
544
  "nimbus sans l-bold-r-condensed",
511
545
  NULL,
512
546
  "Helvetica", "sans-serif", "normal", "bold", "condensed",
513
547
  24580, 1, 4, 3, 14,
583
617
  NULL,
584
618
  NULL,
585
619
  "helvetica-bold-o-narrow",
 
620
  "nimbus sans l-bold-o-condensed",
 
621
  "nimbus sans l-bold-i-condensed",
586
622
  NULL,
587
623
  "Helvetica", "sans-serif", "oblique", "bold", "condensed",
588
624
  24580, 1, 5, 3, 14,
657
693
  "Times-Roman",                /* #8 */
658
694
  NULL,
659
695
  NULL,
660
 
  "times-medium-r-normal",
 
696
  "times-medium-r-normal",      /* Adobe */
 
697
  "nimbus roman no9 l-regular-r-normal", /* URW, for Debian */
 
698
  "nimbus roman no9 l-medium-r-normal", /* URW, for SuSE */
661
699
  NULL,
662
 
  "Times Roman", "serif", "normal", "normal", "normal",
 
700
  "Times", "serif", "normal", "normal", "normal",
663
701
  25093, 1, 0, 0, 14,
664
702
  898, 218,
665
703
  662, 0,
733
771
  NULL,
734
772
  NULL,
735
773
  "times-medium-i-normal",
 
774
  "nimbus roman no9 l-regular-i-normal",
 
775
  "nimbus roman no9 l-medium-i-normal",
736
776
  NULL,
737
 
  "Times Roman", "serif", "italic", "normal", "normal",
 
777
  "Times", "serif", "italic", "normal", "normal",
738
778
  25093, 1, 1, 0, 14,
739
779
  883, 217,
740
780
  653, 0,
808
848
  NULL,
809
849
  NULL,
810
850
  "times-bold-r-normal",
 
851
  "nimbus roman no9 l-bold-r-normal",
 
852
  "nimbus roman no9 l-bold-r-normal",
811
853
  NULL,
812
 
  "Times Roman", "serif", "normal", "bold", "normal",
 
854
  "Times", "serif", "normal", "bold", "normal",
813
855
  25093, 1, 0, 3, 14,
814
856
  935, 218,
815
857
  676, 0,
883
925
  NULL,
884
926
  NULL,
885
927
  "times-bold-i-normal",
 
928
  "nimbus roman no9 l-bold-i-normal",
 
929
  "nimbus roman no9 l-bold-i-normal",
886
930
  NULL,
887
 
  "Times Roman", "serif", "italic", "bold", "normal",
 
931
  "Times", "serif", "italic", "bold", "normal",
888
932
  25093, 1, 1, 3, 14,
889
933
  921, 218,
890
934
  669, 0,
957
1001
  "AvantGarde-Book",            /* #12 */
958
1002
  NULL,
959
1003
  NULL,
960
 
  "itc avant garde gothic-book-r-normal", /* as used e.g. by SGI */
961
 
  "avantgarde-book-r-normal",   /* as used e.g. by SunOS */
 
1004
  "itc avant garde gothic-book-r-normal", /* Adobe, for SGI etc. */
 
1005
  "avantgarde-book-r-normal",   /* Adobe, for SunOS etc. */
 
1006
  "urw gothic l-medium-r-normal", /* URW, for SuSE */
 
1007
  NULL,
962
1008
  "Avant Garde", "sans-serif", "normal", "normal", "normal",
963
1009
  24607, 1, 0, 0, 14,
964
1010
  955, 222,
1034
1080
  NULL,
1035
1081
  "itc avant garde gothic-book-o-normal",
1036
1082
  "avantgarde-book-o-normal",
 
1083
  "urw gothic l-medium-o-normal",
 
1084
  NULL,
1037
1085
  "Avant Garde", "sans-serif", "oblique", "normal", "normal",
1038
1086
  24607, 1, 1, 0, 14,
1039
1087
  955, 222,
1109
1157
  NULL,
1110
1158
  "itc avant garde gothic-demi-r-normal",
1111
1159
  "avantgarde-demi-r-normal",
 
1160
  "urw gothic l-semibold-r-normal",
 
1161
  NULL,
1112
1162
  "Avant Garde", "sans-serif", "normal", "bold", "normal",
1113
1163
  24607, 1, 0, 2, 14,
1114
1164
  1021, 251,
1184
1234
  NULL,
1185
1235
  "itc avant garde gothic-demi-o-normal",
1186
1236
  "avantgarde-demi-o-normal",
 
1237
  "urw gothic l-semibold-o-normal",
 
1238
  NULL,
1187
1239
  "Avant Garde", "sans-serif", "oblique", "bold", "normal",
1188
1240
  24607, 1, 1, 2, 14,
1189
1241
  1021, 251,
1257
1309
  "Bookman-Light",              /* #16 */
1258
1310
  NULL,
1259
1311
  NULL,
1260
 
  "itc bookman-light-r-normal", /* as used e.g. by SGI */
1261
 
  "bookman-light-r-normal",     /* our former convention, from SunOS */
 
1312
  "itc bookman-light-r-normal", /* Adobe, for SGI etc. */
 
1313
  "bookman-light-r-normal",     /* Adobe, for SunOS etc. */
 
1314
  "urw bookman l-medium-r-normal", /* URW, for SuSE */
 
1315
  NULL,
1262
1316
  "Bookman", "serif", "normal", "300", "normal",
1263
1317
  24623, 1, 0, -3, 14,
1264
1318
  908, 251,
1334
1388
  NULL,
1335
1389
  "itc bookman-light-i-normal",
1336
1390
  "bookman-light-i-normal",
 
1391
  "urw bookman l-medium-i-normal",
 
1392
  NULL,
1337
1393
  "Bookman", "serif", "italic", "300", "normal",
1338
1394
  24623, 1, 1, -3, 14,
1339
1395
  883, 250,
1409
1465
  NULL,
1410
1466
  "itc bookman-demi-r-normal",
1411
1467
  "bookman-demi-r-normal",
 
1468
  "urw bookman l-bold-r-normal",
 
1469
  NULL,
1412
1470
  "Bookman", "serif", "normal", "bold", "normal",
1413
1471
  24623, 1, 0, 2, 14,
1414
1472
  934, 250,
1484
1542
  NULL,
1485
1543
  "itc bookman-demi-i-normal",
1486
1544
  "bookman-demi-i-normal",
 
1545
  "urw bookman l-bold-i-normal",
 
1546
  NULL,
1487
1547
  "Bookman", "serif", "italic", "bold", "normal",
1488
1548
  24623, 1, 1, 2, 14,
1489
1549
  941, 250,
1557
1617
  "Courier",                    /* #20 */
1558
1618
  "CourierPS",
1559
1619
  NULL,
1560
 
  "courier-medium-r-normal",
 
1620
  "courier-medium-r-normal",    /* Adobe */
 
1621
  "nimbus mono l-medium-r-normal", /* URW, for SuSE */
 
1622
  "nimbus mono l-regular-r-normal", /* URW, for Debian */
1561
1623
  NULL,
1562
1624
  "Courier", "monospace", "normal", "normal", "normal",
1563
1625
  24579, 0, 0, 0, 14,
1637
1699
  NULL,
1638
1700
#endif
1639
1701
  "courier-medium-o-normal",
 
1702
  "nimbus mono l-medium-o-normal",
 
1703
  "nimbus mono l-regular-o-normal",
1640
1704
  NULL,
1641
1705
  "Courier", "monospace", "oblique", "normal", "normal",
1642
1706
  24579, 0, 1, 0, 14,
1712
1776
  "CourierPS-Bold",
1713
1777
  NULL,
1714
1778
  "courier-bold-r-normal",
 
1779
  "nimbus mono l-bold-r-normal",
 
1780
  "nimbus mono l-bold-r-normal",
1715
1781
  NULL,
1716
1782
  "Courier", "monospace", "normal", "bold", "normal",
1717
1783
  24579, 0, 0, 3, 14,
1791
1857
  NULL,
1792
1858
#endif
1793
1859
  "courier-bold-o-normal",
 
1860
  "nimbus mono l-bold-o-normal",
 
1861
  "nimbus mono l-bold-o-normal",
1794
1862
  NULL,
1795
1863
  "Courier", "monospace", "oblique", "bold", "normal",
1796
1864
  24579, 0, 1, 3, 14,
1865
1933
  "NewCenturySchlbk-Roman",     /* #24 */
1866
1934
  NULL,
1867
1935
  NULL,
1868
 
  "new century schoolbook-medium-r-normal",
1869
 
  "newcenturyschlbk-medium-r-normal", /* name formerly used by DEC */
 
1936
  "new century schoolbook-medium-r-normal", /* Adobe */
 
1937
  "newcenturyschlbk-medium-r-normal", /* Adobe, for DEC etc. */
 
1938
  "century schoolbook l-medium-r-normal", /* URW, for SuSE and Debian */
 
1939
  NULL,
1870
1940
  "New Century Schoolbook", "serif", "normal", "normal", "normal",
1871
1941
  24703, 1, 0, 0, 14,
1872
1942
  965, 250,
1942
2012
  NULL,
1943
2013
  "new century schoolbook-medium-i-normal",
1944
2014
  "newcenturyschlbk-medium-i-normal",
 
2015
  "century schoolbook l-medium-i-normal",
 
2016
  NULL,
1945
2017
  "New Century Schoolbook", "serif", "italic", "normal", "normal",
1946
2018
  24703, 1, 1, 0, 14,
1947
2019
  958, 250,
2017
2089
  NULL,
2018
2090
  "new century schoolbook-bold-r-normal",
2019
2091
  "newcenturyschlbk-bold-r-normal",
 
2092
  "century schoolbook l-bold-r-normal",
 
2093
  NULL,
2020
2094
  "New Century Schoolbook", "serif", "normal", "bold", "normal",
2021
2095
  24703, 1, 0, 3, 14,
2022
2096
  988, 250,
2092
2166
  NULL,
2093
2167
  "new century schoolbook-bold-i-normal",
2094
2168
  "newcenturyschlbk-bold-i-normal",
 
2169
  "century schoolbook l-bold-i-normal",
 
2170
  NULL,
2095
2171
  "New Century Schoolbook", "serif", "italic", "bold", "normal",
2096
2172
  24703, 1, 1, 3, 14,
2097
2173
  991, 250,
2165
2241
  "Palatino-Roman",             /* #28 */
2166
2242
  NULL,
2167
2243
  NULL,
2168
 
  "palatino-medium-r-normal",
 
2244
  "palatino-medium-r-normal",   /* Adobe */
 
2245
  "urw palladio l-medium-r-normal", /* URW, for SuSE */
 
2246
  "urw palladio l-regular-r-normal", /* URW, for Debian */
2169
2247
  NULL,
2170
2248
  "Palatino", "serif", "normal", "normal", "normal",
2171
2249
  24591, 1, 0, 0, 14,
2241
2319
  NULL,
2242
2320
  NULL,
2243
2321
  "palatino-medium-i-normal",
 
2322
  "urw palladio l-medium-i-normal",
 
2323
  "urw palladio l-regular-i-normal",
2244
2324
  NULL,
2245
2325
  "Palatino", "serif", "italic", "normal", "normal",
2246
2326
  24591, 1, 1, 0, 14,
2316
2396
  NULL,
2317
2397
  NULL,
2318
2398
  "palatino-bold-r-normal",
 
2399
  "urw palladio l-bold-r-normal",
 
2400
  "urw palladio l-bold-r-normal",
2319
2401
  NULL,
2320
2402
  "Palatino", "serif", "normal", "bold", "normal",
2321
2403
  24591, 1, 0, 3, 14,
2391
2473
  NULL,
2392
2474
  NULL,
2393
2475
  "palatino-bold-i-normal",
 
2476
  "urw palladio l-bold-i-normal",
 
2477
  "urw palladio l-bold-i-normal",
2394
2478
  NULL,
2395
2479
  "Palatino", "serif", "italic", "bold", "normal",
2396
2480
  24591, 1, 1, 3, 14,
2465
2549
  "ZapfChancery-MediumItalic",  /* #32 */
2466
2550
  NULL,
2467
2551
  NULL,
2468
 
  "itc zapf chancery-medium-i-normal", /* as used e.g. by SGI */
2469
 
  "zapfchancery-medium-i-normal", /* our former convention, from SunOS */
 
2552
  "itc zapf chancery-medium-i-normal", /* Adobe, for SGI etc. */
 
2553
  "zapf chancery-medium-i-normal", /* Adobe, for Open Group etc. */
 
2554
  "zapfchancery-medium-i-normal", /* Adobe, for SunOS etc.*/
 
2555
  "urw chancery l-medium-i-normal", /* URW, for SuSE */
2470
2556
  "Zapf Chancery", "cursive", "italic", "normal", "normal",
2471
2557
  45099, 1, 1, 0, 14,
2472
2558
  831, 314,
2540
2626
  "ZapfDingbats",               /* #33 */
2541
2627
  NULL,
2542
2628
  NULL,
2543
 
  "itc zapf dingbats-medium-r-normal",
2544
 
  "zapfdingbats-medium-r-normal", /* our former convention, from SunOS etc. */
 
2629
  "itc zapf dingbats-medium-r-normal", /* Adobe */
 
2630
  "zapf dingbats-medium-r-normal", /* Adobe, for Open Group etc. */
 
2631
  "zapfdingbats-medium-r-normal", /* Adobe, for SunOS etc. */
 
2632
  "dingbats-medium-r-normal",   /* URW, for SuSE */
2545
2633
  "Zapf Dingbats", NULL, "normal", "normal", "normal",
2546
2634
  45101, 1, 0, 0, 460,
2547
2635
  820, 143,
2615
2703
  "Symbol",                     /* #34 */
2616
2704
  "SymbolPS",
2617
2705
  NULL,
2618
 
  "symbol-medium-r-normal",
 
2706
  "symbol-medium-r-normal",     /* Adobe */
 
2707
  "standard symbols l-medium-r-normal", /* URW, for SuSE */
 
2708
  "standard symbols l-regular-r-normal", /* URW, for Debian */
2619
2709
  NULL,
2620
2710
  "Symbol", NULL, "normal", "normal", "normal",
2621
2711
  45358, 1, 0, 0, 621,
2692
2782
  NULL,
2693
2783
  NULL,
2694
2784
  NULL,
 
2785
  NULL,
 
2786
  NULL,
2695
2787
  NULL, NULL, NULL, NULL, NULL,
2696
2788
  0, 0, 0, 0, 0,
2697
2789
  0, 0,
2760
2852
  false}
2761
2853
};
2762
2854
 
2763
 
/* The array _ps_font_to_cgm_font_id[] performs a map from internal PS font
2764
 
   number, i.e. location in the preceding list of 35 fonts, to CGM font id,
2765
 
   as used by CGM Plotters in WebCGM output.  _cgm_font_id_to_ps_font[]
2766
 
   performs the inverse map.  
 
2855
/* The array _pl_g_ps_font_to_cgm_font_id[] performs a map from internal PS
 
2856
   font number, i.e. location in the preceding list of 35 fonts, to CGM
 
2857
   font id, as used by CGM Plotters in WebCGM output.
 
2858
   _pl_g_cgm_font_id_to_ps_font[] performs the inverse map.
2767
2859
 
2768
2860
   These maps are permutations of the interval 0..34, and are restricted
2769
2861
   only by the requirement that the original `Adobe 13' (the PS fonts built
2772
2864
   they are assumed always to be available.  If any of the other 23 is
2773
2865
   included, a `FONT PROPERTIES' command needs to be emitted for it. */
2774
2866
   
2775
 
const int _ps_font_to_cgm_font_id[] = 
 
2867
const int _pl_g_ps_font_to_cgm_font_id[PL_NUM_PS_FONTS] = 
2776
2868
{ 0, 1, 2, 3, 13, 14, 15, 16, 4, 5, 6, 7, 17, 18, 19, 20, 21, 22, 23, 24, 8, 9, 10, 11, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 12 };
2777
2869
 
2778
 
const int _cgm_font_id_to_ps_font[] = 
 
2870
const int _pl_g_cgm_font_id_to_ps_font[PL_NUM_PS_FONTS] = 
2779
2871
{ 0, 1, 2, 3, 8, 9, 10, 11, 20, 21, 22, 23, 34, 4, 5, 6, 7, 12, 13, 14, 15, 16, 17, 18, 19, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33 };
2780
2872
 
2781
2873
/* The following array contains the most important CGM properties of the 35
3084
3176
   13        Reserved
3085
3177
   14 Reserved */
3086
3178
 
3087
 
const plCGMFontProperties _cgm_font_properties[] = {
 
3179
const plCGMFontProperties _pl_g_cgm_font_properties[PL_NUM_PS_FONTS] = {
3088
3180
  /* family, extrastyle, style, posture, weight, width, design_group, struct */
3089
3181
  { "Helvetica", "", "",                        1, 5, 5, { 5, 1, 2 }, 1 },
3090
3182
  { "Helvetica", "", "Oblique",                 2, 5, 5, { 5, 1, 2 }, 1 },
3129
3221
   (1) number of valid fonts [should be >= 2, since every typeface
3130
3222
       should include a symbol font (the zeroth font, the 1st listed)]
3131
3223
   (2) a list of fonts (each number is an index into
3132
 
       the _ps_font_info[] array above).
 
3224
       the _pl_g_ps_font_info[] array above).
3133
3225
 
3134
 
   The number of valid fonts should be <= FONTS_PER_TYPEFACE; the
 
3226
   The number of valid fonts should be <= PL_MAX_FONTS_PER_TYPEFACE; the
3135
3227
   initializers are filled out with dummy fonts to get arrays of length
3136
 
   FONTS_PER_TYPEFACE. */
 
3228
   PL_MAX_FONTS_PER_TYPEFACE. */
3137
3229
 
3138
 
const struct plTypefaceInfoStruct _ps_typeface_info[] = 
 
3230
const struct plTypefaceInfoStruct _pl_g_ps_typeface_info[] = 
3139
3231
{
3140
3232
  /* Helvetica, #0 */
3141
3233
  { 5, { 34, 0, 1, 2, 3, 999, 999, 999, 999, 999 } },
3168
3260
   (2) an alias for the font (for backward compatibility)
3169
3261
   (3) Allen Hershey's original name for the font
3170
3262
   (4) the characters in the font (an array of glyph indices, size 256)
3171
 
   (5) a typeface id (an index into the _ps_typeface_info[] array below)
 
3263
   (5) a typeface id (an index into the _pl_g_ps_typeface_info[] array below)
3172
3264
   (6) a font index (which font within the typeface this is)
3173
3265
   (7) an `obliquing requested' flag (set if glyphs should be sheared)
3174
3266
   (8) an `iso8859-1' flag
3249
3341
/* IMPORTANT: The fonts in this array may be referred to elsewhere in the
3250
3342
   code by number.  If you change the numbering of Hershey fonts, i.e., the
3251
3343
   order in which they appear in this array, be sure to update, e.g., the
3252
 
   definitions DEFAULT_HERSHEY_FONT_INDEX, HERSHEY_SERIF, HERSHEY_EUC
 
3344
   definitions PL_DEFAULT_HERSHEY_FONT_INDEX, PL_HERSHEY_SERIF, PL_HERSHEY_EUC
3253
3345
   etc. in extern.h. */
3254
3346
 
3255
 
const struct plHersheyFontInfoStruct _hershey_font_info[] = 
 
3347
const struct plHersheyFontInfoStruct _pl_g_hershey_font_info[] = 
3256
3348
{
3257
3349
  {
3258
3350
    "HersheySerif",             /* #0 */
4359
4451
   are stored in the inaccessible 0x80--0x9f region (i.e., \0200--\0237
4360
4452
   region) of each font. */
4361
4453
 
4362
 
const struct plHersheyAccentedCharInfoStruct _hershey_accented_char_info[] = 
 
4454
const struct plHersheyAccentedCharInfoStruct _pl_g_hershey_accented_char_info[] = 
4363
4455
{
4364
4456
  /* for HersheyCyrillic[-Oblique] (KOI8-R encoding) accented characters */
4365
4457
  {0243, 0305, 0212},           /* edieresis */
4427
4519
   (1) number of valid fonts [should be >= 2, since every typeface
4428
4520
       should include a symbol font (the zeroth font, the 1st listed)]
4429
4521
   (2) a list of fonts (each number is an index into
4430
 
       the _hershey_font_info[] array above).
 
4522
       the _pl_g_hershey_font_info[] array above).
4431
4523
 
4432
 
   The number of valid fonts should be <= FONTS_PER_TYPEFACE; the
 
4524
   The number of valid fonts should be <= PL_MAX_FONTS_PER_TYPEFACE; the
4433
4525
   initializers are filled out with dummy fonts to get arrays of length
4434
 
   FONTS_PER_TYPEFACE. */
 
4526
   PL_MAX_FONTS_PER_TYPEFACE. */
4435
4527
 
4436
 
const struct plTypefaceInfoStruct _hershey_typeface_info[] = 
 
4528
const struct plTypefaceInfoStruct _pl_g_hershey_typeface_info[] = 
4437
4529
{
4438
4530
  /* Hershey Serif [including Cyrillic, Cyrillic-Obl., and EUC], typeface #0 */
4439
4531
  { 8, { 18, 0, 1, 2, 3, 4, 5, 8, 999, 999 } },