sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Font of text

    Scheduled Pinned Locked Moved Developers' Forum
    4 Posts 3 Posters 301 Views 3 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.
    • P Offline
      Pout
      last edited by

      when using add_note or adding a text it is possible to set the font and size by clicking entity info and then change font.

      Is it possible to access this property with ruby? I can't find it in the api.

      Thx

      1 Reply Last reply Reply Quote 0
      • M Offline
        Malkomitch
        last edited by

        the method .methods applied to a Text object returns the applicable methods
        in these methods, there is a set_last_size, which is not documented, and it requires 3 arguments.
        Does anyone know what it is?

        1 Reply Last reply Reply Quote 0
        • P Offline
          Pout
          last edited by

          i have no idea, when trying the method this is the result:
          Error: #<NoMethodError: (eval):41: undefined method `set_last_size=' for #Sketchup::Text:0x50699b0>
          (eval):41

          1 Reply Last reply Reply Quote 0
          • Chris FullmerC Offline
            Chris Fullmer
            last edited by

            Hi pout, there is no = sign on the method. (I do not know how to use it though).

            You might also see if the text object has an attribute library attached to it? I don't know if it does, its just a thought. Maybe font could be controlled there? But I would guess the method set_last_size might be better?

            Chris

            Lately you've been tan, suspicious for the winter.
            All my Plugins I've written

            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