discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rotating text


From: Fred Kiefer
Subject: Re: Rotating text
Date: Sat, 24 May 2003 15:20:26 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020903

Hi Alexander,

Alexander Malmberg wrote:
The NSBezierPath methods dealing with glyphs don't seem to be
implemented. back-art does implement charpath, so in that case you could
use the path approach with direct dps calls. However, using charpath and
fill to draw glyphs has several disadvantages (slower since you would be
bypassing the glyph cache, sub-optimal or no hinting, no sub-pixel
rendering or text-specific rendering adjustments), so you should only
use charpath if you really have to.

I just looked at your back-art charpath code and this loks like a good starting point to implement the backend handling for NSBezierPaths glyph handling. Not having any backend support always kept me from writing the needed interface methods. Would you mind if I define such a new method on NSGraphicsContext and implement it of back-art. Or even better let you do the actual implementaion?

Would you like this interface:

[NSGraphicsContext appendBezierPath: (NSBezierPath*) path
                   withPackedGlyphs:(const char *)packedGlyphs]

(If you don't like the packed glyph concept we could as well use an array of glyphs plus the length)

This could than be used to impelement PSCharPath: for all gsc based backends, of course still back-art would be the only one with working code.

Fred






reply via email to

[Prev in Thread] Current Thread [Next in Thread]