On Sep 23, 2006, at 7:17 AM, Matthias Buercher wrote:

this is what i am actually dowing, but the result is not good in quality because it relies only on the gray values and not on the form of the character. the result is isolated dots and uneven thickness of the lines and uneven thickness of the same character depending on its position (OSX draws with subpixel precision).

Yeah, and one thing I forgot is that OS X also uses RGB colors for anti-aliasing even if the text color is black. You might get better results if you get the Luminance (perceptual gray) of each color. Also the method I posted does do some "sharpening" which would improve the quality a little bit.

the font renderers have specific routines to optimize this, because they know the points of the path. if i had to do this myself, it would be an overkill because i would have to draw it very oversampled and then vectorize the image!

New in REALbasic 2006 is the Graphics.Handle property, and I am guessing you can the Handle property to Extend the Graphics object using Declares. If you find the appropriate QuickDraw or Quartz function, you could add a Graphics.DrawAliasedString function. Unfortunately this will mean spending a lot of time on the Apple website (which is time-consuming when you don't know exactly what you are looking for). The other "unfortunate" is that Seth Willis had a Tutorial declaring to Quartz on ResExcellence... but this website has been down for quite a while. His tutorial was about gradients, but it would probably give a good starting point if you can get hold of that article.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to