ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* unwanted font replacement during inclussion
@ 2005-06-01 21:36 Vit Zyka
  2005-06-01 23:05 ` [NTG-pdftex] " Hartmut Henkel
  0 siblings, 1 reply; 5+ messages in thread
From: Vit Zyka @ 2005-06-01 21:36 UTC (permalink / raw)
  Cc: pdfTeX developers list

[-- Attachment #1: Type: text/plain, Size: 1145 bytes --]

Hi,

I noticed the next strange behaviour. Let us create very simple file 
test.tex:
------------------
\font\bf=cmbx12
Normal text. \bf Bold text.
\end
------------------
Now include this file by plain pdftex:
------------------
\pdfximage{test.pdf}
\pdfrefximage\pdflastximage
\end
------------------
Everything is correct. No let us try to insert the file by context:
------------------
\starttext
%\font\bf=cmbx12
%Normal text. \bf Bold text.
\pdfximage{test.pdf}
\pdfrefximage\pdflastximage
\stoptext
------------------
And that is!!! Text 'bold text' is typeset with totaly different font 
from cmbx12, so it is smashed by wrong metric! See the attached file.
If I uncomment two lines, so the font cmbx12 is not only present in the 
included file, the result is correct. Where is the problem? Something 
mixing cm and lm? I though that included file comes with all font resources.

Hmmmm, now I feel it is more pdftex-related then context-related question.

vit

(pdfetex v1.30)

-- 
Vít Zýka --- http://typokvitek.com
     Automatic document typesetting
     Automaticka sazba dokumentu --
--



[-- Attachment #2: load-context.pdf --]
[-- Type: application/pdf, Size: 28278 bytes --]

[-- Attachment #3: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [NTG-pdftex] unwanted font replacement during inclussion
  2005-06-01 21:36 unwanted font replacement during inclussion Vit Zyka
@ 2005-06-01 23:05 ` Hartmut Henkel
  2005-06-02  8:08   ` Taco Hoekwater
  2005-06-02  8:18   ` Vit Zyka
  0 siblings, 2 replies; 5+ messages in thread
From: Hartmut Henkel @ 2005-06-01 23:05 UTC (permalink / raw)
  Cc: ConTeXt, pdfTeX developers list

On Wed, 1 Jun 2005, Vit Zyka ">" wrote:

> I noticed the next strange behaviour. Let us create very simple file test.tex:
> ------------------
> \font\bf=cmbx12
> Normal text. \bf Bold text.
> \end
> ------------------
> Now include this file by plain pdftex:
> ------------------
> \pdfximage{test.pdf}
> \pdfrefximage\pdflastximage
> \end
> ------------------
> Everything is correct. No let us try to insert the file by context:
> ------------------
> \starttext
> %\font\bf=cmbx12
> %Normal text. \bf Bold text.
> \pdfximage{test.pdf}
> \pdfrefximage\pdflastximage
> \stoptext
> ------------------

< I noticed the result is smashed by plain pdftex.  And that is correct.
< And that is typeset with totaly different font is correct.  I
< uncomment two lines, so the attached file by plain pdftex.  I though
< that is the next strange behaviour: problem? I noticed the next
< strange behaviour; included file.  I uncomment two lines, so the
< included file, Now I though that is typeset with totaly different font
< is correct.  I though that is the file, by plain pdftex related then
< context: related then context related then context.  I noticed the
< result is the next strange behaviour.

> Hmmmm, now I feel it is more pdftex-related then context-related
> question.

i can't reproduce it here with your files, it looks ok, but the
mechanism is that the font comparison is made by the name in the 2nd
column of the map file, and only if this matches the fontname in the
embedded file, the font file given the end of the map line is taken. E.
g. one can force a probably similar problem by (devious)

\pdfmapline{cmbx12 CMBX12 <cmtt10.pfb}

Then the CMBX12 font coming with the embedded test.pdf would match
CMBX12 and this would be replaced by cmtt10.pfb. So it seems that
something must be wrong with the map file.

Regards, Hartmut

P.S. just found http://www.jwz.org/dadadodo/ (good for blindtext :-)

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [NTG-pdftex] unwanted font replacement during inclussion
  2005-06-01 23:05 ` [NTG-pdftex] " Hartmut Henkel
@ 2005-06-02  8:08   ` Taco Hoekwater
  2005-06-02  8:18   ` Vit Zyka
  1 sibling, 0 replies; 5+ messages in thread
From: Taco Hoekwater @ 2005-06-02  8:08 UTC (permalink / raw)
  Cc: ConTeXt, Vit Zyka, pdfTeX developers list



Hartmut Henkel wrote:
> Then the CMBX12 font coming with the embedded test.pdf would match
> CMBX12 and this would be replaced by cmtt10.pfb. So it seems that
> something must be wrong with the map file.

There is a (fairly serious) bug in two of the context-supplied Latin
Modern .map files:

   context-base.map:148:cmbx5     CMBX12    <cmrm.enc  <lmbx5.pfb
   original-public-lm.map:71:cmbx5     CMBX12    <cmrm.enc  <lmbx5.pfb

Of course, both lines should use CMBX5 instead of CMBX12. Fixing
that removes the problem.  It seems the bug was introduced in
ConTeXt 2005.05.25.

Greetings, Taco

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Re: [NTG-pdftex] unwanted font replacement during inclussion
  2005-06-01 23:05 ` [NTG-pdftex] " Hartmut Henkel
  2005-06-02  8:08   ` Taco Hoekwater
@ 2005-06-02  8:18   ` Vit Zyka
  1 sibling, 0 replies; 5+ messages in thread
