From 89512d1f7c29187e836317d91edd4f189d2f2296 Mon Sep 17 00:00:00 2001 From: Akira Kakuto Date: Sat, 27 Jun 2020 22:12:55 +0000 Subject: Workaround for \phantom text annot issue (S. Hirata). git-svn-id: svn://tug.org/texlive/trunk@55681 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/dvipdfm-x/dvi.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Build/source/texk/dvipdfm-x/dvi.h') 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. -- cgit v1.2.3