Low-Level Cocoa Typography
Low-Level Cocoa Typography
- Subject: Low-Level Cocoa Typography
- From: Dean Snyder <email@hidden>
- Date: Thu, 25 Aug 2005 16:19:44 -0400
Can anyone point me to any documentation and/or sample code for low-
level typographic control in Cocoa? I've read Apple's header files and
online documentation and there is not enough detail there.
Specifically, right now, I want to be in full control of glyph placement
so I can position ruby annotations above the glyphs they annotate.
If you want to see what ruby annotation looks like see this web page for
examples of HTML ruby annotation - <http://www.w3.org/TR/ruby/#what>.
But unlike the HTML ruby there, I am attempting to do ruby for Unicode
text in an NSTextView (for cuneiform text).
I have sub-classed and installed my custom NSATSTypesetter, and am
overriding the setlocation method:
- (void)setLocation:(NSPoint)location withAdvancements:(const float *)
advancements forStartOfGlyphRange:(NSRange)glyphRange
{
[super setLocation:location withAdvancements:advancements
forStartOfGlyphRange:glyphRange];
}
This method is indeed being called, but I have no idea what to do here,
which is why I just punt and call the super class's method.
Am I barking up the wrong tree? Any suggestions?
Respectfully,
Dean A. Snyder
Manager, Digital Hammurabi Project
Assistant Research Scholar
Computer Science Department
Whiting School of Engineering
218C New Engineering Building
3400 North Charles Street
Johns Hopkins University
Baltimore, Maryland, USA 21218
office: 410 516-6850
cell: 717 817-4897
www.jhu.edu/digitalhammurabi/
http://users.adelphia.net/~deansnyder/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden