Giter Club home page Giter Club logo

Comments (6)

Aerilius avatar Aerilius commented on June 3, 2024

I'd prefer sane defaults over (GUI) configurability, that means inheriting the OS's UI font and the OS's programming font.

from sketchup-console-plus.

Aerilius avatar Aerilius commented on June 3, 2024

Since many programmers like customization and many source code editors offer this (maybe because Windows seems not to allow setting your favorite programming font as OS-wide default), we could implement at least a non-GUI way to override the inherited font.

  • Add a key to settings for enabling font override and for selected font
  • Add code to sync all html code elements' font with this setting (need to be careful in which component this should be implemented without hardcoding references to certain elements)
  • Settings are stored in registry. Not sure whether to introduce rather a configuration file for manual editing (using both adds complexity, or maybe replace registry by config file).

from sketchup-console-plus.

thomthom avatar thomthom commented on June 3, 2024

Simplest might be to use Sketchup.read_default and pass that to the dialog as it boots (or as param in the file URL). That and document the setting.

I have been playing around with Ace myself the last few days - for a "Snippet-Player". Was able to set the font.

this.editor.setOptions({
        fontFamily: "Fira Code; monospace",
        fontSize: "14pt"
      });

from sketchup-console-plus.

Aerilius avatar Aerilius commented on June 3, 2024

Yes, but there are more places (console output is not an ace editor, but a look-alike).
In the back-end I use read-default, so that is at the moment the registry or plist, if that is not too inconvenient to edit manually then I can leave it as it is.

from sketchup-console-plus.

thomthom avatar thomthom commented on June 3, 2024

Yea, that's fine by me. It'd be a one-time set-and-forget on each machine (SU instance). Mentioning that in the GitHub README is enough for me. (Maybe useful in the extension description.)

It's a tool for developers after all. Sublime, VS Code all have you set settings via editing settings files. I see this to be no different.

from sketchup-console-plus.

Aerilius avatar Aerilius commented on June 3, 2024

Added in branch feature_font_family and merged to master.

from sketchup-console-plus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.