pdftex[908] branches/stable/doc/manual/pdftex-t.tex: update
commits+thanh at tug.org
commits+thanh at tug.org
Thu Apr 27 11:51:41 CEST 2023
Revision: 908
http://tug.org/svn/pdftex?view=revision&revision=908
Author: thanh
Date: 2023-04-27 11:51:41 +0200 (Thu, 27 Apr 2023)
Log Message:
-----------
update documentation for `\glyphtounicode`
Modified Paths:
--------------
branches/stable/doc/manual/pdftex-t.tex
Modified: branches/stable/doc/manual/pdftex-t.tex
===================================================================
--- branches/stable/doc/manual/pdftex-t.tex 2023-03-20 15:28:39 UTC (rev 907)
+++ branches/stable/doc/manual/pdftex-t.tex 2023-04-27 09:51:41 UTC (rev 908)
@@ -2608,6 +2608,20 @@
\pdfgentounicode=1
\stoptyping
+pdftex keeps the glyph-name->unicode mappings globally. It means
+that
+\starttyping
+\pdfglyphtounicode{abc}{1234}
+\stoptyping
+would map glyph 'abc' to '1234' for every font. However it's possible to
+say
+\starttyping
+\pdfglyphtounicode{tfm:foo/abc}{5678}
+\stoptyping
+which means glyph 'abc' is mapped to '5678', but only for font 'foo.tfm'
+
+
+
\LATEX\ users could load the \type{cmap} package to achieve the same
effect.
More information about the pdftex-commits
mailing list.