Closed Bug 189740 Opened 22 years ago Closed 22 years ago

[ps] Adding CID support Check Code to postscript should be closed when TrueType printing is disabled

Categories

(Core :: Printing: Output, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: Louie.Zhao, Assigned: Louie.Zhao)

References

Details

Attachments

(1 file, 2 obsolete files)

Now the "CID support Check Code" will be added to postscript if freetype is
enabled. The most Linux users (their systems have freetype) who don't enable
TrueType printing will still have these checking code in postscript when printing.

bstell: will the CID checking code stop the printing process if the printer
doesn't support CID? If answer is yes, I think the patch should be applied; if
answer is no, the current code is ok.
Attached patch working patch (obsolete) — Splinter Review
Stop outputing CID check code to postscript when TrueType printing is disabled.
Attachment #112019 - Flags: review?(bstell)
Comment on attachment 112019 [details] [diff] [review]
working patch

Louie, we should also determine whether we have embedded the CID fonts
updated patch
Attachment #112019 - Attachment is obsolete: true
Attachment #112019 - Flags: review?(bstell)
Attachment #112023 - Flags: review?(bstell)
Looks great!

Minor nit: could we change mTTPEnable to mFTPEnable?

+    if (mTTPEnable) {
+      rv = pref->GetBoolPref("font.FreeType2.printing", &mTTPEnable);

I had noticed it embedded fonts even if they were not used so I was happy to see
this:

-  FT2SubsetToType8(face, mSubset.get(), mSubset.Length(), wmode, aFile);
+  if (mSubset.Length() > 0)
+    FT2SubsetToType8(face, mSubset.get(), mSubset.Length(), wmode, aFile);

Attachment #112023 - Flags: review?(bstell) → review+
Attachment #112023 - Attachment is obsolete: true
Comment on attachment 112120 [details] [diff] [review]
patch following bstell's comments

bring bstell's "r" here
Attachment #112120 - Flags: review+
Comment on attachment 112120 [details] [diff] [review]
patch following bstell's comments

sr=blizzard
Attachment #112120 - Flags: superreview+
Summary: Adding CID support Check Code to postscript should be closed when TrueType printing is disabled → [ps] Adding CID support Check Code to postscript should be closed when TrueType printing is disabled
checked in by louie.zhao@sun.com on 01/21/2003
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: