Git Product home page Git Product logo

Comments (3)

romkatv avatar romkatv commented on July 17, 2024

Use a different font for non-ASCII text is disabled by default though.

There are many non-default options that can break things. It would take too much space to cover all of them.

from powerlevel10k.

rwmitchell avatar rwmitchell commented on July 17, 2024

Hmm. Setting a different font for non-ascii text and then selecting a font that works properly allows me to then use any font, regardless of it having the proper glyphs.

from powerlevel10k.

romkatv avatar romkatv commented on July 17, 2024

Hmm. Setting a different font for non-ascii text and then selecting a font that works properly allows me to then use any font, regardless of it having the proper glyphs.

Yep. That's what this setting is for, although it's a crude solution because ASCII/non-ASCII isn't the right partitioning but in practice it's close to what you want.

I don't know about macOS but on Linux you can also do this on the level of the OS. That is, you can define a fallback font that will be used for glyphs missing in other fonts. This is of course better than ASCII/non-ASCII. Physically copying glyphs from one font to another (called font patching) is a viable alternative, which is often easier to achieve in practice and which works on all operating systems. This is in fact how MesloLGS NF is made: it's just Menlo (the font Apple used for the Terminal before switching to whatever they use now) with a bunch of glyphs added to it from other fonts. This patching is done by a script, which you can run with another font as a base. E.g., you can make a font with properly sized icons based on Hack, or any other monospace font. See https://github.com/romkatv/powerlevel10k?tab=readme-ov-file#how-was-the-recommended-font-created

from powerlevel10k.

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.