sketchucation logo sketchucation
    • Login
    πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    SU Menu Font and Size

    Scheduled Pinned Locked Moved Developers' Forum
    7 Posts 3 Posters 263 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.
    • J Offline
      Jim
      last edited by

      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
      • thomthomT Offline
        thomthom
        last edited by

        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
        • thomthomT Offline
          thomthom
          last edited by

          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
          • thomthomT Offline
            thomthom
            last edited by

            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

              Ah!

              body {
                font; menu;
              }
              

              seems to work. Is it portable?

              Hi

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

                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
                • Dan RathbunD Offline
                  Dan Rathbun
                  last edited by

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

                  Advertisement