Thanks.
I got the number based properties to work (font size, forecolor, etc),
but I'm having issues with g.TextFont.
The code I'm using is:
REALGetPropValue((REALobject)context, "TextFont", &fontName);
REALGetPropValue((REALobject)context, "TextSize", &fontSize);
CGContextSelectFont (myContext, &fontName, fontSize, kCGEncodingMacRoman);
But this doesn't appear to work. So I wrote another function that
would just returns the graphic objects font name:
char SKSFontNamefunc(REALgraphics context)
{
char fontName;
REALGetPropValue((REALobject)context, "TextFont", &fontName);
return fontName;
}
But this routine always returns blank.
The issue is probably my lack of font knowledge, my lack of c string
knowledge or both. Ultimately, I am trying to set the font of my
CGContext to the same font as the graphics object.
--Seth
On Sat, Nov 13, 2010 at 8:45 AM, Christian Schmitz
<[email protected]> wrote:
>
> Am 13.11.2010 um 13:55 schrieb Real Basic:
>
>> Is there no way to get the properties from the objects passed into the
>> plugin?
>
> Look through the SDK: REALGetPropValue
>
> http://docs.realsoftware.com/index.php/Plugin_SDK_Dynamic_Access_Reference
>
> PS: There may be only 5 people on this list, so don't expect them to answer
> emails soon.
>
> 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>
>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>