Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    TrueType Fonts

    SDK Help
    0
    3
    282
    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

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 23/02/2004 at 00:54, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8.207 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      how can i get the information of a Osplinetext which TrueType font (incl. style) is used?

      i already have the FontData and the belonging BaseContainer. (look at FontData in Osplinetext)
      but with that i get only then a Filename if the used font is a postscript font. TrueType fonts won't return any information.

      how do i get TrueType information, too?

      that's the used code:

        
      BaseContainer *bc = bo->GetDataInstance();  
      FontData *fd = (FontData* )bc->GetCustomDataType(PRIM_TEXT_FONT, FONTCHOOSER_DATA);  
      BaseContainer fcont = fd->GetFont();  
      Bool ps = fcont.GetBool(FONT_USE_POSTSCRIPT);  
      Filename fcfn = fcont.GetFilename(FONT_POSTSCRIPT_NAME);  
      

      in case of TrueType fonts fcfn will be NULL.

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 23/02/2004 at 15:42, xxxxxxxx wrote:

        As it says in the docs, anything else than the Postscript information in the container is private. You might be able to find other interesting stuff in there if you iterate through the elements (I haven't tried), but that would be unsupported.

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

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 23/02/2004 at 23:03, xxxxxxxx wrote:

          So if i understood, there's no way by SDK to get information which TrueType font was used for a Osplinetext.
          It seems that I have to code my own object type which supports such a function.

          Thanks anyway

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