Closed qwattash closed 5 years ago
--debug-font-fallback gives you actual output showing you where each character is rendered from. Note that some box drawing characters such as the solid triangles and D from the powerline symbol set are rendered directly by kitty to ensure that they line up the cell boundaries, which is impossible to guarantee with font rendering.
If this is correct you should at least change your example in the kitty.conf
# symbol_map U+E0A0-U+E0A2,U+E0B0-U+E0B3 PowerlineSymbols
Putting U+E0B0 in this example make no sense and it is misleading, since it is a box drawing char.
And to be honest, all these hard coded characters ... meh. Yes yes, I know, it facilitates alignment. But what if i want to use a custom made box-drawing char, mmh ?
If you want to disable them, you can apply my patch here:
https://github.com/kovidgoyal/kitty/issues/2240#issuecomment-580534887
I agree with Kovid though, his box drawing code is much better for most cases.
On Sat, Feb 15, 2020 at 12:00:54PM -0800, Sherulez wrote:
If this is correct you should at least change your example in the kitty.conf
# symbol_map U+E0A0-U+E0A2,U+E0B0-U+E0B3 PowerlineSymbols
Putting U+E0B0 in this example make no sense and it is misleading, since it is a box drawing char.
What?? U+E0B0 is not a box drawing character it is a private use character, with NO defined shape.
And to be honest, all these hard coded characters ... meh. Yes yes, I know, it facilitates alignment. But what if i want to use a custom made box-drawing char, mmh ?
The goal of having properly aligned box drawing characters is far more important than that of allowing users to override their shapes. And if that was really desired it could actually be implemented easily in the current system by simply asking them to write a program that outputs the glyph for a codepoint at a specified size. kitty could then call the program to render the character.
Description
I am trying to apply a custom set of symbols for \ue0b0 and friends (in this context they are in a font file AnonymousProPowerlinePatch.ttf, which has family Anonymous Pro). The main font I use is Anonymous Pro, which does not include any powerline symbols by default. The AnonymousProPowerlinePatch font is configured to be used for the symbol_map, however it does seem to be used only for some of the symbols, indicating some sort of font fallback.
Setup
I will list what I did to try and debug that, if you have suggestions I'm happy to try them out. At this point I think there is some sort of font fallback problem but I'm not able to identify the exact cause.
This is my font configuration
The output of
kitty --debug-font-fallback
isechoing on the terminal gives
Fontconfig tells me the following:
And kitty detects the following