X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=flower%2Fparse-afm.cc;h=00c348e79f361ddb083b9a4ba85847192249e800;hb=8623ab5af38288c4dc029fff87af3fc69adb1daa;hp=59f9bf012f8005e08ebd5be117befbff89ef4506;hpb=c659cb200486c2f908703696a1b2873e78c8160a;p=lilypond.git diff --git a/flower/parse-afm.cc b/flower/parse-afm.cc index 59f9bf012f..00c348e79f 100644 --- a/flower/parse-afm.cc +++ b/flower/parse-afm.cc @@ -79,6 +79,38 @@ Morten Welinder September 1999. #include "warn.hh" +/* your basic constants */ +#define TRUE 1 +#define FALSE 0 +#define EOL '\n' /* end-of-line indicator */ +#define MAX_NAME 4096 /* max length for identifiers */ + + + +/* Flags that can be AND'ed together to specify exactly what + * information from the AFM file should be saved. + */ +#define P_G 0x01 /* 0000 0001 */ /* Global Font Info */ +#define P_W 0x02 /* 0000 0010 */ /* Character Widths ONLY */ +#define P_M 0x06 /* 0000 0110 */ /* All Char Metric Info */ +#define P_P 0x08 /* 0000 1000 */ /* Pair Kerning Info */ +#define P_T 0x10 /* 0001 0000 */ /* Track Kerning Info */ +#define P_C 0x20 /* 0010 0000 */ /* Composite Char Info */ + + +/* Commonly used flags + */ +#define P_GW\ + (P_G | P_W) +#define P_GM\ + (P_G | P_M) +#define P_GMP\ + (P_G | P_M | P_P) +#define P_GMK\ + (P_G | P_M | P_P | P_T) +#define P_GALL\ + (P_G | P_M | P_P | P_T | P_C) + #define METATYPE1_BUG /* Parse Metatype1's (version unknown) 'Generated' global tag as comment. */