summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Build/source/texk/dvipsk/ChangeLog6
-rw-r--r--Build/source/texk/dvipsk/tfmload.c9
2 files changed, 14 insertions, 1 deletions
diff --git a/Build/source/texk/dvipsk/ChangeLog b/Build/source/texk/dvipsk/ChangeLog
index bfe6e740052..052ceed3248 100644
--- a/Build/source/texk/dvipsk/ChangeLog
+++ b/Build/source/texk/dvipsk/ChangeLog
@@ -1,3 +1,9 @@
+2022-02-27 TANAKA Takuji <ttk@t-lab.opal.ne.jp>
+
+ * tfmload.c:
+ Warn if interpreting OFM FONTDIR as pTeX vertical writing
+ with option -d 4.
+
2022-03-21 Karl Berry <karl@tug.org>
* TL'22 release.
diff --git a/Build/source/texk/dvipsk/tfmload.c b/Build/source/texk/dvipsk/tfmload.c
index 722c9f5ada5..1b354834283 100644
--- a/Build/source/texk/dvipsk/tfmload.c
+++ b/Build/source/texk/dvipsk/tfmload.c
@@ -160,8 +160,15 @@ tfmload(register fontdesctype *curfnt)
for (i=0; i<8; i++) li=tfm32();
if (!noptex && font_level==1 && ec>=0x2E00) {
curfnt->iswide = 1;
- if (li==5) /* interpret FONTDIR RT as pTeX vertical writing */
+ if (li==5) { /* interpret FONTDIR RT as pTeX vertical writing */
curfnt->dir = 9;
+#ifdef DEBUG
+ if (dd(D_FONTS))
+ fprintf_str(stderr,
+ "We will interpret font (%s.ofm) direction as pTeX vertical writing.\n",
+ curfnt->name);
+#endif /* DEBUG */
+ }
}
if (font_level>1 || hd<2 || bc<0 || ec<0 || nw<0
|| bc>ec+1 || ec>65535 || nw>65536)