sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    πŸ«› Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download

    View.draw - what font and size?

    Scheduled Pinned Locked Moved Developers' Forum
    5 Posts 2 Posters 299 Views 2 Watching
    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.
    • thomthomT Offline
      thomthom
      last edited by

      When you use view.draw - is the font and text size always the same? I can't seem to find anything that affects it.

      Thomas Thomassen β€” SketchUp Monkey & Coding addict
      List of my plugins and link to the CookieWare fund

      1 Reply Last reply Reply Quote 0
      • thomthomT Offline
        thomthom
        last edited by

        I changed the Screen Text and the Leader Text in Model Info - but none of that affected the text produced by view.text.

        In a way I hope that it doesn't use the setting of any of these - as calculating the position of text would be completely impossible if it did (as oppose to just difficult if it's fixed.)


        view_draw.png

        Thomas Thomassen β€” SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund

        1 Reply Last reply Reply Quote 0
        • TIGT Offline
          TIG Moderator
          last edited by

          I think that view draw text uses the Font and Size set for 'Leader Text', as [re]set in your Model Info - this is [disappointingly] not changeable in Ruby...
          Try changing your Leader Text to say Webdings and then make some view draw text to see what I mean 🀣

          TIG

          1 Reply Last reply Reply Quote 0
          • thomthomT Offline
            thomthom
            last edited by

            Ok, so the question then is: is it the same font and size on OSX as well? (You'd think "yes", but I've learned not to make such assumptions.)

            Can't help but wonder why no API to control this exist though. Did they just call it a day?

            Thomas Thomassen β€” SketchUp Monkey & Coding addict
            List of my plugins and link to the CookieWare fund

            1 Reply Last reply Reply Quote 0
            • TIGT Offline
              TIG Moderator
              last edited by

              @thomthom said:

              I changed the Screen Text and the Leader Text in Model Info - but none of that affected the text produced by view.text.
              In a way I hope that it doesn't use the setting of any of these - as calculating the position of text would be completely impossible if it did (as oppose to just difficult if it's fixed.)
              You are quite right - I quickly did the test using Chris's Bender Script that puts up 'start' and 'end' text, BUT I now discover that this text isn't view.text at all, as I had thought - it's actually some plain leader-text that is added then deleted ! Sorry for the confusion 😳
              Seems that the draw.text IS predetermined and unchangeable after all πŸ˜•

              TIG

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              Buy SketchPlus
              Buy SUbD
              Buy WrapR
              Buy eBook
              Buy Modelur
              Buy Vertex Tools
              Buy SketchCuisine
              Buy FormFonts

              Advertisement