Re: Problem with CircleView Example and NSLayoutManager angles...
Re: Problem with CircleView Example and NSLayoutManager angles...
- Subject: Re: Problem with CircleView Example and NSLayoutManager angles...
- From: Steve Mykytyn <email@hidden>
- Date: Thu, 29 Jan 2004 18:00:19 -0800
well, i was careful to write "glyph" rather than "character" throughout
- so i think a text newbie can be forgiven for saying "last" rather
than "rightmost" - but that raises another question.
The proposed solution worked great for left to right text:
usedRect.origin.x + usedRect.size.width - [textContainer
lineFragmentPadding];
But would it work for anything else? I think up to the last glyph that
averaging the angles between the starts of two glyphs to get the
correct orientation of the first glyph will work whichever direction
you go. But won't the solution above fail for right to left? Should
it be just [textContainer lineFragmentPadding] for the leftmost point
of the leftmost glyph?
For even more bonus points, why doesn't "boustrophedon" return any
results in a search on Apple Support?
On Jan 29, 2004, at 5:47 PM, Douglas Davidson wrote:
>
>
On Jan 29, 2004, at 5:25 PM, Sherm Pendley wrote:
>
>
> On Jan 29, 2004, at 6:59 PM, Douglas Davidson wrote:
>
>
>
>> Bonus points to anyone who figures out why I said "rightmost" rather
>
>> than "last"...
>
>
>
> Some languages read right to left, so that the rightmost glyph is
>
> first, not last?
>
>
Right on target, a hair shy of the bullseye. Some writing systems are
>
right-to-left, but general text may be bidirectional--that is, a
>
mixture of left-to-right and right-to-left content. In bidirectional
>
text the visual ordering of the glyphs is determined from the logical
>
ordering by the bidi algorithm, and the rightmost glyph may be first,
>
last, or anywhere in between in logical ordering.
>
>
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.