Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why does CG "smarten" quotes in PDF?



On Jun 29, 2005, at 9:00 AM, Rob Raguet-Schofield wrote:

If my application generates PDF containing a single quote character:

BT
1 0 0 -1 101 204 Tm
/F1 153 Tf
(') Tj
ET

where F1 is the built in Times font:

<< /Type /Font /Subtype /Type1 /Name /F1 /BaseFont /Times-Roman >>

Preview (as well as Adobe Acrobat) display this single quote as a smart/culy single quote. If I select and copy this text from Preview I get unicode character 0x2019 (RIGHT SINGLE QUOTATION MARK), when the character that was intented to be displayed was unicode 0x0027 (APOSTROPHE).

Why does Preview (i.e. CoreGraphics PDF renderer) change the character that's being displayed from a regular single quote to a smart single quote?

Do you get the same behavior in Acrobat? If so, then there may be something in the PDF file you generate which is causing this mapping. If not, then this sounds like a bug in CG. It would help if you could file a bug about this, along with a PDF file which illustrates the problem.


Thanks,
Derek

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartz-dev/email@hidden

This email sent to email@hidden
References: 
 >Why does CG "smarten" quotes in PDF? (From: Rob Raguet-Schofield <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.