\pdffontattr in pdftex-1.40.0-rc4
Hi, I'm trying to run the vntex testfiles with the current pdftex release recently uploaded to the TeXLive repository by Martin. Can anybody tell me what the warnings mean? pdfTeX warning (\pdffontattr): font \^^@ has conflicting attributes I get a lot of these messages. The (pdf) output seems to be ok. Regards, Reinhard -- ---------------------------------------------------------------------------- Reinhard Kotucha Phone: +49-511-4592165 Marschnerstr. 25 D-30167 Hannover mailto:reinhard.kotucha@web.de ---------------------------------------------------------------------------- Microsoft isn't the answer. Microsoft is the question, and the answer is NO. ----------------------------------------------------------------------------
On Wed, 27 Dec 2006, Reinhard Kotucha wrote:
I'm trying to run the vntex testfiles with the current pdftex release recently uploaded to the TeXLive repository by Martin.
Can anybody tell me what the warnings mean?
pdfTeX warning (\pdffontattr): font \^^@ has conflicting attributes
in the intended cases it means, that it was tried to add two different font attributes to the same font dictionary. But here is a case where this happens even without: \pdfcompresslevel=0 \nopagenumbers \font\aa cmr10 at 10pt \pdffontattr\aa {foo} \aa abc \font\bb cmr10 at 11pt %\pdffontattr\bb {bar} \bb abc \bye Both TeX fonts refer to the same font dictionary. So there is only one font, and this gets the attribute "foo".
I get a lot of these messages. The (pdf) output seems to be ok.
The above source creates the right PDF. Maybe we need to get rid of the warning here. Regards, Hartmut
On Thu, 28 Dec 2006, Hartmut Henkel wrote:
On Wed, 27 Dec 2006, Reinhard Kotucha wrote:
I'm trying to run the vntex testfiles with the current pdftex release recently uploaded to the TeXLive repository by Martin.
Can anybody tell me what the warnings mean?
pdfTeX warning (\pdffontattr): font \^^@ has conflicting attributes
is this a nullfont? how does one get it?
in the intended cases it means, that it was tried to add two different font attributes to the same font dictionary. But here is a case where this happens even without:
\pdfcompresslevel=0 \nopagenumbers \font\aa cmr10 at 10pt \pdffontattr\aa {foo} \aa abc \font\bb cmr10 at 11pt %\pdffontattr\bb {bar} \bb abc \bye
Both TeX fonts refer to the same font dictionary. So there is only one font, and this gets the attribute "foo".
I get a lot of these messages. The (pdf) output seems to be ok.
The above source creates the right PDF. Maybe we need to get rid of the warning here.
Here is the try of a patch, which also shows what happens with the above file. Reinhard, does it remove the warnings in your case? --- pdftex.web.orig 2006-12-21 17:19:20.000000000 +0100 +++ pdftex.web 2006-12-28 06:07:11.771455920 +0100 @@ -19341,6 +19341,8 @@ pdf_mark_char(i, j); if (length(pdf_font_attr[i]) = 0) and (length(pdf_font_attr[k]) <> 0) then pdf_font_attr[i] := pdf_font_attr[k]; + if (length(pdf_font_attr[k]) = 0) and (length(pdf_font_attr[i]) <> 0) then + pdf_font_attr[k] := pdf_font_attr[i]; if not ((pdf_font_attr[i] = pdf_font_attr[k]) or str_eq_str(pdf_font_attr[i], pdf_font_attr[k])) then begin pdf_warning("\pdffontattr", "font ", false, false); An alternative (more complicated) might be that one keeps font dictionaries separate when the user wants different attributes. No idea what the typical use of these attributes is. Regards, Hartmut
"Hartmut" == Hartmut Henkel
writes:
On Thu, 28 Dec 2006, Hartmut Henkel wrote:
On Wed, 27 Dec 2006, Reinhard Kotucha wrote:
I'm trying to run the vntex testfiles with the current pdftex > release recently uploaded to the TeXLive repository by Martin.
Can anybody tell me what the warnings mean?
pdfTeX warning (\pdffontattr): font \^^@ has conflicting attributes
Please excuse me that I didn't respond earlier but I had been very confused that I have two different versions of pdfTeX on my system. I found out that the x86_64-linux binaries on the test image did not provide the latest pdftex release. Hence I uploaded new binaries for this platform last night.
is this a nullfont? how does one get it?
No idea, I'm not a PDF expert, but it seems to have something to do with cmap.sty.
Here is the try of a patch, which also shows what happens with the above file. Reinhard, does it remove the warnings in your case?
Yes, after I applied your patch, the warnings don't appear any more. Regarding the manual: First of all, many thanks to Martin for uploading the latest version to the TeXLive repository and many thanks to Pawel for maintaining it. However, there are a few issues which bother me. They are not so important that it makes sense to fix them immediately. It would be nice if things can be improved in next year's release. 1. In the screen version of the manual (pdftex-s.pdf) the text is surrounded by a dark blue box. The horizontal distance between the text and the box is *much* too small. The manual makes use of character protrusion and in this case it is not desirable to have verical structures close to the text. The distance between the text and the box should be at least 2em. 2. The title pages of the versions which are intended for printing are lacking a binding margin. A simple fix would be to increase all margins and use a smaller font. 3. The manual still uses the URW fonts with the broken "T" and "D". It would be nice if future versions will use Jacko's fonts instead, TeX-Gyre Pagella in this case. 4. The title "The pdfTeX user manual" is typeset in a very huge font. This consumes a lot of ink. Maybe something like this is more desirable: __________________________________________________________________ \font\x=pplr8r at 80pt \setbox0\hbox to0pt{\x Hello world!\hss}\ht0=0pt \dp0=0pt \offinterlineskip \pdfsave \pdfliteral{.8 g}\copy0 \pdfliteral{1 Tr 1.2 w 0 g}\box0 \pdfrestore\bye __________________________________________________________________ I get a warning message when I compile the file but I think that it shows my idea, though. Maybe Hans has higher level macros in Context already which provide a similar result. BTW., the above code uses new pdftex features (\pdfsave \pdfrestore). I must admit that I didn't read the manual before I used them (maybe I should). I got the information from Martin's announcement. I doubt that Martin's announcements can be a replacement for a real user manual. But they are extremely good and I've never seen such useful announcements anywhere else. Regards, Reinhard -- ---------------------------------------------------------------------------- Reinhard Kotucha Phone: +49-511-4592165 Marschnerstr. 25 D-30167 Hannover mailto:reinhard.kotucha@web.de ---------------------------------------------------------------------------- Microsoft isn't the answer. Microsoft is the question, and the answer is NO. ----------------------------------------------------------------------------
On Tue, Jan 02, 2007 at 01:09:10AM +0100, Reinhard Kotucha wrote:
BTW., the above code uses new pdftex features (\pdfsave \pdfrestore). I must admit that I didn't read the manual before I used them (maybe I should). I got the information from Martin's announcement. I doubt that Martin's announcements can be a replacement for a real user manual.
Currently the only documentation of the color stack and
transform stuff comes with the patch description.
Perhaps I manage to write something more until start of next
week. Otherwise I must postpone it to a time after Eastern.
Yours sincerely
Heiko
participants (3)
-
Hartmut Henkel
-
Heiko Oberdiek
-
Reinhard Kotucha