Giter Club home page Giter Club logo

Comments (3)

kovidgoyal avatar kovidgoyal commented on June 20, 2024

You havent added the symbol_map directive from that FAQ entry to your kitty.conf. Do that and you should be fine. It looks like a different fallback font is being picked up, easily confirmed by running kitty with --debug-font-fallback

from kitty.

oddlama avatar oddlama commented on June 20, 2024

Just FYI, I've tried --debug-font-fallback before and it gives the exact same output, which is why I assumed it is a bug.

kitty 0.32.1:

[030 19:07:30.183808] Preloaded font faces:
[030 19:07:30.183856] normal face: /nix/store/6v0wji4zlbc4rj8mj5gvksvf4dmzp3qd-home-manager-path/share/fonts/truetype/JetBrainsMono-Regular.ttf:0
[030 19:07:30.183877] bold face: /nix/store/6v0wji4zlbc4rj8mj5gvksvf4dmzp3qd-home-manager-path/share/fonts/truetype/JetBrainsMono[wght].ttf:458752
[030 19:07:30.183895] italic face: /nix/store/i8z9pqy82nw1vr591cm4vmn6pkp42xmg-jetbrains-mono-2.304/share/fonts/truetype/JetBrainsMono-Italic.ttf:0
[030 19:07:30.183913] bi face: /nix/store/i8z9pqy82nw1vr591cm4vmn6pkp42xmg-jetbrains-mono-2.304/share/fonts/truetype/JetBrainsMono-BoldItalic.ttf:0
U+f017 Face(family=Symbols Nerd Font, style=Regular, ps_name=SymbolsNF, path=/nix/store/bhy4mhdwlsndgbi891fsi8nx5vkb09q7-nerdfonts-3.1.1/share/fonts/truetype/NerdFonts/SymbolsNerdFont-Regular.ttf, index=0, is_scalable=True, has_color=False, ascender=1638, descender=-410, height=2048, underline_position=-306, underline_thickness=102, strikethrough_position=530, strikethrough_thickness=102) (new face)

kitty 0.31.0:

[030 19:07:25.267115] Preloaded font faces:
[030 19:07:25.267173] normal face: /nix/store/6v0wji4zlbc4rj8mj5gvksvf4dmzp3qd-home-manager-path/share/fonts/truetype/JetBrainsMono-Regular.ttf:0
[030 19:07:25.267196] bold face: /nix/store/6v0wji4zlbc4rj8mj5gvksvf4dmzp3qd-home-manager-path/share/fonts/truetype/JetBrainsMono[wght].ttf:458752
[030 19:07:25.267217] italic face: /nix/store/i8z9pqy82nw1vr591cm4vmn6pkp42xmg-jetbrains-mono-2.304/share/fonts/truetype/JetBrainsMono-Italic.ttf:0
[030 19:07:25.267237] bi face: /nix/store/i8z9pqy82nw1vr591cm4vmn6pkp42xmg-jetbrains-mono-2.304/share/fonts/truetype/JetBrainsMono-BoldItalic.ttf:0
U+f017 Face(family=Symbols Nerd Font, style=Regular, ps_name=SymbolsNF, path=/nix/store/bhy4mhdwlsndgbi891fsi8nx5vkb09q7-nerdfonts-3.1.1/share/fonts/truetype/NerdFonts/SymbolsNerdFont-Regular.ttf, index=0, is_scalable=True, has_color=False, ascender=1638, descender=-410, height=2048, underline_position=-306, underline_thickness=102, strikethrough_position=530, strikethrough_thickness=102) (new face)

Diffing this will show that it's the same, byte for byte except for timestamps.
Nonetheless, adding the symbol_map fixes it. Thank you.

EDIT: I notice that after adding the symbol map, some symbols are rendered bigger than before when it was autodetected. Is this expected?

image

EDIT 2: Adding just the symbol_map line from the FAQ suddenly causes some fonts to be rendered from a 9x15 font instead of using JetBrains Mono:

U+e712 Face(family=Fixed, style=Regular, ps_name=, path=/nix/store/rp7kjp0w7j4lrhrcb26innhh4nn1rwlx-font-misc-misc-1.1.3/lib/X11/fonts/misc/9x15.pcf.gz, index=0, is_scalable=False, has_color=False, ascender=0, descender=0, height=0, underline_position=0, underline_thickness=0, strikethrough_position=0, strikethrough_thickness=0) (new face)

image

from kitty.

BigBrotherJu avatar BigBrotherJu commented on June 20, 2024

This issue also appears on Mac with 0.32.1 kitty.

In my case, kitty sometimes picks up nerd font icons from CJK fonts installed in my system, instead of symbols only nerd font.

from kitty.

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.