How to get color kitty icon in titlebar with Wayland? #3833
Replies: 3 comments 2 replies
-
No clue, works for me. The relevant code is in find_fallback_font_for()
in freetype_render_ui_text.c
|
Beta Was this translation helpful? Give feedback.
1 reply
-
On Fri, Jul 16, 2021 at 12:54:59AM -0700, Daniel Egnor wrote:
I presume you get a full-color cat when you do that?
Yes, I do. Probably just add a rule in fontconfig for that character to
use noto
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
egnor
-
On Fri, Jul 16, 2021 at 01:30:59AM -0700, Daniel Egnor wrote:
I can do better than that!
The issue seems to be as described in https://github.com/stove-panini/fontconfig-emoji, since the title bar specifies no family whatsoever, on this system anyway (Ubuntu 21.04) it falls back to DejaVu Sans, which includes some (ugly) emoji glyphs. Since this becomes the "declared" family, it takes precedence over the color emoji font, and its (ugly) emoji glyphs get used.
Presumably on your system there's a somewhat different setup for some reason.
Yes, I have fontconfig configured with default fonts that I like.
The advice in the repo linked above is to blacklist DejaVu fonts. Not sure if that's the best advice, but it certainly does fix the problem with the title bar kitty cat.
DejaVu is a pretty bad font generally, it has metrics issues with some
characters for instance (search for dejavu in this issue tracker).
I endorse un-installing/blacklisting it.
This is clearly a system problem. Also, perhaps at some point you will start actively picking the font used for the client side decoration, rather than just taking the absolute system default font. (Though really the whole CSD concept is strange and should probably be thought of as a fallback stopgap, not something to make pretty? It seriously doesn't make sense for every app to invent its own title bars.)
I have no plans to specify a font family for this, ideally systems
should be configured with whatever font they like. Sadly, this being
linux, there is no central place to configure fonts, every desktop
env/application invents its own, despite the existence of fontconfig.
Personally, I just configure it once in fontconfig, and forget about it.
Most applications fallback to those.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I run kitty under Wayland, the client side decorations look like this:
That's OK but the cat face could be better. In a tangential thread about Wayland decorations, @stellarexplosions posted a screenshot:
That's an adorable cat! And so nicely centered in the title bar! How do I get that? I have the noto-color-emoji font installed, and my
.fonts.conf
set up to prepend it -- in fact, you'll note that kitty's own unicode picker gets perfectly happy colored kitties:I just don't get one in the title bar. 😿 What am I missing?
-- Kitty lover (both kinds) 😻
Beta Was this translation helpful? Give feedback.
All reactions