-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[dvipdfmx] 特定の条件で誤ったグリフが出力される #165
Comments
diff --git a/source/texk/dvipdfm-x/cidtype2.c b/source/texk/dvipdfm-x/cidtype2.c
index 2c6caf908..a3d5a63c8 100644
--- a/source/texk/dvipdfm-x/cidtype2.c
+++ b/source/texk/dvipdfm-x/cidtype2.c
@@ -827,7 +827,7 @@ CIDFont_type2_dofont (pdf_font *font)
} else {
gid = tt_cmap_lookup(ttcmap, code);
#ifdef FIX_CJK_UNIOCDE_SYMBOLS
- if (gid == 0 && unicode_cmap) {
+ if (gid == 0 && unicode_cmap && code <= 0xFFFF) {
int alt_code;
alt_code = fix_CJK_symbols((unsigned short)code); |
なぜか、この変換表に
|
テストしました。
|
ありがとうございます。 tex-jp-build/source/texk/dvipdfm-x/cidtype2.c Line 921 in f5e7f92
|
縦組みとは気付きませんでした。 縦組み用 replace01.tex :: \special{pdf:mapfile uptex-ipaex.map}
\tate
𠂰% U+200b0
𠃵% U+200f5
𠅘% U+20158
𤿲% U+24ff2
𧦴% U+279b4
𧵳% U+27d73
姬% U+2f862
諭% U+2f9d0
¢£¥¬
¢£¥¬
〜~
—―
‖∥
\bye 対策前
対策後
|
dvipdfmxで以下のような条件のときに誤ったグリフが出力されます。
以下の部分で
unsigned short
にキャストしているためだと思います。tex-jp-build/source/texk/dvipdfm-x/cidtype2.c
Lines 829 to 841 in 3ee7d1f
The text was updated successfully, but these errors were encountered: