Mailing Lists: Apple Mailing Lists

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

Why does CG "smarten" quotes in PDF?



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?

Rob Raguet-Schofield
(rob ra gA skO fEld)

_______________________________________________
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


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.