w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

ttf.h
Go to the documentation of this file.
1 /* Copyright (C) 2001-2008 by George Williams */
2 /*
3  * Redistribution and use in source and binary forms, with or without
4  * modification, are permitted provided that the following conditions are met:
5 
6  * Redistributions of source code must retain the above copyright notice, this
7  * list of conditions and the following disclaimer.
8 
9  * Redistributions in binary form must reproduce the above copyright notice,
10  * this list of conditions and the following disclaimer in the documentation
11  * and/or other materials provided with the distribution.
12 
13  * The name of the author may not be used to endorse or promote products
14  * derived from this software without specific prior written permission.
15 
16  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
17  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
18  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
19  * EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
21  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
22  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
23  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
24  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
25  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26  */
27 
28 #include "psfont.h" /* for struct fddata */
29 
30 #define MAC_DELETED_GLYPH_NAME "<Delete>"
31 
32 /* Some glyphs have multiple encodings ("A" might be used for Alpha and Cyrillic A) */
33 struct dup {
35  int enc;
36  int uni;
37  struct dup *prev;
38 };
39 
40 struct ttfinfo {
41  int emsize; /* ascent + descent? from the head table */
42  int ascent, descent; /* from the hhea table */
43  /* not the usWinAscent from the OS/2 table */
44  int vertical_origin; /* if vmetrics are present */
45  int width_cnt; /* from the hhea table, in the hmtx table */
46  int glyph_cnt; /* from maxp table (or cff table) */
47  unsigned int index_to_loc_is_long:1; /* in head table */
48  unsigned int is_ttc:1; /* Is it a font collection? */
49  unsigned int is_onebyte:1; /* Is it a one byte encoding? */
50  unsigned int twobytesymbol:1; /* it had a symbol encoding which we converted to unicode */
51  unsigned int complainedbeyondglyfend:1; /* Don't complain about this more than once */
52  unsigned int extensionrequested:1; /* Only ask once for a copy of a font containing extension subtables */
53  unsigned int to_order2:1; /* We are to leave the font as truetype (order2) splines, else convert to ps */
54  unsigned int complainedmultname:1; /* Don't complain about this more than once */
55  unsigned int strokedfont: 1; /* painttype==2 for otf */
56  unsigned int use_typo_metrics: 1;
57  unsigned int weight_width_slope_only: 1;
58  unsigned int optimized_for_cleartype: 1;
59  unsigned int apply_lsb: 1;
60  enum openflags openflags;
61  /* Mac fonts platform=0/1, platform specific enc id, roman=0, english is lang code 0 */
62  /* iso platform=2, platform specific enc id, latin1=0/2, no language */
63  /* microsoft platform=3, platform specific enc id, 1, english is lang code 0x??09 */
64  char *copyright; /* from the name table, nameid=0 */
65  char *familyname; /* nameid=1 */
66  char *fullname; /* nameid=4 */
67  char *weight;
68  char *version; /* nameid=5 */
69  char *fontname; /* postscript font name, nameid=6 */
70  char *xuid; /* Only for open type cff fonts */
71  int uniqueid;
72  real italicAngle; /* from post table */
73  int upos, uwidth; /* underline pos, width from post table */
75  int fstype;
76  struct psdict *private; /* Only for open type cff fonts */
77  EncMap *map;
79  struct pfminfo pfminfo;
80  short os2_version;
81  short gasp_version;
82  int dupnamestate;
83  struct ttflangname *names;
84  char *fontcomments, *fontlog;
85  char **cvt_names;
86  SplineChar **chars; /* from all over, glyf table for contours */
87  /* cmap table for encodings */
88  /* hmtx table for widths */
89  /* post table for names */
90  /* Or from CFF table for everything in opentype */
92  int layer_cnt;
94  char *cidregistry, *ordering;
95  int supplement;
97  int subfontcnt;
99  char *inuse; /* What glyphs are used by this font in the ttc */
100 
101  int numtables;
102  /* BASE */
103  uint32 base_start; /* Offset from sof to start of 'BASE' table */
104  /* CFF */
105  uint32 cff_start; /* Offset from sof to start of postscript compact font format */
107  /* cmap */
108  uint32 encoding_start; /* Offset from sof to start of encoding table */
109  uint32 vs_start; /* Offset within 'cmap' to variant selector table */
110  /* gasp */
112  /* glyf */
113  uint32 glyph_start; /* Offset from sof to start of glyph table */
115  /* GDEF */
116  uint32 gdef_start; /* Offset from sof to start of GDEF table (glyph class defn, ligature carets) */
118  /* GPOS */
119  uint32 gpos_start; /* Offset from sof to start of GPOS table */
121  /* GSUB */
122  uint32 gsub_start; /* Offset from sof to start of GSUB table */
124  uint32 g_bounds; /* Filled in with g???_start+g???_length */
125  /* EBDT, bdat */
126  uint32 bitmapdata_start; /* Offset to start of bitmap data */
128  /* EBLT, bloc */
129  uint32 bitmaploc_start; /* Offset to start of bitmap locator data */
131  /* head */
133  /* hhea */
135  /* hmtx */
137  /* kern */
139  /* loca */
140  uint32 glyphlocations_start;/* there are glyph_cnt of these, from maxp tab */
141  uint32 loca_length; /* actually glypn_cnt is wrong. Use the table length (divided by size) instead */
142  /* maxp */
143  uint32 maxp_start; /* maximum number of glyphs */
145  /* name */
146  uint32 copyright_start; /* copyright and fontname */
147  /* post */
148  uint32 postscript_start; /* names for the glyphs, italic angle, etc. */
149  /* OS/2 */
151  /* TYP1 */
152  uint32 typ1_start; /* For Adobe's? Apple's? attempt to stuff a type1 font into an sfnt wrapper */
154  /* vhea */
156  /* vmtx */
158  /* VORG */
160 
161  /* PfEd -- FontForge/PfaEdit specific info */
163  /* TeX -- TeX table, also non-standard */
165  /* BDF -- BDF properties, also non-standard */
167  /* FFTM -- FontForge timestamps */
169 
170  /* MATH Table */
173 
174  /* Info for instructions */
178 
179  unsigned int one_of_many: 1; /* A TTCF file, or a opentype font with multiple fonts */
180  unsigned int obscomplain: 1; /* We've complained about obsolete format 3 in EBDT table */
181  unsigned int cmpcomplain: 1; /* We've complained about compressed format 4 in EBDT */
182  unsigned int unkcomplain: 1; /* We've complained about unknown formats in EBDT */
183  unsigned int comcomplain: 1; /* We've complained about composit formats in EBDT */
184  unsigned int onlystrikes: 1; /* Only read in the bitmaps, not the outlines */
185  unsigned int onlyonestrike: 1; /* Only read in one bitmap (strike) */
186  unsigned int barecff: 1; /* pay attention to the encoding in the cff file, we won't have a cmap */
187 
188  int platform, specific; /* values of the encoding we chose to use */
189 
190  int anchor_class_cnt; /* For GPOS */
191  int anchor_merge_cnt;
193 
195 
197 
198  struct ttf_table *tabs;
199  FPST *possub;
200  char *chosenname;
201  int macstyle;
202  int lookup_cnt; /* Max lookup in current GPOS/GSUB table */
203  int feature_cnt; /* Max feature in current GPOS/GSUB table */
204  struct fontdict *fd; /* For reading in Type42 fonts. Glyph names in postscript section must be associated with glyphs in TTF section */
205  int savecnt;
206  struct savetab {
209  int len;
214  struct otfname *fontstyle_name;
216  struct texdata texdata;
217  int mark_class_cnt;
218  char **mark_classes; /* glyph name list */
219  char **mark_class_names; /* used within ff (utf8) */
220  SplineChar **badgids; /* which use out of range glyph IDs as temporary flags */
221 #ifdef _HAS_LONGLONG
222  long long creationtime; /* seconds since 1970 */
223  long long modificationtime;
224 #else
227 #endif
228  int gasp_cnt;
229  struct gasp *gasp;
230  struct MATH *math;
231  /* Set of errors we found when loading the font */
232  unsigned int bad_ps_fontname: 1;
233  unsigned int bad_glyph_data: 1;
234  unsigned int bad_cff: 1;
235  unsigned int bad_metrics: 1;
236  unsigned int bad_cmap: 1;
237  unsigned int bad_embedded_bitmap: 1;
238  unsigned int bad_gx: 1;
239  unsigned int bad_ot: 1;
240  unsigned int bad_os2_version: 1;
241  unsigned int bad_sfnt_header: 1;
243  struct Base *horiz_base, *vert_base;
244 };
245 
247 
248 #define MAX_TAB 48
249 struct tabdir {
250  int32 version; /* 0x00010000 */
251  uint16 numtab;
252  uint16 searchRange; /* (Max power of 2 <= numtab) *16 */
253  uint16 entrySel; /* Log2(Max power of 2 <= numtab ) */
254  uint16 rangeShift; /* numtab*16 - searchRange */
255  struct taboff {
256  uint32 tag; /* Table name */
257  uint32 checksum;/* for table */
258  uint32 offset; /* to start of table in file */
263  } tabs[MAX_TAB]; /* room for all the above tables */
264  /* Not in any particular order. */
265  struct taboff *ordered[MAX_TAB]; /* Ordered the way the tables should be output in file */
266  struct taboff *alpha[MAX_TAB]; /* Ordered alphabetically by tag for the ttf header */
267 };
268 
269 struct glyphhead {
271  int16 xmin;
272  int16 ymin;
273  int16 xmax;
274  int16 ymax;
275 };
276 
277 struct head {
278  int32 version; /* 0x00010000 */
279  int32 revision; /* 0 */
280  uint32 checksumAdj; /* set to 0, sum entire font, store 0xb1b0afba-sum */
281  uint32 magicNum; /* 0x5f0f3cf5 */
282  uint16 flags; /* 1 */
283  uint16 emunits; /* sf->ascent+sf->descent */
284  int32 createtime[2];/* number of seconds since 1904 */
285  int32 modtime[2];
286  int16 xmin; /* min for entire font */
287  int16 ymin;
288  int16 xmax;
289  int16 ymax;
290  uint16 macstyle; /* 1=>Bold, 2=>Italic */
291  uint16 lowestreadable; /* size in pixels. Say about 10? */
292  int16 dirhint; /* 0=>mixed directional characters, */
293  int16 locais32; /* is the location table 32bits or 16, 0=>16, 1=>32 */
294  int16 glyphformat; /* 0 */
295  uint16 mbz; /* padding */
296 };
297 
298 struct hhead {
299  int32 version; /* 0x00010000 */
300  int16 ascender; /* sf->ascender */
301  int16 descender; /* -sf->descender */
302  int16 linegap; /* 0 */
303  int16 maxwidth; /* of all characters */
304  int16 minlsb; /* How is this different from xmin above? */
305  int16 minrsb;
306  int16 maxextent; /* How is this different from xmax above? */
307  int16 caretSlopeRise;/* Uh... let's say 1? */
308  int16 caretSlopeRun;/* Uh... let's say 0 */
309  /* not exactly specified, but FontValidator wants this to match italicangle */
310  int16 mbz[5];
311  int16 metricformat; /* 0 */
312  uint16 numMetrics; /* just set to glyph count */
313 };
314 
315 struct hmtx {
316  uint16 width; /* NOTE: TTF only allows positive widths!!! */
318 };
319 
320 struct kern {
321  uint16 version; /* 0 */
322  uint16 ntab; /* 1, number of subtables */
323  /* first (and only) subtable */
324  uint16 stversion; /* 0 */
325  uint16 length; /* length of subtable beginning at &stversion */
326  uint16 coverage; /* 1, (set of flags&format) */
327  uint16 nPairs; /* number of kern pairs */
328  uint16 searchRange; /* (Max power of 2 <= nPairs) *6 */
329  uint16 entrySel; /* Log2(Max power of 2 <= nPairs ) */
330  uint16 rangeShift; /* numtab*6 - searchRange */
331  struct kp {
332  uint16 left; /* left glyph num */
333  uint16 right; /* right glyph num */
334  /* table is ordered by these two above treated as uint32 */
335  int16 offset; /* kern amount */
336  } *kerns; /* Array should be nPairs big */
337 };
338 
339 struct maxp {
340  int32 version; /* 0x00010000 */
342  uint16 maxPoints; /* max number of points in a simple glyph */
343  uint16 maxContours; /* max number of paths in a simple glyph */
346  uint16 maxZones; /* 1 */
347  uint16 maxTwilightPts; /* 0 */
348  uint16 maxStorage; /* 0 */
349  uint16 maxFDEFs; /* 0 */
350  uint16 maxIDEFs; /* 0 */
351  uint16 maxStack; /* 0 */
352  uint16 maxglyphInstr;/* 0 */
353  uint16 maxnumcomponents; /* Maximum number of refs in any composit */
355  /* Apple docs say: 0 (if no composits), maximum value 1 (one level of composit) */
356  /* OpenType docs say: 1 (if no composits), any depth allowed */
357 };
358 
359 struct nametab {
360  uint16 format; /* 0 */
361  uint16 numrec; /* 1 */
362  uint16 startOfStrings; /* offset from start of table to start of strings */
363  struct namerec {
364  uint16 platform; /* 3 => MS */
365  uint16 specific; /* 1 */
366  uint16 language; /* 0x0409 */
367  uint16 nameid; /* 0=>copyright, 1=>family, 2=>weight, 4=>fullname */
368  /* 5=>version, 6=>postscript name */
371  } nr[6];
372 };
373 
374 struct os2 {
375  uint16 version; /* 1 */
376  int16 avgCharWid; /* average all chars (v3) see v2 definition below */
377  uint16 weightClass; /* 100=>thin, 200=>extra-light, 300=>light, 400=>normal, */
378  /* 500=>Medium, 600=>semi-bold, 700=>bold, 800=>extra-bold, */
379  /* 900=>black */
380  uint16 widthClass; /* 75=>condensed, 100, 125=>expanded */
381  int16 fstype; /* 0x0008 => allow embedded editing */
382  int16 ysubXSize; /* emsize/5 */
383  int16 ysubYSize; /* emsize/5 */
384  int16 ysubXOff; /* 0 */
385  int16 ysubYOff; /* emsize/5 */
386  int16 ysupXSize; /* emsize/5 */
387  int16 ysupYSize; /* emsize/5 */
388  int16 ysupXOff; /* 0 */
389  int16 ysupYOff; /* emsize/5 */
390  int16 yStrikeoutSize; /* 102/2048 *emsize */
391  int16 yStrikeoutPos; /* 530/2048 *emsize */
392  int16 sFamilyClass; /* ??? 0 */
393  /* high order byte is the "class", low order byte the sub class */
394  /* class = 0 => no classification */
395  /* class = 1 => old style serifs */
396  /* subclass 0, no class; 1 ibm rounded; 2 garalde; 3 venetian; 4 mod venitian; 5 dutch modern; 6 dutch trad; 7 contemporary; 8 caligraphic; 15 misc */
397  /* class = 2 => transitional serifs */
398  /* subclass 0, no class; 1 drect line; 2 script; 15 misc */
399  /* class = 3 => modern serifs */
400  /* subclass: 1, italian; 2, script */
401  /* class = 4 => clarendon serifs */
402  /* subclass: 1, clarendon; 2, modern; 3 trad; 4 newspaper; 5 stub; 6 monotone; 7 typewriter */
403  /* class = 5 => slab serifs */
404  /* subclass: 1, monotone; 2, humanist; 3 geometric; 4 swiss; 5 typewriter */
405  /* class = 7 => freeform serifs */
406  /* subclass: 1, modern */
407  /* class = 8 => sans serif */
408  /* subclass: 1, ibm neogrotesque; 2 humanist; 3 low-x rounded; 4 high-x rounded; 5 neo-grotesque; 6 mod neo-grot; 9 typewriter; 10 matrix */
409  /* class = 9 => ornamentals */
410  /* subclass: 1, engraver; 2 black letter; 3 decorative; 4 3D */
411  /* class = 10 => scripts */
412  /* subclass: 1, uncial; 2 brush joined; 3 formal joined; 4 monotone joined; 5 calligraphic; 6 brush unjoined; 7 formal unjoined; 8 monotone unjoined */
413  /* class = 12 => symbolic */
414  /* subclass: 3 mixed serif; 6 old style serif; 7 neo-grotesque sans; */
415  char panose[10]; /* can be set to zero */
416  uint32 unicoderange[4];
417  /* 1<<0=>ascii, 1<<1 => latin1, 2=>100-17f, 3=>180-24f, 4=>250-2af */
418  /* 5=> 2b0-2ff, 6=>300-36f, ... */
419  char achVendID[4]; /* can be zero */
420  uint16 fsSel; /* 1=> italic, 32=>bold, 64 => regular */
421  /* 2=>underscore, 4=>negative, 8->outlined, 16=>strikeout */
422  /* version 4 of OS/2 */
423  /* 128->don't use win_ascent/descent for line spacing */
424  /* 256=>family varies on weight width slope only */
425  /* 512=>oblique (as opposed to italic) */
426  uint16 firstcharindex; /* minimum unicode encoding */
427  uint16 lastcharindex; /* maximum unicode encoding */
428  uint16 ascender; /* font ascender height (not ascent) */
429  uint16 descender; /* font descender height */
430  uint16 linegap; /* 0 */
431  uint16 winascent; /* ymax */
432  uint16 windescent; /* ymin */
433  uint32 ulCodePage[2];
434  /* 1<<0 => latin1, 1<<1=>latin2, cyrillic, greek, turkish, hebrew, arabic */
435  /* 1<<30 => mac, 1<<31 => symbol */
436  /* OTF stuff (version 2 of OS/2) */
437  short xHeight;
438  short capHeight;
439  short defChar;
440  short breakChar;
441  short maxContext;
442  /* V3 of OS/2 has no additional data */
443  /* V4 of OS/2 has no additional data */
444 
445  int v1_avgCharWid; /* 1&2 Weighted average of the lower case letters and space */
446  int v3_avgCharWid; /* 3&4 average over all non-zero width glyphs */
447 };
448 
449 struct post {
450  int32 formattype; /* 0x00020000 */
451  int32 italicAngle; /* in fixed format */
461 };
462 
463 struct glyphinfo {
464  struct maxp *maxp; /* this one is given to dumpglyphs, rest blank */
465  uint32 *loca;
466  FILE *glyphs;
467  FILE *hmtx;
468  int hmtxlen;
469  FILE *vmtx;
470  int vmtxlen;
471  int next_glyph;
472  int glyph_len;
473  int xmin, ymin, xmax, ymax;
474  BlueData bd;
475  int strikecnt; /* number of bitmaps to dump */
476  int lasthwidth, lastvwidth; /* encoding of last glyph for which we generate a full metrics entry */
477  int hfullcnt, vfullcnt;
478  int flags;
479  int fixed_width;
480  int32 *bsizes;
481  unsigned int onlybitmaps: 1;
482  unsigned int has_instrs: 1;
483  unsigned int is_ttf: 1;
484  SplineFont *sf;
486  int *bygid; /* glyph list */
487  int gcnt;
488  int layer;
489 };
490 
491 struct vorg {
492  uint16 majorVersion; /* 1 */
493  uint16 minorVersion; /* 0 */
494  short defaultVertOriginY; /* Y coord of default vertical origin in the design coordinate system */
495  uint16 numVertOriginYMetrics; /* exceptions to the above, elements in following array */
496 #if 0
497  struct {
498  uint16 glyphindex; /* ordered */
499  short vertOrigin;
500  } origins[];
501 #endif
502 };
503 
504 struct alltabs {
505  struct tabdir tabdir;
506  struct head head;
507  struct hhead hhead;
508  struct hhead vhead;
509  struct maxp maxp;
510  struct os2 os2;
511  struct vorg vorg;
512  FILE *loca;
513  int localen;
514  FILE *name;
515  int namelen;
516  FILE *post;
517  int postlen;
518  FILE *gpos; /* Used instead of kern for opentype (and other glyph positioning) */
519  int gposlen;
520  FILE *gsub; /* Used for ligatures and other substitutions */
521  int gsublen;
522  FILE *gdef; /* If we use mark to base we need this to tell the text processor what things are marks (the opentype docs say it is optional. They are wrong) */
523  int gdeflen;
524  FILE *kern;
525  int kernlen;
526  FILE *cmap;
527  int cmaplen;
528  FILE *headf;
529  int headlen;
530  FILE *hheadf;
531  int hheadlen;
532  FILE *maxpf;
533  int maxplen;
534  FILE *os2f;
535  int os2len;
536  FILE *math;
537  int mathlen;
538  FILE *base;
539  int baselen;
540  FILE *cvtf;
541  int cvtlen;
542  FILE *fpgmf; /* Copied from an original ttf file and dumped out. Never generated */
543  int fpgmlen;
544  FILE *prepf; /* Copied from an original ttf file and dumped out. Never generated */
545  int preplen;
546  FILE *vheadf;
547  int vheadlen;
548  FILE *vorgf;
549  int vorglen;
550  FILE *gaspf;
551  int gasplen;
552  FILE *cfff;
553  int cfflen;
554  FILE *sidf;
555  FILE *sidh;
556  FILE *charset;
557  FILE *encoding;
558  FILE *globalsubrs;
559  FILE *private;
560  FILE *charstrings;
561  FILE *fdselect;
562  FILE *fdarray;
563  FILE *bdat; /* might be EBDT */
564  int bdatlen;
565  FILE *bloc; /* might be EBLC */
566  int bloclen;
567  FILE *ebsc;
568  int ebsclen;
569  FILE *pfed;
570  int pfedlen;
571  FILE *tex;
572  int texlen;
573  FILE *bdf;
574  int bdflen;
575  FILE *fftmf;
576  int fftmlen;
577  FILE *dsigf;
578  int dsiglen;
579  FILE *hdmxf;
580  int hdmxlen;
581  int defwid, nomwid;
582  int sidcnt;
583  int lenpos;
584  int privatelen;
585  unsigned int sidlongoffset: 1;
586  unsigned int cfflongoffset: 1;
587  unsigned int applemode: 1; /* Where apple & ms differ do things apple's way (bitmaps, name table PostScript) */
588  unsigned int opentypemode: 1; /* Where apple & ms differ do things opentype's way (bitmaps, name table PostScript) */
589  /* If both are set then try to generate both types of tables. Some things can't be fudged though (name table postscript) */
590  unsigned int msbitmaps: 1;
591  unsigned int applebitmaps: 1;
592  unsigned int otbbitmaps: 1;
593  unsigned int isotf: 1;
594  unsigned int error: 1;
595  struct glyphinfo gi;
596  int isfixed;
597  struct fd2data *fds;
598  int next_strid;
599 
600  int next_lookup; /* for doing nested lookups in contextual features */
601  short *gn_sid;
602  enum fontformat format;
603  int fontstyle_name_strid; /* For GPOS 'size' */
604  SplineFont *sf;
605  EncMap *map;
606  struct ttf_table *oldcvt;
608 };
609 
610 struct subhead { uint16 first, cnt, delta, rangeoff; }; /* a sub header in 8/16 cmap table */
611 
612 enum touchflags { tf_x=1, tf_y=2, tf_d=4, tf_endcontour=0x80, tf_startcontour=0x40 };
613 
614 struct contexttree {
615  int depth;
616  int branch_cnt; /* count of subbranches of this node */
617  struct ct_branch {
621  struct fpst_rule *ends_here;
622  int rule_cnt; /* count of rules which are active here */
623  struct ct_subs {
624  struct fpst_rule *rule;
625  struct contexttree *branch;/* if the rule ends here this will be null */
627  } *rules;
628  int pending_pos;
632  uint8 markme;
633  int state, next_state;
634  struct contexttree *parent;
635 };
636 
637  /* TrueType Composite glyph flags */
638 #define _ARGS_ARE_WORDS 1
639 #define _ARGS_ARE_XY 2
640 #define _ROUND 4 /* round offsets so componant is on grid */
641 #define _SCALE 8
642 /* 0x10 is reserved */
643 #define _MORE 0x20
644 #define _XY_SCALE 0x40
645 #define _MATRIX 0x80
646 #define _INSTR 0x100
647 #define _USE_MY_METRICS 0x200
648 #define _OVERLAP_COMPOUND 0x400 /* Used in Apple GX fonts */
649  /* Means the components overlap (which? this one and what other?) */
650 /* Described in OpenType specs, not by Apple */
651 /* amusingly, Apple supports but MS does not */
652 /* MS says they support this after Win 2000 */
653 #define _SCALED_OFFSETS 0x800 /* Use Apple definition of offset interpretation */
654 #define _UNSCALED_OFFSETS 0x1000 /* Use MS definition */
655 
656 extern int ttfFixupRef(SplineChar **chars,int i);
657 
658  /* Open type Advanced Typography Tables */
659 extern void otf_dumpgpos(struct alltabs *at, SplineFont *sf);
660 extern void otf_dumpgsub(struct alltabs *at, SplineFont *sf);
661 extern void otf_dumpgdef(struct alltabs *at, SplineFont *sf);
662 extern void otf_dumpbase(struct alltabs *at, SplineFont *sf);
663 extern void otf_dump_dummydsig(struct alltabs *at, SplineFont *sf);
664 extern int gdefclass(SplineChar *sc);
665 
666 extern void ttf_dumpkerns(struct alltabs *at, SplineFont *sf);
667 
668  /* TrueType instructions */
669 extern struct ttf_table *SFFindTable(SplineFont *sf,uint32 tag);
670 extern int TTF__getcvtval(SplineFont *sf,int val);
671 extern int TTF_getcvtval(SplineFont *sf,int val);
673 extern int SSAddPoints(SplineSet *ss,int ptcnt,BasePoint *bp, char *flags);
674 
675  /* Used by both otf and apple */
676 extern int LigCaretCnt(SplineChar *sc);
677 extern uint16 *ClassesFromNames(SplineFont *sf,char **classnames,int class_cnt,
678  int numGlyphs, SplineChar ***glyphs, int apple_kc);
680 
681 
684  struct glyphinfo *gi);
685 extern void AnchorClassDecompose(SplineFont *sf,AnchorClass *_ac, int classcnt, int *subcnts,
686  SplineChar ***marks,SplineChar ***base,
687  SplineChar ***lig,SplineChar ***mkmk,
688  struct glyphinfo *gi);
689 
690 #ifdef _HAS_LONGLONG
691 extern void cvt_unix_to_1904( long long time, int32 result[2]);
692 #else
693 extern void cvt_unix_to_1904( long time, int32 result[2]);
694 #endif
695 
696 
697  /* Non-standard tables */
698  /* My PfEd table for FontForge/PfaEdit specific info */
699 extern void pfed_dump(struct alltabs *at, SplineFont *sf);
700 extern void pfed_read(FILE *ttf,struct ttfinfo *info);
701  /* The TeX table, to contain stuff the TeX people want */
702 extern void tex_dump(struct alltabs *at, SplineFont *sf);
703 extern void tex_read(FILE *ttf,struct ttfinfo *info);
704  /* The BDF table, to contain bdf properties the X people want */
705 extern int ttf_bdf_dump(SplineFont *sf,struct alltabs *at,int32 *sizes);
706 extern void ttf_bdf_read(FILE *ttf,struct ttfinfo *info);
707  /* The FFTM table, to some timestamps I'd like */
708 extern int ttf_fftm_dump(SplineFont *sf,struct alltabs *at);
709 
710  /* The MATH table */
711 extern void otf_dump_math(struct alltabs *at, SplineFont *sf);
712 extern void otf_read_math(FILE *ttf,struct ttfinfo *info);
713 extern void otf_read_math_used(FILE *ttf,struct ttfinfo *info);
714 extern void GuessNamesFromMATH(FILE *ttf,struct ttfinfo *info);
715 
716  /* Parsing advanced typography */
717 extern void readttfkerns(FILE *ttf,struct ttfinfo *info);
718 extern void readttfgsubUsed(FILE *ttf,struct ttfinfo *info);
719 extern void GuessNamesFromGSUB(FILE *ttf,struct ttfinfo *info);
720 extern void readttfgpossub(FILE *ttf,struct ttfinfo *info,int gpos);
721 extern void readttfgdef(FILE *ttf,struct ttfinfo *info);
722 extern void readttfbase(FILE *ttf,struct ttfinfo *info);
723 
724 extern struct otfname *FindAllLangEntries(FILE *ttf, struct ttfinfo *info, int id );
725 
726 /* Known font parameters for 'TeX ' table (fontdims, spacing params, whatever you want to call them) */
727  /* Used by all fonts */
728 #define TeX_Slant CHR('S','l','n','t')
729 #define TeX_Space CHR('S','p','a','c')
730 #define TeX_Stretch CHR('S','t','r','e')
731 #define TeX_Shrink CHR('S','h','n','k')
732 #define TeX_XHeight CHR('X','H','g','t')
733 #define TeX_Quad CHR('Q','u','a','d')
734  /* Used by text fonts */
735 #define TeX_ExtraSp CHR('E','x','S','p')
736  /* Used by all math fonts */
737 #define TeX_MathSp CHR('M','t','S','p')
738  /* Used by math fonts */
739 #define TeX_Num1 CHR('N','u','m','1')
740 #define TeX_Num2 CHR('N','u','m','2')
741 #define TeX_Num3 CHR('N','u','m','3')
742 #define TeX_Denom1 CHR('D','n','m','1')
743 #define TeX_Denom2 CHR('D','n','m','2')
744 #define TeX_Sup1 CHR('S','u','p','1')
745 #define TeX_Sup2 CHR('S','u','p','2')
746 #define TeX_Sup3 CHR('S','u','p','3')
747 #define TeX_Sub1 CHR('S','u','b','1')
748 #define TeX_Sub2 CHR('S','u','b','2')
749 #define TeX_SupDrop CHR('S','p','D','p')
750 #define TeX_SubDrop CHR('S','b','D','p')
751 #define TeX_Delim1 CHR('D','l','m','1')
752 #define TeX_Delim2 CHR('D','l','m','2')
753 #define TeX_AxisHeight CHR('A','x','H','t')
754  /* Used by math extension fonts */
755 #define TeX_DefRuleThick CHR('R','l','T','k')
756 #define TeX_BigOpSpace1 CHR('B','O','S','1')
757 #define TeX_BigOpSpace2 CHR('B','O','S','2')
758 #define TeX_BigOpSpace3 CHR('B','O','S','3')
759 #define TeX_BigOpSpace4 CHR('B','O','S','4')
760 #define TeX_BigOpSpace5 CHR('B','O','S','5')
761 
762 extern void SFDummyUpCIDs(struct glyphinfo *gi,SplineFont *sf);
bp
Definition: action.c:1035
#define sc
Definition: aptex-macros.h:57
void glyphs(int opcode)
Definition: disdvi.c:775
double real
Definition: dvips.h:66
#define info
Definition: dviinfo.c:42
int base
Definition: gsftopk.c:1502
small capitals from c petite p scientific i
Definition: afcover.h:80
unsigned short uint16
Definition: tiff.h:62
short int16
Definition: tiff.h:61
unsigned long uint32
Definition: tiff.h:68
long int32
Definition: tiff.h:67
unsigned char uint8
Definition: tiff.h:60
origins
Definition: baseviews.h:137
list names
Definition: fc-lang.py:151
time_t time()
#define flags
fontformat
Definition: splinefont.h:1953
openflags
Definition: splinefont.h:1914
uni_interp
Definition: splinefont.h:893
void otf_dumpgpos(struct alltabs *at, SplineFont *sf)
Definition: tottfgpos.c:3142
uint16 * ClassesFromNames(SplineFont *sf, char **classnames, int class_cnt, int numGlyphs, SplineChar ***glyphs, int apple_kc)
Definition: tottfgpos.c:1210
int SSAddPoints(SplineSet *ss, int ptcnt, BasePoint *bp, char *flags)
Definition: tottf.c:772
SplineChar ** EntryExitDecompose(SplineFont *sf, AnchorClass *ac, struct glyphinfo *gi)
Definition: tottfgpos.c:411
int ttf_fftm_dump(SplineFont *sf, struct alltabs *at)
Definition: ttfspecial.c:2069
void tex_dump(struct alltabs *at, SplineFont *sf)
Definition: ttfspecial.c:1776
void pfed_read(FILE *ttf, struct ttfinfo *info)
Definition: ttfspecial.c:1536
void otf_dump_dummydsig(struct alltabs *at, SplineFont *sf)
Definition: tottfgpos.c:4591
void pfed_dump(struct alltabs *at, SplineFont *sf)
Definition: ttfspecial.c:817
int TTF_getcvtval(SplineFont *sf, int val)
void otf_dumpgsub(struct alltabs *at, SplineFont *sf)
Definition: tottfgpos.c:3159
int ttfFixupRef(SplineChar **chars, int i)
Definition: parsettf.c:5290
touchflags
Definition: ttf.h:703
@ tf_d
Definition: ttf.h:703
@ tf_startcontour
Definition: ttf.h:703
@ tf_y
Definition: ttf.h:703
@ tf_endcontour
Definition: ttf.h:703
@ tf_x
Definition: ttf.h:703
void tex_read(FILE *ttf, struct ttfinfo *info)
Definition: ttfspecial.c:1881
void SFDummyUpCIDs(struct glyphinfo *gi, SplineFont *sf)
Definition: tottf.c:1303
SplineChar ** SFGlyphsFromNames(SplineFont *sf, char *names)
Definition: tottfgpos.c:544
struct ttf_table * SFFindTable(SplineFont *sf, uint32 tag)
void otf_dumpbase(struct alltabs *at, SplineFont *sf)
Definition: tottfgpos.c:4143
void otf_dumpgdef(struct alltabs *at, SplineFont *sf)
Definition: tottfgpos.c:3321
void AnchorClassDecompose(SplineFont *sf, AnchorClass *_ac, int classcnt, int *subcnts, SplineChar ***marks, SplineChar ***base, SplineChar ***lig, SplineChar ***mkmk, struct glyphinfo *gi)
Definition: tottfgpos.c:334
void cvt_unix_to_1904(long long time, int32 result[2])
Definition: tottf.c:2629
int TTF__getcvtval(SplineFont *sf, int val)
gsub_inusetype
Definition: ttf.h:62
@ git_normal
Definition: ttf.h:62
@ git_justinuse
Definition: ttf.h:62
@ git_findnames
Definition: ttf.h:62
void ttf_bdf_read(FILE *ttf, struct ttfinfo *info)
Definition: ttfspecial.c:2000
int gdefclass(SplineChar *sc)
Definition: tottfgpos.c:3284
void otf_dump_math(struct alltabs *at, SplineFont *sf)
Definition: tottfgpos.c:3923
int LigCaretCnt(SplineChar *sc)
Definition: tottfgpos.c:3172
void ttf_dumpkerns(struct alltabs *at, SplineFont *sf)
Definition: tottfaat.c:348
struct otfname * FindAllLangEntries(FILE *ttf, struct ttfinfo *info, int id)
Definition: parsettf.c:1557
void readttfgsubUsed(FILE *ttf, struct ttfinfo *info)
Definition: parsettfatt.c:2821
void AnchorClassOrder(SplineFont *sf)
void SCinitforinstrs(SplineChar *sc)
void readttfgpossub(FILE *ttf, struct ttfinfo *info, int gpos)
Definition: parsettfatt.c:2831
void GuessNamesFromGSUB(FILE *ttf, struct ttfinfo *info)
Definition: parsettfatt.c:2826
void readttfkerns(FILE *ttf, struct ttfinfo *info)
Definition: parsettfatt.c:2984
void otf_read_math(FILE *ttf, struct ttfinfo *info)
Definition: parsettfatt.c:3574
void otf_read_math_used(FILE *ttf, struct ttfinfo *info)
Definition: parsettfatt.c:3578
#define MAX_TAB
Definition: ttf.h:248
void GuessNamesFromMATH(FILE *ttf, struct ttfinfo *info)
Definition: parsettfatt.c:3582
void readttfbase(FILE *ttf, struct ttfinfo *info)
Definition: parsettfatt.c:3614
int ttf_bdf_dump(SplineFont *sf, struct alltabs *at, int32 *sizes)
void readttfgdef(FILE *ttf, struct ttfinfo *info)
Definition: parsettfatt.c:2836
Definition: ttf.h:566
int hdmxlen
Definition: ttf.h:666
unsigned int msbitmaps
Definition: ttf.h:676
FILE * hheadf
Definition: ttf.h:592
int hheadlen
Definition: ttf.h:593
unsigned int otbbitmaps
Definition: ttf.h:678
struct hhead vhead
Definition: ttf.h:570
SplineFont * sf
Definition: ttf.h:695
FILE * fpgmf
Definition: ttf.h:606
FILE * loca
Definition: ttf.h:574
FILE * cmap
Definition: ttf.h:588
int gsublen
Definition: ttf.h:583
unsigned int error
Definition: ttf.h:681
FILE * vorgf
Definition: ttf.h:612
unsigned int opentypemode
Definition: ttf.h:674
int vorglen
Definition: ttf.h:613
FILE * base
Definition: ttf.h:600
int os2len
Definition: ttf.h:597
FILE * charstrings
Definition: ttf.h:624
EncMap * map
Definition: ttf.h:696
int isfixed
Definition: ttf.h:683
FILE * dsigf
Definition: ttf.h:663
FILE * vheadf
Definition: ttf.h:610
FILE * cfff
Definition: ttf.h:616
int bdatlen
Definition: ttf.h:628
FILE * math
Definition: ttf.h:598
int nomwid
Definition: ttf.h:667
int fftmlen
Definition: ttf.h:662
unsigned int applemode
Definition: ttf.h:673
FILE * fdselect
Definition: ttf.h:625
int defwid
Definition: ttf.h:667
int cmaplen
Definition: ttf.h:589
FILE * fftmf
Definition: ttf.h:661
int namelen
Definition: ttf.h:577
int dsiglen
Definition: ttf.h:664
int oldcvtlen
Definition: ttf.h:607
int bloclen
Definition: ttf.h:630
struct glyphinfo gi
Definition: ttf.h:682
int texlen
Definition: ttf.h:650
int headlen
Definition: ttf.h:591
int maxplen
Definition: ttf.h:595
FILE * tex
Definition: ttf.h:649
int bdflen
Definition: ttf.h:652
FILE * cvtf
Definition: ttf.h:604
unsigned int isotf
Definition: ttf.h:679
int baselen
Definition: ttf.h:601
int sidcnt
Definition: ttf.h:668
int cvtlen
Definition: ttf.h:605
int postlen
Definition: ttf.h:579
FILE * bdat
Definition: ttf.h:627
FILE * charset
Definition: ttf.h:620
FILE * hdmxf
Definition: ttf.h:665
FILE * gsub
Definition: ttf.h:582
int gasplen
Definition: ttf.h:615
FILE * post
Definition: ttf.h:578
FILE * maxpf
Definition: ttf.h:594
int next_lookup
Definition: ttf.h:691
int privatelen
Definition: ttf.h:670
FILE * kern
Definition: ttf.h:586
struct fd2data * fds
Definition: ttf.h:684
unsigned int cfflongoffset
Definition: ttf.h:672
int preplen
Definition: ttf.h:609
int fontstyle_name_strid
Definition: ttf.h:694
FILE * gaspf
Definition: ttf.h:614
int vheadlen
Definition: ttf.h:611
int kernlen
Definition: ttf.h:587
unsigned int applebitmaps
Definition: ttf.h:677
FILE * name
Definition: ttf.h:576
int gdeflen
Definition: ttf.h:585
FILE * bloc
Definition: ttf.h:629
int ebsclen
Definition: ttf.h:632
FILE * sidf
Definition: ttf.h:618
int gposlen
Definition: ttf.h:581
int mathlen
Definition: ttf.h:599
FILE * sidh
Definition: ttf.h:619
FILE * pfed
Definition: ttf.h:647
FILE * headf
Definition: ttf.h:590
struct ttf_table * oldcvt
Definition: ttf.h:697
short * gn_sid
Definition: ttf.h:692
int fpgmlen
Definition: ttf.h:607
FILE * globalsubrs
Definition: ttf.h:622
FILE * encoding
Definition: ttf.h:621
FILE * gdef
Definition: ttf.h:584
enum fontformat format
Definition: ttf.h:693
unsigned int sidlongoffset
Definition: ttf.h:671
FILE * fdarray
Definition: ttf.h:626
int pfedlen
Definition: ttf.h:648
int cfflen
Definition: ttf.h:617
int lenpos
Definition: ttf.h:669
int localen
Definition: ttf.h:575
FILE * bdf
Definition: ttf.h:651
FILE * os2f
Definition: ttf.h:596
FILE * ebsc
Definition: ttf.h:631
FILE * gpos
Definition: ttf.h:580
FILE * prepf
Definition: ttf.h:608
int next_strid
Definition: ttf.h:685
struct contexttree * branch
Definition: ttf.h:619
struct fpst_rule * rule
Definition: ttf.h:624
struct contexttree * branch
Definition: ttf.h:625
uint16 thisclassnum
Definition: ttf.h:626
int state
Definition: ttf.h:728
int rule_cnt
Definition: ttf.h:721
OTLookup * applycursubs
Definition: ttf.h:725
OTLookup * applymarkedsubs
Definition: ttf.h:724
uint8 markme
Definition: ttf.h:727
int depth
Definition: ttf.h:717
int pending_pos
Definition: ttf.h:723
int next_state
Definition: ttf.h:728
struct ct_branch * branches
Definition: ttf.h:719
struct fpst_rule * ends_here
Definition: ttf.h:720
uint16 marked_index
Definition: ttf.h:726
struct ct_subs * rules
Definition: ttf.h:722
uint16 cur_index
Definition: ttf.h:726
struct contexttree * parent
Definition: ttf.h:729
int branch_cnt
Definition: ttf.h:718
Definition: ttf.h:33
SplineChar * sc
Definition: ttf.h:34
struct dup * prev
Definition: ttf.h:37
int uni
Definition: ttf.h:36
int enc
Definition: ttf.h:35
Definition: ttf.h:346
int16 ymin
Definition: ttf.h:349
int16 numContours
Definition: ttf.h:347
int16 ymax
Definition: ttf.h:351
int16 xmin
Definition: ttf.h:348
int16 xmax
Definition: ttf.h:350
int vfullcnt
Definition: ttf.h:532
FILE * glyphs
Definition: ttf.h:521
int gcnt
Definition: ttf.h:544
int lastvwidth
Definition: ttf.h:531
int ymin
Definition: ttf.h:528
int fixed_width
Definition: ttf.h:534
BlueData bd
Definition: ttf.h:529
int strikecnt
Definition: ttf.h:530
int lasthwidth
Definition: ttf.h:531
int flags
Definition: ttf.h:533
int32 * bsizes
Definition: ttf.h:535
unsigned int is_ttf
Definition: ttf.h:539
const int * bygid
Definition: splinesave.c:128
uint32 * loca
Definition: ttf.h:520
FILE * hmtx
Definition: ttf.h:522
int hmtxlen
Definition: ttf.h:523
int next_glyph
Definition: ttf.h:526
SplineFont * sf
Definition: splinesave.c:122
struct maxp * maxp
Definition: ttf.h:519
unsigned int has_instrs
Definition: ttf.h:538
unsigned int onlybitmaps
Definition: ttf.h:537
int xmin
Definition: ttf.h:528
int vmtxlen
Definition: ttf.h:525
int ymax
Definition: ttf.h:528
int xmax
Definition: ttf.h:528
int32 * pointcounts
Definition: ttf.h:542
int hfullcnt
Definition: ttf.h:532
FILE * vmtx
Definition: ttf.h:524
int glyph_len
Definition: ttf.h:527
Definition: ttf.h:354
uint16 lowestreadable
Definition: ttf.h:368
int16 locais32
Definition: ttf.h:370
int32 createtime[2]
Definition: ttf.h:361
int16 glyphformat
Definition: ttf.h:371
uint16 emunits
Definition: ttf.h:360
int16 xmax
Definition: ttf.h:365
int32 modtime[2]
Definition: ttf.h:362
int32 revision
Definition: ttf.h:356
uint32 checksumAdj
Definition: ttf.h:357
uint16 macstyle
Definition: ttf.h:367
uint16 flags
Definition: ttf.h:359
uint16 mbz
Definition: ttf.h:372
int32 version
Definition: ttf.h:355
int16 dirhint
Definition: ttf.h:369
int16 ymin
Definition: ttf.h:364
uint32 magicNum
Definition: ttf.h:358
int16 ymax
Definition: ttf.h:366
int16 xmin
Definition: ttf.h:363
Definition: ttf.h:375
uint16 numMetrics
Definition: ttf.h:389
int16 descender
Definition: ttf.h:378
int16 metricformat
Definition: ttf.h:388
int16 linegap
Definition: ttf.h:379
int16 caretSlopeRun
Definition: ttf.h:385
int16 maxwidth
Definition: ttf.h:380
int16 ascender
Definition: ttf.h:377
int16 minrsb
Definition: ttf.h:382
int32 version
Definition: ttf.h:376
int16 mbz[5]
Definition: ttf.h:387
int16 maxextent
Definition: ttf.h:383
int16 caretSlopeRise
Definition: ttf.h:384
int16 minlsb
Definition: ttf.h:381
Definition: ttf.h:315
int16 lsb
Definition: ttf.h:317
uint16 width
Definition: ttf.h:316
Definition: ttf.h:331
int16 offset
Definition: ttf.h:335
uint16 right
Definition: ttf.h:333
uint16 left
Definition: ttf.h:332
Definition: afm2pl.c:145
uint16 stversion
Definition: ttf.h:403
uint16 entrySel
Definition: ttf.h:408
uint16 coverage
Definition: ttf.h:405
uint16 rangeShift
Definition: ttf.h:409
uint16 version
Definition: ttf.h:400
struct kp * kerns
Definition: ttf.h:410
uint16 nPairs
Definition: ttf.h:406
uint16 length
Definition: ttf.h:404
uint16 searchRange
Definition: ttf.h:407
uint16 ntab
Definition: ttf.h:401
Definition: afm2pl.c:139
Definition: ttf.h:413
uint16 maxZones
Definition: ttf.h:420
uint16 maxStack
Definition: ttf.h:425
uint16 maxFDEFs
Definition: ttf.h:423
uint16 maxCompositPts
Definition: ttf.h:418
int32 version
Definition: ttf.h:414
uint16 maxStorage
Definition: ttf.h:422
uint16 maxTwilightPts
Definition: ttf.h:421
uint16 maxPoints
Definition: ttf.h:416
uint16 maxnumcomponents
Definition: ttf.h:427
uint16 maxCompositCtrs
Definition: ttf.h:419
uint16 maxcomponentdepth
Definition: ttf.h:428
uint16 numGlyphs
Definition: ttf.h:415
uint16 maxglyphInstr
Definition: ttf.h:426
uint16 maxContours
Definition: ttf.h:417
uint16 maxIDEFs
Definition: ttf.h:424
uint16 strlen
Definition: ttf.h:369
uint16 nameid
Definition: ttf.h:367
uint16 language
Definition: ttf.h:366
uint16 stroff
Definition: ttf.h:370
uint16 specific
Definition: ttf.h:365
uint16 platform
Definition: ttf.h:364
Definition: ttf.h:359
uint16 numrec
Definition: ttf.h:361
struct nametab::namerec nr[6]
uint16 format
Definition: ttf.h:360
uint16 startOfStrings
Definition: ttf.h:362
Definition: ttf.h:443
uint16 version
Definition: ttf.h:444
uint16 fsSel
Definition: ttf.h:489
int v3_avgCharWid
Definition: ttf.h:515
short breakChar
Definition: ttf.h:509
int16 ysupXOff
Definition: ttf.h:457
int16 fstype
Definition: ttf.h:450
int16 ysubXSize
Definition: ttf.h:451
uint16 widthClass
Definition: ttf.h:449
int16 yStrikeoutPos
Definition: ttf.h:460
short xHeight
Definition: ttf.h:506
uint16 lastcharindex
Definition: ttf.h:496
int16 ysupXSize
Definition: ttf.h:455
short capHeight
Definition: ttf.h:507
int16 ysubXOff
Definition: ttf.h:453
int16 sFamilyClass
Definition: ttf.h:461
int v1_avgCharWid
Definition: ttf.h:514
uint16 descender
Definition: ttf.h:498
int16 yStrikeoutSize
Definition: ttf.h:459
int16 ysubYOff
Definition: ttf.h:454
uint16 firstcharindex
Definition: ttf.h:495
uint16 weightClass
Definition: ttf.h:446
short defChar
Definition: ttf.h:508
char panose[10]
Definition: ttf.h:484
int16 ysubYSize
Definition: ttf.h:452
uint32 ulCodePage[2]
Definition: ttf.h:502
int16 ysupYOff
Definition: ttf.h:458
short maxContext
Definition: ttf.h:510
uint16 windescent
Definition: ttf.h:501
int16 ysupYSize
Definition: ttf.h:456
uint16 linegap
Definition: ttf.h:499
char achVendID[4]
Definition: ttf.h:488
int16 avgCharWid
Definition: ttf.h:445
uint16 winascent
Definition: ttf.h:500
uint16 ascender
Definition: ttf.h:497
Definition: ttf.h:449
uint32 minmem42
Definition: ttf.h:455
uint16 numglyphs
Definition: ttf.h:459
int16 uwidth
Definition: ttf.h:453
uint32 maxmem42
Definition: ttf.h:456
int32 formattype
Definition: ttf.h:450
uint32 maxmem1
Definition: ttf.h:458
uint32 minmem1
Definition: ttf.h:457
uint32 isfixed
Definition: ttf.h:454
int16 upos
Definition: ttf.h:452
uint16 glyphnameindex[1]
Definition: ttf.h:460
int32 italicAngle
Definition: ttf.h:451
Definition: tfmaux.c:31
Definition: ttf.h:701
uint16 rangeoff
Definition: ttf.h:701
uint16 cnt
Definition: ttf.h:701
uint16 delta
Definition: ttf.h:701
uint16 first
Definition: ttf.h:701
uint32 checksum
Definition: ttf.h:257
uint16 orderingval
Definition: ttf.h:262
uint32 offset
Definition: ttf.h:258
uint16 dup_of
Definition: ttf.h:261
FILE * data
Definition: ttf.h:260
uint32 tag
Definition: ttf.h:256
uint32 length
Definition: ttf.h:259
Definition: ttf.h:334
uint16 rangeShift
Definition: ttf.h:339
uint16 searchRange
Definition: ttf.h:337
uint16 numtab
Definition: ttf.h:336
struct taboff * alpha[48]
Definition: ttf.h:343
int32 version
Definition: ttf.h:335
uint16 entrySel
Definition: ttf.h:338
struct taboff * ordered[48]
Definition: ttf.h:342
struct taboff tabs[48]
Definition: ttf.h:340
Definition: ttf.h:323
Definition: xmlparse.c:179
uint32 tag
Definition: ttf.h:207
uint32 offset
Definition: ttf.h:208
Definition: ttf.h:76
uint32 gpos_start
Definition: ttf.h:156
KernClass * vklast
Definition: ttf.h:252
uint32 gpos_length
Definition: ttf.h:157
BDFFont * bitmaps
Definition: ttf.h:130
char * fontlog
Definition: ttf.h:121
int glyph_cnt
Definition: ttf.h:82
char * weight
Definition: ttf.h:104
int fstype
Definition: ttf.h:112
unsigned int use_typo_metrics
Definition: ttf.h:92
unsigned int weight_width_slope_only
Definition: ttf.h:93
KernClass * vkhead
Definition: ttf.h:252
uint32 gdef_length
Definition: ttf.h:154
char * inuse
Definition: ttf.h:136
struct gasp * gasp
Definition: ttf.h:294
uint32 fpgm_start
Definition: ttf.h:232
char * cidregistry
Definition: ttf.h:131
uint32 cff_start
Definition: ttf.h:142
unsigned int unkcomplain
Definition: ttf.h:237
uint32 gsub_length
Definition: ttf.h:160
long long modificationtime
Definition: ttf.h:292
unsigned int barecff
Definition: ttf.h:241
AnchorClass * alast
Definition: ttf.h:250
uint32 glyphlocations_start
Definition: ttf.h:185
uint32 cff_length
Definition: ttf.h:143
uint32 maxp_len
Definition: ttf.h:189
unsigned int is_ttc
Definition: ttf.h:84
uint32 encoding_start
Definition: ttf.h:145
uint32 glyph_start
Definition: ttf.h:150
unsigned int one_of_many
Definition: ttf.h:234
unsigned int index_to_loc_is_long
Definition: ttf.h:83
char * chosenname
Definition: ttf.h:267
double strokewidth
Definition: ttf.h:74
uint32 fpgm_len
Definition: ttf.h:232
uint16 fontstyle_id
Definition: ttf.h:278
uint16 design_range_bottom
Definition: ttf.h:280
uint32 gasp_start
Definition: ttf.h:148
unsigned int to_order2
Definition: ttf.h:89
unsigned int onlystrikes
Definition: ttf.h:239
long long creationtime
Definition: ttf.h:291
int ascent
Definition: ttf.h:78
uint32 gdef_start
Definition: ttf.h:153
int vertical_origin
Definition: ttf.h:80
unsigned int bad_cmap
Definition: ttf.h:301
SplineChar ** chars
Definition: ttf.h:123
uint32 os2_start
Definition: ttf.h:195
uint32 gsub_start
Definition: ttf.h:159
uint32 bdf_start
Definition: ttf.h:211
int mark_class_cnt
Definition: ttf.h:282
uint32 prep_start
Definition: ttf.h:231
struct otfname * fontstyle_name
Definition: ttf.h:279
uint32 hhea_start
Definition: ttf.h:176
uint32 base_start
Definition: ttf.h:140
unsigned int bad_ps_fontname
Definition: ttf.h:297
uint32 vhea_start
Definition: ttf.h:200
uint32 copyright_start
Definition: ttf.h:191
int layer_cnt
Definition: ttf.h:129
int descent
Definition: ttf.h:78
char * ordering
Definition: ttf.h:131
uint32 bitmapdata_length
Definition: ttf.h:164
SplineChar ** badgids
Definition: ttf.h:290
uint32 postscript_start
Definition: ttf.h:193
unsigned int bad_embedded_bitmap
Definition: ttf.h:302
int uwidth
Definition: ttf.h:110
uint32 tex_start
Definition: ttf.h:209
int anchor_merge_cnt
Definition: ttf.h:249
int lookup_cnt
Definition: ttf.h:269
int numtables
Definition: ttf.h:138
uint32 vs_start
Definition: ttf.h:146
unsigned int optimized_for_cleartype
Definition: ttf.h:94
unsigned int complainedbeyondglyfend
Definition: ttf.h:87
OTLookup * gsub_lookups
Definition: ttf.h:254
char * xuid
Definition: ttf.h:107
unsigned int bad_glyph_data
Definition: ttf.h:298
uint32 hmetrics_start
Definition: ttf.h:178
struct Base * vert_base
Definition: ttf.h:308
uint32 head_start
Definition: ttf.h:174
unsigned int bad_gx
Definition: ttf.h:303
SplineFont ** subfonts
Definition: ttf.h:135
uint32 glyph_length
Definition: ttf.h:151
uint32 maxp_start
Definition: ttf.h:188
uint32 kern_start
Definition: ttf.h:183
int upos
Definition: ttf.h:110
char * fontname
Definition: ttf.h:106
int width_cnt
Definition: ttf.h:81
char ** mark_class_names
Definition: ttf.h:284
int feature_cnt
Definition: ttf.h:270
unsigned int onlyonestrike
Definition: ttf.h:240
OTLookup * cur_lookups
Definition: ttf.h:254
int gasp_cnt
Definition: ttf.h:293
OTLookup * gpos_lookups
Definition: ttf.h:254
unsigned int comcomplain
Definition: ttf.h:238
int32 last_size_pos
Definition: ttf.h:276
short gasp_version
Definition: ttf.h:118
int supplement
Definition: ttf.h:132
uint32 typ1_length
Definition: ttf.h:198
unsigned int bad_ot
Definition: ttf.h:304
uint32 prep_len
Definition: ttf.h:231
LayerInfo * layers
Definition: ttf.h:128
enum uni_interp uni_interp
Definition: ttf.h:115
uint32 bitmaploc_start
Definition: ttf.h:166
int uniqueid
Definition: ttf.h:108
unsigned int cmpcomplain
Definition: ttf.h:236
unsigned int is_onebyte
Definition: ttf.h:85
int emsize
Definition: ttf.h:77
uint32 vorg_start
Definition: ttf.h:204
double cidfontversion
Definition: ttf.h:96
struct ttflangname * names
Definition: ttf.h:120
int savecnt
Definition: ttf.h:274
KernClass * khead
Definition: ttf.h:252
short os2_version
Definition: ttf.h:117
uint16 design_range_top
Definition: ttf.h:280
char * copyright
Definition: ttf.h:101
uint32 fftm_start
Definition: ttf.h:213
unsigned int bad_sfnt_header
Definition: ttf.h:306
int specific
Definition: ttf.h:246
uint32 cvt_len
Definition: ttf.h:230
char ** mark_classes
Definition: ttf.h:283
uint32 math_length
Definition: ttf.h:227
unsigned int bad_metrics
Definition: ttf.h:300
uint16 design_size
Definition: ttf.h:277
int dupnamestate
Definition: ttf.h:119
unsigned int twobytesymbol
Definition: ttf.h:86
uint32 pfed_start
Definition: ttf.h:207
uint32 math_start
Definition: ttf.h:226
int macstyle
Definition: ttf.h:268
char ** cvt_names
Definition: ttf.h:122
uint32 bitmaploc_length
Definition: ttf.h:167
unsigned int bad_os2_version
Definition: ttf.h:305
struct ttf_table * tabs
Definition: ttf.h:263
unsigned int strokedfont
Definition: ttf.h:91
uint32 bitmapdata_start
Definition: ttf.h:163
unsigned int obscomplain
Definition: ttf.h:235
Layer guidelines
Definition: ttf.h:307
struct fontdict * fd
Definition: ttf.h:273
struct Base * horiz_base
Definition: ttf.h:308
struct savetab * savetab
Definition: ttf.h:275
uint32 typ1_start
Definition: ttf.h:197
FPST * possub
Definition: ttf.h:264
uint32 g_bounds
Definition: ttf.h:161
unsigned int bad_cff
Definition: ttf.h:299
unsigned int extensionrequested
Definition: ttf.h:88
char * familyname
Definition: ttf.h:102
int subfontcnt
Definition: ttf.h:134
EncMap * map
Definition: ttf.h:114
char * fontcomments
Definition: ttf.h:121
char * fullname
Definition: ttf.h:103
int anchor_class_cnt
Definition: ttf.h:248
int platform
Definition: ttf.h:246
KernClass * klast
Definition: ttf.h:252
enum openflags openflags
Definition: ttf.h:97
uint32 vmetrics_start
Definition: ttf.h:202
double italicAngle
Definition: ttf.h:72
unsigned int complainedmultname
Definition: ttf.h:90
uint32 loca_length
Definition: ttf.h:186
unsigned int apply_lsb
Definition: ttf.h:95
AnchorClass * ahead
Definition: ttf.h:250
uint32 cvt_start
Definition: ttf.h:230
char * version
Definition: ttf.h:105
struct MATH * math
Definition: ttf.h:295
Definition: strexpr.c:21
Definition: ttf.h:548
uint16 minorVersion
Definition: ttf.h:550
uint16 majorVersion
Definition: ttf.h:549
short defaultVertOriginY
Definition: ttf.h:551
uint16 numVertOriginYMetrics
Definition: ttf.h:552
#define FILE
Definition: t1stdio.h:34
#define chars