summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdfm-x/dvi.h
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2020-06-27 22:12:55 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2020-06-27 22:12:55 +0000
commit89512d1f7c29187e836317d91edd4f189d2f2296 (patch)
treefae937be9bd5d2f7341904e54753a618fabed614 /Build/source/texk/dvipdfm-x/dvi.h
parente9f99c166c22a7382f45b1ce1415159345ea4747 (diff)
Workaround for \phantom text annot issue (S. Hirata).
git-svn-id: svn://tug.org/texlive/trunk@55681 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfm-x/dvi.h')
-rw-r--r--Build/source/texk/dvipdfm-x/dvi.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/Build/source/texk/dvipdfm-x/dvi.h b/Build/source/texk/dvipdfm-x/dvi.h
index 720db74b841..ab29f3b6a46 100644
--- a/Build/source/texk/dvipdfm-x/dvi.h
+++ b/Build/source/texk/dvipdfm-x/dvi.h
@@ -82,6 +82,17 @@ extern int dvi_locate_font (const char *name, spt_t ptsize);
* footnote and page number in link annotation.
*/
extern void dvi_link_annot (int flag);
+
+/* linkmode
+ * To capture \phantom's, DVI "right" instructions are also taken into
+ * account in calculation of annotaion rectangle.
+ * Mode 1 for catching phantoms.
+ * dvi_set_phantom_height() specifies the height of phantom box (default
+ * is the current font size).
+ */
+extern void dvi_set_linkmode (int mode);
+extern void dvi_set_phantom_height (double height, double depth);
+
/* The followings are for calculating bounding box of text for annotation.
* DVI uses push/pop to do line-feed-carriage-return. So line breaking is
* handled by inspecting current depth of DVI register stack.