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

    Acquire path to selected font in C4D

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 251 Views
    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 Offline
      Helper
      last edited by

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

      On 23/01/2012 at 07:17, xxxxxxxx wrote:

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

      ---------
      Hi,
      I'm fiddling around with this for quite some time now, but I somehow don't get it.
      I'd like to get the path of the font (or better the path and the name of the actual font file) a user selected in a "spline text" or "MoText" object. I think, I can correctly retrieve a custom data type FontData from the objects container, but from there on, I don't seem to get any further... I'm quite sure, there's a rather simple way of pulling this off, but I too blind to find it...

      Edit:
      At first I thought, I had a solution for R13... as Matthias Bober descriped in "Topic: Fontchooser" thread a way to get the Fontname in R13.
      Now I realize, the displayed font name won't help in order to find the actual font file (as filenames tend todiffer signifivantly (at least on Windows))...

      And there's another point. If I use Matthias's way to get the font name from a MoText object, it delivers no name until the user has clicked once on the MoText font chooser. Shouldn't it deliver the default font name instead (as that's the font selected in the MoText)?
      Thanks in advance,
      Andreas

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

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

        On 26/01/2012 at 11:12, xxxxxxxx wrote:

        Just wanted to say, that I've worked around this (basically by managing my own font table and matching the C4D font family name and style into this table). As it looks, there seems to be no easy C4D way of getting this info (maybe in a later version?).
        For now this topic may be regarded as closed.

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