From 244df2587225e91c56c66cc5219d2820d35b98dd Mon Sep 17 00:00:00 2001
From: Kai0522 <kklin0522@gmail.com>
Date: Thu, 24 Oct 2019 13:51:29 +0800
Subject: [PATCH] Modify the erroe of text width in Traditional Chinese
---
src/hpdf_fontdef_cid.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/hpdf_fontdef_cid.c b/src/hpdf_fontdef_cid.c
index 6745188..4b4b8ad 100644
--- a/src/hpdf_fontdef_cid.c
+++ b/src/hpdf_fontdef_cid.c
@@ -155,7 +155,7 @@ HPDF_CIDFontDef_AddWidth (HPDF_FontDef fontdef,
return fontdef->error->error_no;
w->cid = widths->cid;
- w->width = widths->width;
+ w->width = (widths->width)*2;
if ((ret = HPDF_List_Add (attr->widths, w)) != HPDF_OK) {
HPDF_FreeMem (fontdef->mmgr, w);
--
2.21.1 (Apple Git-122.3)