diff options
Diffstat (limited to 'print/tex-xdvik/files/patch-texk-xdvik-dvi-init.h')
-rw-r--r-- | print/tex-xdvik/files/patch-texk-xdvik-dvi-init.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/print/tex-xdvik/files/patch-texk-xdvik-dvi-init.h b/print/tex-xdvik/files/patch-texk-xdvik-dvi-init.h new file mode 100644 index 000000000000..9956c0c28432 --- /dev/null +++ b/print/tex-xdvik/files/patch-texk-xdvik-dvi-init.h @@ -0,0 +1,45 @@ +--- texk/xdvik/dvi-init.h.orig 2019-07-27 23:56:42 UTC ++++ texk/xdvik/dvi-init.h +@@ -99,6 +99,12 @@ struct glyph { + char *pixmap2_gc2; /* separate image data for drawing image to globals.gc.fore2 */ + #endif /* GREY */ + struct bitmap bitmap2; /* shrunken bitmap for character */ ++#ifdef PTEX ++ int tdir; ++#endif /* PTEX */ ++ short x3, y3; /* x and y offset in pixels (backup) */ ++ struct bitmap bitmap3; /* bitmap for character (backup) */ ++ float matrix[2][2]; + }; + + /* +@@ -130,6 +136,9 @@ struct macro { + #define FONT_IN_USE 1 /* used for housekeeping */ + #define FONT_LOADED 2 /* if font file has been read */ + #define FONT_VIRTUAL 4 /* if font is virtual */ ++#ifdef PTEX ++#define FONT_KANJI 8 /* if font is kanji */ ++#endif + + /* forward declarations */ + struct font; +@@ -155,6 +164,11 @@ struct font { + struct glyph *glyph; + /* these fields are used by (loaded) virtual fonts */ + struct font **vf_table; /* list of fonts used by this vf */ ++#ifdef PTEX ++ struct glyph **kglyph; ++ int ft2_index; ++ int dir; ++#endif /* PTEX */ + struct tn *vf_chain; /* ditto, if TeXnumber >= VFTABLELEN */ + struct font *first_font; /* first font defined */ + struct macro *macro; +@@ -174,6 +188,7 @@ struct tn { + }; + + ++extern void free_bitmap2(struct glyph *g); + extern void reset_fonts(void); + #if COLOR + extern void reset_colors(void); |