xdvipdfmx-20200116 : additional q/Q bracket around BT...ET

Shunsaku Hirata shunsaku.hirata74 at gmail.com
Sat Feb 29 11:22:12 CET 2020


Hi all,

I understand the example shown doesn't work if graphics state save/resotre
operation (q/Q operator) is inserted arount the text block.

However, reverting the change I made before (adding q-Q-bracket around
text) makes the fake-bold bug reappear.

Thus, I considered alternatives for fixing the fake-bold bug, however and
unfortunately, as this fake-bold feature relies on changing text rendering
mode (fill-then-stroke with adjusted stroke line-width) via "Tr" operator,
any fixes might be inherently incompatible with what Alexander wants to
do.
(The possible fix here is to forcibly add "Tr" operator whenever new text
starts or font is changed)

Just my personal opinion but as I don't like this fake-bold feature although
it was added by myself, I rather want to make this feature obsolete...


Thanks,
Shunsaku Hirata

2020年2月29日(土) 14:07 Hironobu Yamashita <h.y.acetaminophen at gmail.com>:
>
> Hi,
>
> AG > current xdvipdfmx, version 2020-01-16, adds a q-Q-bracket around text (BT
> AG > ... ET) in the page stream.
> AG > This prevents glyph outlines from being added to the clipping path in the
> AG > graphics state.
>
> ZW> I also vote for restoring the previous behaviour because th q-Q
> ZW> bracket used to be added by \special{pdf:put ...}. There is a dirty
> ZW> trick how to remove these q-Q but the previous behaviour will be
> ZW> better.
>
> In r53973, I reverted the commit done by S. Hirata on 2019-06-30.
> It says
>
> 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.
>
> So the fake-bold issue will reappear.
>
> Hironobu



More information about the tex-live mailing list.