texlive[51507] Build/source/texk/dvipdfm-x: Fixe a bug that fake-bold
commits+kakuto at tug.org
commits+kakuto at tug.org
Sat Jun 29 23:29:53 CEST 2019
Revision: 51507
http://tug.org/svn/texlive?view=revision&revision=51507
Author: kakuto
Date: 2019-06-29 23:29:52 +0200 (Sat, 29 Jun 2019)
Log Message:
-----------
Fixe a bug that fake-bold is not handled properly in some situations. (S. Hirata)
Modified Paths:
--------------
trunk/Build/source/texk/dvipdfm-x/ChangeLog
trunk/Build/source/texk/dvipdfm-x/pdfdev.c
Modified: trunk/Build/source/texk/dvipdfm-x/ChangeLog
===================================================================
--- trunk/Build/source/texk/dvipdfm-x/ChangeLog 2019-06-29 21:07:08 UTC (rev 51506)
+++ trunk/Build/source/texk/dvipdfm-x/ChangeLog 2019-06-29 21:29:52 UTC (rev 51507)
@@ -1,3 +1,13 @@
+2019-06-30 Shunsaku Hirata <shunsaku.hirata74 at gmail.com>
+
+ * pdfdev.c: Fix a bug that fake-bold is not handled properly
+ in some situations as reported in
+ https://tug.org/pipermail/dvipdfmx/2019-June/000014.html.
+ When text rendering mode is changed within a text block which
+ is enclosed by q and Q, the change does not affect subsequent
+ text blocks. Current implementation of text handling is not
+ robust so we may need to reconsider it.
+
2019-06-01 Shunsaku Hirata <shunsaku.hirata74 at gmail.com>
* unicode.c: Fix a bug that end of buffer check was wrong.
Modified: trunk/Build/source/texk/dvipdfm-x/pdfdev.c
===================================================================
--- trunk/Build/source/texk/dvipdfm-x/pdfdev.c 2019-06-29 21:07:08 UTC (rev 51506)
+++ trunk/Build/source/texk/dvipdfm-x/pdfdev.c 2019-06-29 21:29:52 UTC (rev 51507)
@@ -571,7 +571,7 @@
/*
* We need to reset the line matrix to handle slanted fonts.
*/
- pdf_doc_add_page_content(" BT", 3); /* op: BT */
+ pdf_doc_add_page_content(" q BT", 5); /* op: BT */
/*
* text_state.matrix is identity at top of page.
* This sometimes write unnecessary "Tm"s when transition from
@@ -619,7 +619,7 @@
pdf_doc_add_page_content(text_state.is_mb ? ">]TJ" : ")]TJ", 4); /* op: TJ */
/* continue */
case TEXT_MODE:
- pdf_doc_add_page_content(" ET", 3); /* op: ET */
+ pdf_doc_add_page_content(" ET Q", 5); /* op: ET */
text_state.force_reset = 0;
text_state.font_id = -1;
break;
More information about the tex-live-commits
mailing list