Coder Social home page Coder Social logo

Comments (4)

bmealhouse avatar bmealhouse commented on August 22, 2024

Hi @onContentStop, thanks for submitting this issue.

The “includeFontFamilies” config setting was designed mostly for programming fonts developers purchase.

As far as I know, I don’t have access to look at what system monospaced fonts are installed. I could dig into this a bit more to see if anything has changed since the last time I checked. Otherwise, if you have any ideas about how this could be accomplished, please feel free to open a PR.

There is another way to accomplish this without looking at the file system for installed monospace fonts. What fonts are missing and what platform are you using (mac, windows, linux)?

from vscode-shifty.

Phytolizer avatar Phytolizer commented on August 22, 2024

It's not necessarily that a specific font is missing, but more that it would be a generic solution.

On Linux, you can get this information by running in a shell fc-list :mono family | sed 's/\\-/-/g'.
On Windows it is more complicated, involving reading the registry and getting font metrics with .NET. I don't have an elegant solution for that.

from vscode-shifty.

bmealhouse avatar bmealhouse commented on August 22, 2024

Thanks for the suggestion @onContentStop.

I would certainly like to have a more generic solution since it would remove another one of my config settings (ignoreCodefaceFontFamilies) as well. When I have time I will do more research on how this could work across different platforms. The command you mentioned above doesn't work on macOS either.

As I mentioned before, PRs are welcome if you are also interested in digging into this.

from vscode-shifty.

Phytolizer avatar Phytolizer commented on August 22, 2024

Sure, I'll get to work figuring out how to integrate into your code, then make a Linux implementation at the very least. Unfortunately that nice one-liner I wrote relies on you having fontconfig installed (on Mac, through Homebrew), so it won't work for most OSX machines unless they install that. I can work on a generic Objective-C solution for that though. As for Windows, I still don't know :(

from vscode-shifty.

Related Issues (12)

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.