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
    • Recent
    • Tags
    • Users
    • Login

    Set font in GeUserArea.DrawText [CLOSED]

    Scheduled Pinned Locked Moved PYTHON Development
    5 Posts 0 Posters 439 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

      On 03/03/2015 at 08:32, xxxxxxxx wrote:

      Is it possible to set the font size with:

      GeUserArea.DrawText
      

      ?

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

        On 04/03/2015 at 09:10, xxxxxxxx wrote:

        Hi terrachild,

        I'd like to know what you might have tried out.  I looked in the Python SDK help and didn't find anything but the font setting calls, but I agree they offer limited options (ie setting bold, etc.).  I'm still new to Python, in particular to how it's integrated into C4D, so any additional info from you could help.

        In particular, do you have any example code I could use to get started?

        Thanks,

        Joey Gaspe
        SDK Support Engineer

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

          On 04/03/2015 at 09:20, xxxxxxxx wrote:

          You can use a GeClipMap which has advanced options for fonts, but unfortunately there are no resources
          on how to create a font description container by hand (and I was once told that it was only possible to get
          a platform independent, correct font container with c4d.gui.FontDialog()).

          https://developers.maxon.net/docs/py/2023_2/modules/c4d.bitmaps/GeClipMap/index.html?highlight=geclip#GeClipMap.SetFont

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

            On 04/03/2015 at 09:41, xxxxxxxx wrote:

            Hi NiklasR,

            Thanks for your reply!  You confirmed what I feared: that was the only code that mentions font sizing that I could find in the Python SDK.  Going back to terrachild's original question, there is probably no way to set the font size with GeUserArea.DrawText.

            Joey Gaspe
            SDK Support Engineer

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

              On 16/03/2015 at 11:01, xxxxxxxx wrote:

              Since it's been a few weeks without a response, I'm closing this topic as 'closed', since there's no direct solution to the question.

              Joey Gaspe
              SDK Support Engineer

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