RE: Compressing glyphs programmatically
RE: Compressing glyphs programmatically
- Subject: RE: Compressing glyphs programmatically
- From: Gordon Apple <email@hidden>
- Date: Tue, 30 Sep 2014 21:01:38 -0500
- Thread-topic: Compressing glyphs programmatically
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, "email@hidden"
<email@hidden> 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 (email@hidden)
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:
This email sent to email@hidden