• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

illegal FontBBox

New Here ,
Feb 04, 2017 Feb 04, 2017

Copy link to clipboard

Copied

I have an illegal /FontBBox in a truetype font in a postscript job. I send this file to a printer, the printer flushes the job with "illegalfont" error message.

I have a composite font with a CMap and the base font is the truetype font with the illegal /FontBBox. I send this file to a printer, the printer happily prints the job.

Any expert can shed any lights on this?

TOPICS
Programming

Views

901

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 05, 2017 Feb 05, 2017

Copy link to clipboard

Copied

Perhaps you missed my reply, which I think covers this all... A RIP is NOT a validator. If a file contains an error the RIP is not required to do anything in particular (with certain specific exceptions in the PS Language). If an error is detected it might produce a PostScript error. Or the value might be ignored as if it isn't there. Or forced in range. Or something weird and unpredictable might happen. It is the responsibility of the PostScript to be correct !

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 05, 2017 Feb 05, 2017

Copy link to clipboard

Copied

Thanks so much for the replay. I am sorry for not making my question more clear and precise.

I was perplexed by the fact that why the Adobe printer interpreter treats the same error differently.  

I was searching the Postscript Language Reference 3rd edition and could not find an answer.

When the illegal /FontBBox is in a simple truetype font, the printer flush the job with an error message"illegalfont from offending command show".

When the same illegal /FontBBox is in a CID-Keyed composite font, /Fonttype 0 with /FMapType 9, the same printer does not respond to the same illegal /FontBBox and print the job.

Possibly this is an Adobe bug but most likely it is something that somewhere in the reference book that states that /FontBBox is ignored for CID-Keyed fonts. I just have not found this "somewhere" and I hope that someone out there would know this.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 05, 2017 Feb 05, 2017

Copy link to clipboard

Copied

No that's not at all what I said. Not a bug, probably not in the reference manual: you just cannot expect that an error will be reported. Different font, different code, different day, different programmer.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 05, 2017 Feb 05, 2017

Copy link to clipboard

Copied

The spec states that if there is an error it will be reported.  As in the case of the illegal FontBBox in the font dictionary,  an illegalfont error is reported. I expect that the same illegalfont error be reported from the same illegal FontBBox in the CID-Keyed font but the printer interpreter is not following its own spec in this case.

发送自我的三星设备

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 06, 2017 Feb 06, 2017

Copy link to clipboard

Copied

Please give an exact reference fir this very surprising statement in your first sentence.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 06, 2017 Feb 06, 2017

Copy link to clipboard

Copied

Error reporting is an important part of the Postscript language functionality. All operators need to report errors properly when they encounter one. For this particular case, (plrm 3rd edition p.690) show operator reports invalidfont when the illegal /FontBBox is in the font dictionary of a truetype font.

When the same illegal /FontBBox is in the font dictionary of a CID-Keyd font, there is no error reported. Why?

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 06, 2017 Feb 06, 2017

Copy link to clipboard

Copied

Please give a specific reference. Until you do I can only say this is normal and unsurprising.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 06, 2017 Feb 06, 2017

Copy link to clipboard

Copied

:

11 dict begin/FontType 42 def

/FontName /SampleFont def

/PaintType 0 def

/FontMatrix def

/FontBBox {500 2 div 400 100 add 100 300 100 sub} def

::

/MyFont currentdict end definefont setfont

1 0 0 setrgbcolor

100 100 moveto

<01020304> show

Send this job to an Adobe printer, you get

ERROR: invalidfontOFFENDING COMMAND: show

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 06, 2017 Feb 06, 2017

Copy link to clipboard

Copied

Please give a reference to a page in the PD Language Reference. Which supports your claim that all errors must be reported. I believe I understand your description fully so there is no need for examples.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 06, 2017 Feb 06, 2017

Copy link to clipboard

Copied

Is the section " 3.11 Errors" on page 114 are you referring to?

Whether or not to report an error based on the error handler is a different issue from what I was referring to. I am searching for the reason why the same exact error is being reported on one kind of font but not on the other kind. The printer error handler is the same and the job does not change the error handling behavior.

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 06, 2017 Feb 06, 2017

Copy link to clipboard

Copied

LATEST

So you have nothing in the PS Language Reference that says that THIS error SHALL be detected and reported. So I have nothing more to add.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines