1 #pragma src "/sys/src/libttf"
4 typedef struct TTTable TTTable;
5 typedef struct TTChMap TTChMap;
6 typedef struct TTPoint TTPoint;
7 typedef struct TTGlyph TTGlyph;
8 typedef struct TTGlyphInfo TTGlyphInfo;
9 typedef struct TTFontU TTFontU;
10 typedef struct TTFont TTFont;
11 typedef struct TTFunction TTFunction;
12 typedef struct TTGState TTGState;
13 typedef struct TTBitmap TTBitmap;
14 typedef struct TTKern TTKern;
15 typedef struct Biobuf Biobuf;
24 int start, end, delta;
38 int width, height, stride;
43 int xmin, xmax, ymin, ymax;
44 int xminpx, xmaxpx, yminpx, ymaxpx;
72 int rperiod, rphase, rthold;
78 int deltabase, deltashift;
80 u32int singlewval, singlewci;
102 short xmin, ymin, xmax, ymax;
110 u16int maxComponentPoints;
111 u16int maxComponentCountours;
113 u16int maxTwilightPoints;
115 u16int maxFunctionDefs;
116 u16int maxInstructionDefs;
117 u16int maxStackElements;
118 u16int maxSizeOfInstructions;
119 u16int maxComponentElements;
120 u16int maxComponentDepth;
124 u16int advanceWidthMax;
125 u16int minLeftSideBearing;
126 u16int minRightSideBearing;
128 u16int numOfLongHorMetrics;
135 int ascentpx, descentpx;
139 TTPoint *twilight, *twiorg;
147 TTFont *ttfopen(char *, int, int);
148 TTFont *ttfscale(TTFont *, int, int);
149 void ttfclose(TTFont *);
150 int ttffindchar(TTFont *, Rune);
151 int ttfenumchar(TTFont *, Rune, Rune *);
152 TTGlyph *ttfgetglyph(TTFont *, int, int);
153 void ttfputglyph(TTGlyph *);
154 int ttfgetcontour(TTGlyph *, int, float **, int *);
164 TTBitmap *ttfrender(TTFont *, char *, char *, int, int, int, char **);
165 TTBitmap *ttfrunerender(TTFont *, Rune *, Rune *, int, int, int, Rune **);
166 TTBitmap *ttfnewbitmap(int, int);
167 void ttffreebitmap(TTBitmap *);
168 void ttfblit(TTBitmap *, int, int, TTBitmap *, int, int, int, int);