Change the translation of the "Help" menu item to "?", so that the menu can be displa...
[reactos.git] / rosapps / smartpdf / fitz / include / fitz / wld_font.h
1 typedef struct fz_font_s fz_font;
2 typedef struct fz_hmtx_s fz_hmtx;
3 typedef struct fz_vmtx_s fz_vmtx;
4 typedef struct fz_glyph_s fz_glyph;
5 typedef struct fz_glyphcache_s fz_glyphcache;
6
7 struct fz_hmtx_s
8 {
9 unsigned short lo;
10 unsigned short hi;
11 int w; /* type3 fonts can be big! */
12 };
13
14 struct fz_vmtx_s
15 {
16 unsigned short lo;
17 unsigned short hi;
18 short x;
19 short y;
20 short w;
21 };
22
23 struct fz_font_s
24 {
25 int refs;
26 char name[32];
27
28 fz_error* (*render)(fz_glyph*, fz_font*, int, fz_matrix);
29 void (*drop)(fz_font *);
30
31 int wmode;
32 fz_irect bbox;
33
34 int nhmtx, hmtxcap;
35 fz_hmtx dhmtx;
36 fz_hmtx *hmtx;
37
38 int nvmtx, vmtxcap;
39 fz_vmtx dvmtx;
40 fz_vmtx *vmtx;
41 };
42
43 struct fz_glyph_s
44 {
45 int x, y, w, h;
46 unsigned char *samples;
47 };
48
49 void fz_initfont(fz_font *font, char *name);
50 fz_font *fz_keepfont(fz_font *font);
51 void fz_dropfont(fz_font *font);
52 void fz_debugfont(fz_font *font);
53 void fz_setfontwmode(fz_font *font, int wmode);
54 void fz_setfontbbox(fz_font *font, int xmin, int ymin, int xmax, int ymax);
55 void fz_setdefaulthmtx(fz_font *font, int w);
56 void fz_setdefaultvmtx(fz_font *font, int y, int w);
57 fz_error *fz_addhmtx(fz_font *font, int lo, int hi, int w);
58 fz_error *fz_addvmtx(fz_font *font, int lo, int hi, int x, int y, int w);
59 fz_error *fz_endhmtx(fz_font *font);
60 fz_error *fz_endvmtx(fz_font *font);
61 fz_hmtx fz_gethmtx(fz_font *font, int cid);
62 fz_vmtx fz_getvmtx(fz_font *font, int cid);
63
64 fz_error *fz_newglyphcache(fz_glyphcache **arenap, int slots, int size);
65 fz_error *fz_renderglyph(fz_glyphcache*, fz_glyph*, fz_font*, int, fz_matrix);
66 void fz_debugglyphcache(fz_glyphcache *);
67 void fz_dropglyphcache(fz_glyphcache *);
68