GUI Font Size [SOLVED]

On 18/07/2015 at 05:11, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   15/16 
Platform:   Windows  ;   Mac OSX  ; 
Language(s) :     C++  ;

Is it possible to get the C4D gui font size in the savable demo?

Does the following code work if the application is registered?
GeData d;
interface_plg->GetParameter(DescID(PREF_INTERFACE_FONTSTD), d, DESCFLAGS_GET_0);
FontData *fd = (FontData* )d.GetCustomDataType(FONTCHOOSER_DATA);
BaseContainer bcfont = fd->GetFont();
String name = bcfont.GetString(500);
l_FontHeight = bcfont.GetInt32(501);


On 19/07/2015 at 04:06, xxxxxxxx wrote:

The IDs have changed to 507 ( font height ) and 508 ( font name ).
This code works on savable demo and registered versions only.