I have a CGContext that is not associated with any window. I am trying to draw text to it using the following:
this subject isn't covered very well in the docs (the portions i read anyway), so i had to figure this out on my own with the help of google, yet i'm still doing something wrong because the text is written to the current window instead of the context i'm passing in to the TXNTextBoxOptionsData struct.
what do i need to do to get this to work properly?
Code:
TXNTextBoxOptionsData options = {kTXNUseCGContextRefMask,kATSUStartAlignment,kATSUNoJustification,0,context};
TXNDrawCFStringTextBox(string,&bounds,gDefaultStyle,&options);
this subject isn't covered very well in the docs (the portions i read anyway), so i had to figure this out on my own with the help of google, yet i'm still doing something wrong because the text is written to the current window instead of the context i'm passing in to the TXNTextBoxOptionsData struct.
what do i need to do to get this to work properly?