• Login
sketchucation logo sketchucation
  • Login
ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

SU Menu Font and Size

Scheduled Pinned Locked Moved Developers' Forum
7 Posts 3 Posters 263 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.
  • J Offline
    Jim
    last edited by 25 Jan 2010, 16:07

    How to find out the font used by SU menus? I want to use the same in a WebDialog for consistency.

    Hi

    1 Reply Last reply Reply Quote 0
    • T Offline
      thomthom
      last edited by 25 Jan 2010, 16:09

      Query the system for the font settings. Somewhere in the registry.

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

      1 Reply Last reply Reply Quote 0
      • T Offline
        thomthom
        last edited by 25 Jan 2010, 16:11

        HKEY_CURRENT_USER\Control Panel ?

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

        1 Reply Last reply Reply Quote 0
        • T Offline
          thomthom
          last edited by 25 Jan 2010, 16:13

          Never mind all that. I just remembered, since it's for webdialogs - there is CSS keywords for this: http://www.w3.org/TR/CSS2/fonts.html#font-shorthand

          You even got a list of system colours: http://www.w3.org/TR/CSS21/ui.html#system-colors

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

          1 Reply Last reply Reply Quote 0
          • J Offline
            Jim
            last edited by 25 Jan 2010, 16:20

            Ah!

            body {
              font; menu;
            }
            

            seems to work. Is it portable?

            Hi

            1 Reply Last reply Reply Quote 0
            • T Offline
              thomthom
              last edited by 25 Jan 2010, 16:42

              Think so. It's part of the W3C standard - think it work across platforms. Though I've never used these keywords outside pure Windows environment so I don't know how well the support is. Will need to do some testing. I got an OSX and Linux box...

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

              1 Reply Last reply Reply Quote 0
              • D Offline
                Dan Rathbun
                last edited by 28 Jan 2010, 14:20

                @thomthom said:

                Will need to do some testing. I got an OSX and Linux box...

                Here's a test page for the SystemColors:
                http://samples.msdn.microsoft.com/workshop/samples/author/dhtml/colors/sys_colors.htm

                I'm not here much anymore.

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

                Advertisement