[pdftex] Patch T3FontAttr

Heiko Oberdiek oberdiek at uni-freiburg.de
Wed Jun 18 13:43:47 CEST 2003


Hello,

there is currently a discussion about cmap.sty in de.comp.text.tex.
The problem arises, that cmap.sty does not help, if the fonts
are embedded as T3 fonts. Looking at the code, \pdffontattr
is not used for T3 fonts, therefore I have written the following
patch:

Patch T3FontAttr

\pdffontattr works for T1 and TrueType fonts. But for T3 fonts
the contents is not put into the /Font object. So the patch
copies the code for T1 and TrueType that copies the contents
of \pdffontattr into the /Font object from fuction writefontobj()
of file "writefont.c" into function writet3() of file "writet3.c".
  Is there a reason that this code was missing for T3 fonts?
Or was this only forgotten?

Patch files based on 2003/06/05 v1.11a:
  writet3.c.diff   for TeX/texk/web2c/pdftexdir/writet3.c

Yours sincerely
  Heiko <oberdiek at uni-freiburg.de>
-------------- next part --------------
*** writet3.c.org	Wed Jun 18 12:20:21 2003
--- writet3.c	Wed Jun 18 12:25:17 2003
***************
*** 316,321 ****
--- 316,325 ----
      pdfbegindict(objnum); /* Type 3 font dictionary */
      pdf_puts("/Type /Font\n/Subtype /Type3\n");
      pdf_printf("/Name /F%i\n", (int)f);
+     if (pdffontattr[f] != getnullstr()) {
+         pdfprint(pdffontattr[f]);
+         pdf_puts("\n");
+     }
      if (is_pk_font) {
          pk_font_scale = get_pk_font_scale(f);
          pdf_puts("/FontMatrix [");


More information about the pdftex mailing list