• Login
sketchucation logo sketchucation
  • Login
⚠️ Libfredo 15.4b | Minor release with bugfixes and improvements Update

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 18 Jan 2009, 13:04

    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 18 Jan 2009, 15:11

      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 18 Jan 2009, 15:20

        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
        1 / 1
        • First post
          3/3
          Last post
        Buy SketchPlus
        Buy SUbD
        Buy WrapR
        Buy eBook
        Buy Modelur
        Buy Vertex Tools
        Buy SketchCuisine
        Buy FormFonts

        Advertisement