From b5f6c3bb7bbeb05e867211e7eebeadaa2daed54f Mon Sep 17 00:00:00 2001 From: Hironobu Yamashita Date: Tue, 2 Apr 2019 13:17:58 +0000 Subject: e[u]ptex: Fix a bug that \fontcharwd etc. does not work for kanji code < 256 for e-upTeX. git-svn-id: svn://tug.org/texlive/trunk@50703 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/eptexdir/ChangeLog | 5 +++++ Build/source/texk/web2c/eptexdir/eptex.ech | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Build/source/texk/web2c/eptexdir/ChangeLog b/Build/source/texk/web2c/eptexdir/ChangeLog index 86c455ead73..d3f6e422ba6 100644 --- a/Build/source/texk/web2c/eptexdir/ChangeLog +++ b/Build/source/texk/web2c/eptexdir/ChangeLog @@ -1,3 +1,8 @@ +2019-04-02 Hironobu Yamashita + + * eptex.ech: \fontcharwd etc. for Japanese fonts correctly + returns a dimension for all kanji codes. + 2019-03-01 Hironobu Yamashita * eptex.ech: Fix \show\savinghyphcodes. (Bug introduced in diff --git a/Build/source/texk/web2c/eptexdir/eptex.ech b/Build/source/texk/web2c/eptexdir/eptex.ech index 96a2d25da24..efba7a6fa45 100644 --- a/Build/source/texk/web2c/eptexdir/eptex.ech +++ b/Build/source/texk/web2c/eptexdir/eptex.ech @@ -528,7 +528,7 @@ read_papersize_special_code:print_esc("readpapersizespecial"); end; @y if font_dir[q]<>dir_default then {Japanese font} - begin if cur_val>=256 then {Japanese Character} + begin if is_char_kanji(cur_val) then {Japanese Character} begin cur_val:=get_jfm_pos(KANJI(cur_val),q); i:=orig_char_info(q)(qi(cur_val)); case m of -- cgit v1.2.3