Re: Japanese vertical text
Re: Japanese vertical text
- Subject: Re: Japanese vertical text
- From: Douglas Davidson <email@hidden>
- Date: Mon, 18 Feb 2002 16:39:58 -0800
On Monday, February 18, 2002, at 04:17 PM, Bruno Blondeau wrote:
I'd like to draw text vertically for Japanese users. How can I do this?
I have heard that no application that ship with MacOS X is able to do
this.
However, I guess Cocoa is easily able to handle this, but didn't found
anything really helpful.
The Cocoa text system does not currently support vertical text. The
limitation is primarily in NSTypesetter, secondarily in certain methods
of NSTextView and NSLayoutManager; for example, the current standard
concrete NSTypesetter subclass is NSSimpleHorizontalTypesetter, which as
the name suggests does not perform vertical layout. The APIs are all
designed to support either horizontal or vertical text, but the
necessary layout simply is not yet implemented. As a result, the
current situation is that you can draw the glyphs, provided that you
determine for yourself where they should go. In addition, for any
characters that should be represented by different glyphs in vertical as
opposed to horizontal layout, you would need to make those modifications
yourself.
Douglas Davidson
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.