Skip to content

Commit

Permalink
[dvipdfmx] ChangeLog etc (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-tk committed Apr 29, 2023
1 parent 262e2db commit 52437ef
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 8 deletions.
18 changes: 18 additions & 0 deletions source/texk/dvipdfm-x/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
2023-04-29 TANAKA Takuji <[email protected]>

* {vf,tfm}.c:
Fallback multibyte characters in virtual fonts to
OFM fonts for (u)pTeX.
https://github.com/texjporg/tex-jp-build/issues/99
* configure.ac: version 20230429.
* dvipdfmx-upjf.test, Makefile_upjf, tests/upjf-r00.{ofm,opl},
tests/upjv-r00.{ofm,opl}, tests/upjf1-r.{tfm,pl},
tests/upjf1_{full,omit}.{vf,zvp0}:
Add new tests for fallback virtual font to OFM.

The rule for virtual fonts (VF) fallback is extended:
If a VF has no entry of a codepoint and the first
MAPFONT designates an OFM for (u)pTeX, then we designate the
glyph (usually with a fullwidth metric) of the same codepoint
with the same metrics of the codepoint in the OFM.

2023-03-09 Karl Berry <[email protected]>

* TL'23 release.
Expand Down
2 changes: 1 addition & 1 deletion source/texk/dvipdfm-x/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ dnl This file is free software; the copyright holder
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
dnl
AC_INIT([dvipdfm-x (TeX Live)], [20220710], [[email protected]])
AC_INIT([dvipdfm-x (TeX Live)], [20230429], [[email protected]])
AC_PREREQ([2.65])
AC_CONFIG_SRCDIR([agl.c])
AC_CONFIG_AUX_DIR([../../build-aux])
Expand Down
3 changes: 1 addition & 2 deletions source/texk/dvipdfm-x/dvipdfmx-upjf.test
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/sh -vx
# $Id$
# Copyright 2020-2022 Japanese TeX Development Community <[email protected]>
# Copyright 2020-2023 Japanese TeX Development Community <[email protected]>
# You may freely use, modify and/or distribute this file.

TEXMFCNF=$srcdir/../kpathsea
Expand Down Expand Up @@ -86,4 +86,3 @@ test -z "$failed" && exit 0
echo
echo "failed tests:$failed"
exit 1

13 changes: 8 additions & 5 deletions source/texk/dvipdfm-x/vf.c
Original file line number Diff line number Diff line change
Expand Up @@ -414,18 +414,21 @@ void vf_set_char(int32_t ch, int vf_font)
dvi_vf_init (default_font);
if (ch >= vf_fonts[vf_font].num_chars ||
!(start = (vf_fonts[vf_font].ch_pkt)[ch])) {
if (tfm_is_jfm(vf_fonts[vf_font].dev_fonts[0].tfm_id) &&
int is_jfm = tfm_is_jfm(vf_fonts[vf_font].dev_fonts[0].tfm_id);
if (is_jfm &&
ch < 0x1000000 && dpx_conf.compat_mode != dpx_mode_xdv_mode) {
/* fallback multibyte character for (u)pTeX */
if (dpx_conf.verbose_level == 1)
if (vf_fonts[vf_font].message_flag == 0) {
WARN ("Fallback multibyte character in virtual font: VF:%s to TFM:%s",
vf_fonts[vf_font].tex_name, vf_fonts[vf_font].dev_fonts[0].name);
WARN ("Fallback multibyte character in virtual font: VF:%s to %s:%s",
vf_fonts[vf_font].tex_name, is_jfm==2 ? "OFM" : "TFM",
vf_fonts[vf_font].dev_fonts[0].name);
vf_fonts[vf_font].message_flag = 1;
}
if (dpx_conf.verbose_level > 1)
WARN ("Fallback multibyte character in virtual font: VF:%s char=0x%06x(%d) to TFM:%s",
vf_fonts[vf_font].tex_name, ch, ch, vf_fonts[vf_font].dev_fonts[0].name);
WARN ("Fallback multibyte character in virtual font: VF:%s char=0x%06x(%d) to %s:%s",
vf_fonts[vf_font].tex_name, ch, ch, is_jfm==2 ? "OFM" : "TFM",
vf_fonts[vf_font].dev_fonts[0].name);
dvi_set (ch);
dvi_vf_finish();
return;
Expand Down

0 comments on commit 52437ef

Please sign in to comment.