I have also encountered the font name problem. If you examine the implementation of the Carbon font pane in my book, you'll find a workaround.

As for calling conventions, I don't know. Since code in Mach-O format works on Intel machines, my guess is that things are somehow made to work. If RS releases support for universal binaries, then I expect that external functions in code compiled for x86 will need to follow the x86 conventions, whatever those are.

Charles Yeomans


On May 12, 2006, at 8:01 AM, Andrea Suraci wrote:

Thanks Charles, very enlightening, and of course it works great. The only problem now is that apparently I cannot set text styles like bold and italic in a CGContext, but I have to use ATSUI and that is one realm I don't want to visit. Furthermore, there seem to be some discrepancies between font names in RB and Quartz.

One question: Your book says "But a study of the PowerPC calling conventions reveals that it is in fact possible to declare and call such functions."

Does it mean that it probably won't work in a Universal binary on Intel?

Thanks,
Andrea Suraci


Charles Yeomans wrote:

You can't declare a function to return a struct of size greater than four bytes. Instead you use the following trick -- declare the function with the return value as the first parameter.

_______________________________________________
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