[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[orca-dev:00729] Re: MONPE 0.6.4 のバグ?



島谷@恵庭です.

> 帳票作成でテキストのフォントを,Mincho かGothic にして,
> 全角半角を混在させると,半角部分の文字列幅が倍に計算されているようです.
> 
> こんな感じ...
> 
> テスト12テスト  が,
> テスト12  テスト  となります.
> 

これについては,自力解決を...

diff -ru monpe-0.6.4/lib/font.c monpe-0.6.4a/lib/font.c
--- monpe-0.6.4/lib/font.c      Thu Sep 16 15:28:40 2004
+++ monpe-0.6.4a/lib/font.c     Thu Apr  6 14:24:40 2006
@@ -109,15 +109,15 @@
 #ifdef JAPANESE
   { "Mincho",
     { "Ryumin-Light.Roman", "Ryumin-Light" },
-    { "-*-mincho-medium-r-normal-*-%d-*-*-*-*-*-iso8859-1,-*-mincho-medium-r-normal-*-%d-*-*-*-*-*-*-*",
-      "-*-mincho-medium-r-normal-*-%d-*-*-*-*-*-iso8859-1,-*-mincho-medium-r-normal-*-%d-*-*-*-*-*-*-*"
+    { "-*-mincho-medium-r-normal-*-%d-*-*-*-m-*-iso8859-1,-*-mincho-medium-r-normal-*-%d-*-*-*-*-*-*-*",
+      "-*-mincho-medium-r-normal-*-%d-*-*-*-m-*-iso8859-1,-*-mincho-medium-r-normal-*-%d-*-*-*-*-*-*-*"
     },
     0.803738, 0.196262
   },
   { "Gothic",
     { "GothicBBB-Medium.Roman", "GothicBBB-Medium" },
-    { "-*-gothic-medium-r-normal-*-%d-*-*-*-*-*-iso8859-1,-*-gothic-medium-r-normal-*-%d-*-*-*-*-*-*-*",
-      "-*-gothic-medium-r-normal-*-%d-*-*-*-*-*-iso8859-1,-*-gothic-medium-r-normal-*-%d-*-*-*-*-*-*-*"
+    { "-*-gothic-medium-r-normal-*-%d-*-*-*-m-*-iso8859-1,-*-gothic-medium-r-normal-*-%d-*-*-*-*-*-*-*",
+      "-*-gothic-medium-r-normal-*-%d-*-*-*-m-*-iso8859-1,-*-gothic-medium-r-normal-*-%d-*-*-*-*-*-*-*"
     },
     0.803738, 0.196262
   },