Ask a Question related to Mac Programming, Design and Development.
-
jmm #1
ATSU !!!
Hi,
This code doesn't work fine, why ?
CFStringRef theString = CFSTR("toto");
CFIndex length = CFStringGetLength(theString);
err = ATSUCreateTextLayout(&textLayout);
//---- OK
err = ATSUSetTextPointerLocation( textLayout, CFStringGetCharactersPtr(
theString),
kATSUFromTextBeginning, kATSUToTextEnd, length );
//---- -> err = -50
----
replace no_spam by free.fr to reply.
JMM
jmm Guest
-
Miro Jurisic #2
Re: ATSU !!!
In article <20030806150922942+0200@news.oleane.fr>, jmm <jm.marino@no_spam.fr>
wrote:
What did CFStringGetCharactersPtr return?> Hi,
>
> This code doesn't work fine, why ?
>
> CFStringRef theString = CFSTR("toto");
> CFIndex length = CFStringGetLength(theString);
>
> err = ATSUCreateTextLayout(&textLayout);
> //---- OK
>
> err = ATSUSetTextPointerLocation( textLayout, CFStringGetCharactersPtr(
> theString),
> kATSUFromTextBeginning, kATSUToTextEnd, length );
> //---- -> err = -50
meeroh
Miro Jurisic Guest



Reply With Quote

