Am 17.11.2010 um 21:04 schrieb Real Basic:

> CGContextSelectFont (myContext, REALCString(fontName),fontSize,
> kCGEncodingMacRoman);

Well, a REALstring could be in unicode encoding, so using REALCString and 
passing the C String can make trouble.

> CGContextShowTextAtPoint(myContext, x, r.bottom - y, REALCString(text)
> , strlen(REALCString(text)));

CGContextShowTextAtPoint is more for debug output than for real world 
application usage.
You'd better use ATSUI or something else to get a better drawing. Especially a 
better font handling with automatically substitution.

Greetings
Christian

-- 
See you in Atlanta (USA) at the REAL Studio Summit 2011

Registration and details here:
http://arbpmembers.org/real-studio-summit-2011/



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

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to