From: Vit Zyka @ 2005-06-02  8:18 UTC (permalink / raw)


Hartmut Henkel wrote:
> On Wed, 1 Jun 2005, Vit Zyka ">" wrote:
> 
> 
>>I noticed the next strange behaviour. Let us create very simple file test.tex:
>>------------------
>>\font\bf=cmbx12
>>Normal text. \bf Bold text.
>>\end
>>------------------
>>Now include this file by plain pdftex:
>>------------------
>>\pdfximage{test.pdf}
>>\pdfrefximage\pdflastximage
>>\end
>>------------------
>>Everything is correct. No let us try to insert the file by context:
>>------------------
>>\starttext
>>%\font\bf=cmbx12
>>%Normal text. \bf Bold text.
>>\pdfximage{test.pdf}
>>\pdfrefximage\pdflastximage
>>\stoptext
>>------------------
> 
> 
> < I noticed the result is smashed by plain pdftex.  And that is correct.
> < And that is typeset with totaly different font is correct.  I
> < uncomment two lines, so the attached file by plain pdftex.  I though
> < that is the next strange behaviour: problem? I noticed the next
> < strange behaviour; included file.  I uncomment two lines, so the
> < included file, Now I though that is typeset with totaly different font
> < is correct.  I though that is the file, by plain pdftex related then
> < context: related then context related then context.  I noticed the
> < result is the next strange behaviour.
> 
> 
>>Hmmmm, now I feel it is more pdftex-related then context-related
>>question.
> 
> 
> i can't reproduce it here with your files, it looks ok, but the
> mechanism is that the font comparison is made by the name in the 2nd
> column of the map file, and only if this matches the fontname in the
> embedded file, the font file given the end of the map line is taken. E.
> g. one can force a probably similar problem by (devious)
> 
> \pdfmapline{cmbx12 CMBX12 <cmtt10.pfb}
> 
> Then the CMBX12 font coming with the embedded test.pdf would match
> CMBX12 and this would be replaced by cmtt10.pfb. So it seems that

I see. Thank you, Hartmut, for explanating font inclusion mechanism. I 
will cope the problem.

vit

^ permalink raw reply	[flat|nested] 5+ messages in thread

* unwanted font replacement during inclussion
@ 2005-06-01 21:35 Vit Zyka
  0 siblings, 0 replies; 5+ messages in thread
From: Vit Zyka @ 2005-06-01 21:35 UTC (permalink / raw)
  Cc: pdfTeX developers list

[-- Attachment #1: Type: text/plain, Size: 1145 bytes --]

Hi,

I noticed the next strange behaviour. Let us create very simple file 
test.tex:
------------------
\font\bf=cmbx12
Normal text. \bf Bold text.
\end
------------------
Now include this file by plain pdftex:
------------------
\pdfximage{test.pdf}
\pdfrefximage\pdflastximage
\end
------------------
Everything is correct. No let us try to insert the file by context:
------------------
\starttext
%\font\bf=cmbx12
%Normal text. \bf Bold text.
\pdfximage{test.pdf}
\pdfrefximage\pdflastximage
\stoptext
------------------
And that is!!! Text 'bold text' is typeset with totaly different font 
from cmbx12, so it is smashed by wrong metric! See the attached file.
If I uncomment two lines, so the font cmbx12 is not only present in the 
included file, the result is correct. Where is the problem? Something 
mixing cm and lm? I though that included file comes with all font resources.

Hmmmm, now I feel it is more pdftex-related then context-related question.

vit

(pdfetex v1.30)

-- 
Vít Zýka --- http://typokvitek.com
     Automatic document typesetting
     Automaticka sazba dokumentu --
--



[-- Attachment #2: load-context.pdf --]
[-- Type: application/pdf, Size: 28278 bytes --]

[-- Attachment #3: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-06-02  8:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-01 21:36 unwanted font replacement during inclussion Vit Zyka
2005-06-01 23:05 ` [NTG-pdftex] " Hartmut Henkel
2005-06-02  8:08   ` Taco Hoekwater
2005-06-02  8:18   ` Vit Zyka
  -- strict thread matches above, loose matches on Subject: below --
2005-06-01 21:35 Vit Zyka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).