[futurebasic] Text orientation problem

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : February 2012 : Group Archive : Group : All Groups

From: Ken Shmidheiser <kshmidheiser@...>
Date: Tue, 14 Feb 2012 19:42:36 -0500
Steve asked:

>Currently I store a number which is the font family number. 
>FMFontFamily =  fn FMGetFontFamilyFromName("Arial")
>
>How can I use that or convert FMFontFamily to the  CTFontRef used below. ?

Steve,

Feed "Arial" as a CFStringRef to CTFontCreateCopyWithFamily and it 
will generate the CTFontRef without need for the FMFontFamily API.

Ken