Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    GUI Font Size [SOLVED]

    SDK Help
    0
    2
    196
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      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);

      Ama

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        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.

        Ama

        1 Reply Last reply Reply Quote 0
        • First post
          Last post