I tried using NSExpansionAttributeName when sending a NSAttributedString to
CoreText, but it didn’t work. Docs say it should be a NSNumber of the log of
the expansion factor. This is confusing because log normally means base 10,
except that in C it is actually ln() (Naperian). Either way, it had no
affect on the text size rendered by my CoreText engine.  (Back to scaling my
font, I guess.)


On 9/30/14 2:00 PM, "cocoa-dev-requ...@lists.apple.com"
<cocoa-dev-requ...@lists.apple.com> wrote:

> One of my big gripes with the Mac or iOS text system is the lack of a real
> super/subscript attribute. I haven¹t tried doing custom attributes. Is it
> possible to define and use custom super/subscript attributes which combine the
> normal baseline shift attributes with NSExpansionAttributeName to get a
> typographically correct super/subscript. Geesh! MS has always had this, at
> least in Word, etc.


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to