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

    Is it possible to retrieve the font settings using Ruby?

    Scheduled Pinned Locked Moved Developers' Forum
    3 Posts 2 Posters 277 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.
    • A Offline
      asteronimo
      last edited by

      Is there an option, attribute or method to retrieve the font settings
      (font-family, font-size, color) of the active model or a Text object ?

      I need it to for an SVG export of my drawing.

      1 Reply Last reply Reply Quote 0
      • T Offline
        todd burch
        last edited by

        Look at the Rendering_Options class. It's a big nested hash. Lots of info there.

        1 Reply Last reply Reply Quote 0
        • A Offline
          asteronimo
          last edited by

          Todd,

          There is a lot about colors in the hash but, alas, nothing about font attributes.

          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