From 7846bb6b0e295c7106ec64757a817fc231b05412 Mon Sep 17 00:00:00 2001 From: Akira Kakuto Date: Sat, 29 Jun 2019 21:29:52 +0000 Subject: Fixe a bug that fake-bold is not handled properly in some situations. (S. Hirata) git-svn-id: svn://tug.org/texlive/trunk@51507 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/dvipdfm-x/ChangeLog | 10 ++++++++++ Build/source/texk/dvipdfm-x/pdfdev.c | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'Build') diff --git a/Build/source/texk/dvipdfm-x/ChangeLog b/Build/source/texk/dvipdfm-x/ChangeLog index cb4eb2b55c7..d37f62b4c99 100644 --- a/Build/source/texk/dvipdfm-x/ChangeLog +++ b/Build/source/texk/dvipdfm-x/ChangeLog @@ -1,3 +1,13 @@ +2019-06-30 Shunsaku Hirata + + * 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 * unicode.c: Fix a bug that end of buffer check was wrong. diff --git a/Build/source/texk/dvipdfm-x/pdfdev.c b/Build/source/texk/dvipdfm-x/pdfdev.c index f9d853bddc0..49af5bb969b 100644 --- a/Build/source/texk/dvipdfm-x/pdfdev.c +++ b/Build/source/texk/dvipdfm-x/pdfdev.c @@ -571,7 +571,7 @@ reset_text_state (void) /* * 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 @@ graphics_mode (void) 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; -- cgit v1.2.3