xdvipdfmx-20200116 : additional q/Q bracket around BT...ET
Zdenek Wagner
zdenek.wagner at gmail.com
Sat Feb 29 11:55:14 CET 2020
Hi all,
so 29. 2. 2020 v 11:22 odesílatel Shunsaku Hirata
<shunsaku.hirata74 at gmail.com> napsal:
>
> 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)
>
I do not know how the fake bold is implemented but \special{pdf:code
SOMETHING } used to insert just SOMETHING while \special{pdf:put
SOMETHING} used to insert q SOMETHING Q
In the previous behaviour both possibilities were available, you just
have to choose between pdf:code and pdf:put. The coloured text with an
outline in another colour can then be achieved by
\special{pdf:code q 2 Tr 0.7 w 0 0.5 0.5 0.05 k 1 1 0 0.1 K} some text
\special{pdf:code Q}
If you have only pdf:put which adds the extra q-Q bracket, you have to use:
\special{pdf:put Q q 2 Tr 0.7 w 0 0.5 0.5 0.05 k 1 1 0 0.1 K q} some
text \special{pdf:put Q}
This was given as a hint in an old version of dvipdfm where only
\special{pdf:put } was available.
> 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
>
Zdeněk Wagner
http://ttsm.icpf.cas.cz/team/wagner.shtml
http://icebearsoft.euweb.cz
> 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.