OSDN Git Service

corrected char_height/char_depth.
authormaqiyuan <maqiyuan@users.sourceforge.jp>
Thu, 21 Aug 2014 07:06:29 +0000 (15:06 +0800)
committermaqiyuan <maqiyuan@users.sourceforge.jp>
Thu, 21 Aug 2014 07:06:29 +0000 (15:06 +0800)
src/texsourc/dpx.c
src/texsourc/tex4.c

index bafa9c6..ad8b8a4 100644 (file)
@@ -264,15 +264,15 @@ reswitch:
 \r
       char cbuf[2] = {c, 0};\r
       pdf_dev_set_string(cur_h, -cur_v, cbuf, 1, char_width(f, char_info(f, c)), font_id[dvi_f], 1);\r
-      cur_h = cur_h + char_width(f, char_info(f, c));\r
       {\r
         pdf_rect rect;\r
-        pdf_dev_set_rect(&rect, dvi_h, -dvi_v,\r
-            char_width (f, char_info(f, c)),\r
-            char_height(f, c),\r
-            char_depth (f, c));\r
+        pdf_dev_set_rect(&rect, cur_h, -dvi_v,\r
+          char_width (f, char_info(f, c)),\r
+          char_height(f, height_depth(char_info(f, c))),\r
+          char_depth (f, height_depth(char_info(f, c))));\r
         pdf_doc_expand_box(&rect);\r
       }\r
+      cur_h = cur_h + char_width(f, char_info(f, c));\r
       p = link(p);\r
     } while (!(!is_char_node(p)));\r
 \r
index 0cdcd71..7f9e501 100644 (file)
@@ -429,8 +429,7 @@ void special_out (pointer p)
   selector = old_setting;\r
   str_room(1);\r
   graphics_mode();\r
-  //spc_exec_special(str_pool + str_start[str_ptr], cur_length, cur_h * 0.000015202, -cur_v * 0.000015202, 1.0);\r
-  spc_exec_special(str_pool + str_start[str_ptr], cur_length, dvi_h * 0.000015202, -dvi_v * 0.000015202, 1.0);\r
+  spc_exec_special(str_pool + str_start[str_ptr], cur_length, cur_h * 0.000015202, -cur_v * 0.000015202, 1.0);\r
 /*\r
   if (cur_length < 256)\r
   {\r