[XeTeX] Could Adobe Photoshop's "blending options" for text be supported in a future {Pdf|Xe}TeX variant

Ross Moore ross.moore at mq.edu.au
Thu Apr 5 02:25:57 CEST 2018

Hi again Phil,

On Apr 5, 2018, at 8:39 AM, Ross Moore <ross.moore at mq.edu.au<mailto:ross.moore at mq.edu.au>> wrote:

  *   https://www.dropbox.com/s/b7a1383rb1dx2vp/Ao%20dais.pdf?dl=0
  *   https://www.dropbox.com/s/7s6s7n9w8popiyg/MENU%20001%20new%20ellipse.pdf?dl=0
  *   https://www.dropbox.com/s/smmcjy9zuuxa1nu/MENU%20001%20%28metallic%20gold%20text%20demo%29.pdf?dl=0

I would be interested in others' reactions to this.

These are using PDF’s concept of “Text Rendering” modes.
In particular  7 Tr   meaning mode 7,
which uses the outlines of characters to be the clipping path for an underlying graphic.

I was able to extract the “underlying graphics” from the 1st of your PDFs.
Here is the one for the 2nd line of text.

[cid:F4531BBB-B66D-4E0C-B6BC-F8AE8E276DB3 at mq.edu.au]

You can see the need to have a clipping path, created from the text using the same font that was “blended” to make this image.
The need for exact positioning can also be appreciated from the image.

Below is the image for the gold text in the 3rd PDF.
Again the need for clipping is apparent.

[cid:3F4B8FAD-7EA9-4891-AA17-7205E30FB42C at mq.edu.au]

Thus the letter shapes restrict what parts of the graphic come shining through.

This is essentially already available with pdfTeX; viz.


There is one part missing:  how to make the underlying graphic correctly?
e.g., to have letters looking like they are embossed, or standing out in 3D, etc.

You need to construct the desired view in an image, and then place the actual characters,
with appropriate rendering mode, exactly over that image so that only the desired parts are shown.
This requires external image-processing software, which is what you paid Adobe to do with Photoshop.

Philip Taylor

Hope this helps.


Dr Ross Moore

Mathematics Dept | 12 Wally’s Walk, 734
Macquarie University, NSW 2109, Australia

T: +61 2 9850 8955  |  F: +61 2 9850 8114<tel:%2B61%202%209850%209695>
M:+61 407 288 255<tel:%2B61%20409%20125%20670>  |  E: ross.moore at mq.edu.au<mailto:rick.minter at mq.edu.au>


[cid:image001.png at 01D030BE.D37A46F0]<http://mq.edu.au/>

CRICOS Provider Number 00002J. Think before you print.
Please consider the environment before printing this email.<http://mq.edu.au/>

This message is intended for the addressee named and may
contain confidential information. If you are not the intended
recipient, please delete it and notify the sender. Views expressed
in this message are those of the individual sender, and are not
necessarily the views of Macquarie University.<http://mq.edu.au/>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20180405/ef1eb791/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Westberry.png
Type: image/png
Size: 21925 bytes
Desc: Westberry.png
URL: <http://tug.org/pipermail/xetex/attachments/20180405/ef1eb791/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Hoi-An-gold.png
Type: image/png
Size: 49598 bytes
Desc: Hoi-An-gold.png
URL: <http://tug.org/pipermail/xetex/attachments/20180405/ef1eb791/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 4605 bytes
Desc: image001.png
URL: <http://tug.org/pipermail/xetex/attachments/20180405/ef1eb791/attachment-0005.png>

More information about the XeTeX mailing list