You are not logged in.

#1 2023-11-08 21:41:39

estebandev528
Member
Registered: 2023-11-04
Posts: 12

Kitty does not show text font

For some reason kitty does not show the font, I don't understand why this error occurs.

The error message is this:

fast_data_types.FreeTypeError: Failed to load glyph_index=72 load_type=4, with error: cannot render this glyph format
fast_data_types.FreeTypeError: Failed to load glyph_index=86 load_type=4, with error: cannot render this glyph format
fast_data_types.FreeTypeError: Failed to load glyph_index=87 load_type=4, with error: cannot render this glyph format
fast_data_types.FreeTypeError: Failed to load glyph_index=69 load_type=4, with error: cannot render this glyph format
fast_data_types.FreeTypeError: Failed to load glyph_index=68 load_type=4, with error: cannot render this glyph format
fast_data_types.FreeTypeError: Failed to load glyph_index=81 load_type=4, with error: cannot render this glyph format
fast_data_types.FreeTypeError: Failed to load glyph_index=39 load_type=4, with error: cannot render this glyph format
fast_data_types.FreeTypeError: Failed to load glyph_index=89 load_type=4, with error: cannot render this glyph format
fast_data_types.FreeTypeError: Failed to load glyph_index=97 load_type=4, with error: cannot render this glyph format
fast_data_types.FreeTypeError: Failed to load glyph_index=1445 load_type=4, with error: cannot render this glyph format
fast_data_types.FreeTypeError: Failed to load glyph_index=21 load_type=4, with error: cannot render this glyph format
fast_data_types.FreeTypeError: Failed to load glyph_index=20 load_type=4, with error: cannot render this glyph format
fast_data_types.FreeTypeError: Failed to load glyph_index=29 load_type=4, with error: cannot render this glyph format
fast_data_types.FreeTypeError: Failed to load glyph_index=22 load_type=4, with error: cannot render this glyph format

I have deleted kitty's config, changed the font, reinstalled the fonts and it doesn't work.

The only solution that "works" is to delete the '/usr/share/fontconfig' directory but the font settings are lost to the rest of the system software.

Image: https://i.imgur.com/rIZ54zp.png

Offline

#2 2023-11-08 23:32:43

twelveeighty
Member
Registered: 2011-09-04
Posts: 1,453

Re: Kitty does not show text font

Which font doesn't work? Or does this happen with *every* font? Post the relevant Kitty config you're using.

Offline

#3 2023-11-08 23:42:23

estebandev528
Member
Registered: 2023-11-04
Posts: 12

Re: Kitty does not show text font

It happens with all fonts, even the default one

Offline

#4 2023-11-09 07:51:12

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,635

Re: Kitty does not show text font

solution that "works" is to delete the '/usr/share/fontconfig' directory

that's neither a solution nor does it explain why kitty works w/o but not w.
Also /usr/share/fontconfig/conf.avail is inert.

fc-conflist

It happens with all fonts, even the default one

There're probably a billion fonts available. You tested them all?
Please post a positive list and

1280 wrote:

Post the relevant Kitty config you're using.

I suspect this to be about some bogus font, maybe pcf, and/or ligatures.

Offline

#5 2023-11-09 16:16:36

estebandev528
Member
Registered: 2023-11-04
Posts: 12

Re: Kitty does not show text font

Here is the configuration of my kitty, (I have tried other configurations, I have tried it without configuration, but I still don't get results)
https://imgur.com/NGp2We7

And here is the screenshot that the HackNerdFont font is installed
https://imgur.com/xwv3zNp

Offline

#6 2023-11-09 16:22:57

estebandev528
Member
Registered: 2023-11-04
Posts: 12

Re: Kitty does not show text font

Here the list with my fonts installed. (kitty +list-fonts)
https://www.mediafire.com/file/qmfk2cbb … s.txt/file

Offline

#7 2023-11-09 16:27:42

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,635

Re: Kitty does not show text font

Please post the text, not an image of a texteditor showing maybe a fration thereof…
You can upload files following the tip in the 1st link below and also feed the output of fc-conflist into 0x0.st this way.

Edit: and try to disable ligatures.

Last edited by seth (2023-11-09 16:28:44)

Offline

#8 2023-11-09 21:11:32

estebandev528
Member
Registered: 2023-11-04
Posts: 12

Re: Kitty does not show text font

fc-conflist into 0x0.st

+ /etc/fonts/conf.d/10-hinting-slight.conf: Set hintslight to hintstyle
+ /etc/fonts/conf.d/10-scale-bitmap-fonts.conf: Bitmap scaling
+ /etc/fonts/conf.d/10-sub-pixel-rgb.conf: Enable sub-pixel rendering with the RGB stripes layout
+ /etc/fonts/conf.d/10-yes-antialias.conf: Enable antialiasing
+ /etc/fonts/conf.d/11-lcdfilter-default.conf: Use lcddefault as default for LCD filter
+ /etc/fonts/conf.d/20-unhint-small-dejavu-lgc-sans-mono.conf: No description
+ /etc/fonts/conf.d/20-unhint-small-dejavu-lgc-sans.conf: No description
+ /etc/fonts/conf.d/20-unhint-small-dejavu-lgc-serif.conf: No description
+ /etc/fonts/conf.d/20-unhint-small-dejavu-sans-mono.conf: No description
+ /etc/fonts/conf.d/20-unhint-small-dejavu-sans.conf: No description
+ /etc/fonts/conf.d/20-unhint-small-dejavu-serif.conf: No description
+ /etc/fonts/conf.d/20-unhint-small-vera.conf: Disable hinting for Bitstream Vera fonts when the size is less than 8ppem
+ /etc/fonts/conf.d/30-metric-aliases.conf: Set substitutions for similar/metric-compatible families
+ /etc/fonts/conf.d/40-nonlatin.conf: Set substitutions for non-Latin fonts
+ /etc/fonts/conf.d/45-generic.conf: Set substitutions for emoji/math fonts
+ /etc/fonts/conf.d/45-latin.conf: Set substitutions for Latin fonts
+ /etc/fonts/conf.d/46-noto-mono.conf: No description
+ /etc/fonts/conf.d/46-noto-sans.conf: No description
+ /etc/fonts/conf.d/46-noto-serif.conf: No description
+ /etc/fonts/conf.d/48-spacing.conf: Add mono to the family when spacing is 100
+ /etc/fonts/conf.d/49-sansserif.conf: Add sans-serif to the family when no generic name
+ /etc/fonts/conf.d/50-user.conf: Load per-user customization files
+ /etc/fonts/conf.d/51-local.conf: Load local customization file
+ /etc/fonts/conf.d/57-dejavu-sans-mono.conf: No description
+ /etc/fonts/conf.d/57-dejavu-sans.conf: No description
+ /etc/fonts/conf.d/57-dejavu-serif.conf: No description
+ /etc/fonts/conf.d/58-dejavu-lgc-sans-mono.conf: No description
+ /etc/fonts/conf.d/58-dejavu-lgc-sans.conf: No description
+ /etc/fonts/conf.d/58-dejavu-lgc-serif.conf: No description
+ /etc/fonts/conf.d/60-generic.conf: Set preferable fonts for emoji/math fonts
+ /etc/fonts/conf.d/60-latin.conf: Set preferable fonts for Latin
+ /etc/fonts/conf.d/65-fonts-persian.conf: No description
+ /etc/fonts/conf.d/65-nonlatin.conf: Set preferable fonts for non-Latin
+ /etc/fonts/conf.d/66-noto-mono.conf: No description
+ /etc/fonts/conf.d/66-noto-sans.conf: No description
+ /etc/fonts/conf.d/66-noto-serif.conf: No description
+ /etc/fonts/conf.d/69-unifont.conf: No description
+ /etc/fonts/conf.d/80-delicious.conf: No description
+ /etc/fonts/conf.d/90-synthetic.conf: No description
+ /etc/fonts/fonts.conf: Default configuration file
- /usr/share/fontconfig/conf.avail/05-reset-dirs-sample.conf: Re-define fonts dirs sample
- /usr/share/fontconfig/conf.avail/09-autohint-if-no-hinting.conf: Enable autohinter if font doesn't have any hinting
- /usr/share/fontconfig/conf.avail/10-autohint.conf: Enable autohinter
- /usr/share/fontconfig/conf.avail/10-hinting-full.conf: Set hintfull to hintstyle
- /usr/share/fontconfig/conf.avail/10-hinting-medium.conf: Set hintmedium to hintstyle
- /usr/share/fontconfig/conf.avail/10-hinting-none.conf: Set hintnone to hintstyle
- /usr/share/fontconfig/conf.avail/10-hinting-slight.conf: Set hintslight to hintstyle
- /usr/share/fontconfig/conf.avail/10-no-antialias.conf: Disable antialiasing
- /usr/share/fontconfig/conf.avail/10-scale-bitmap-fonts.conf: Bitmap scaling
- /usr/share/fontconfig/conf.avail/10-sub-pixel-bgr.conf: Enable sub-pixel rendering with the BGR stripes layout
- /usr/share/fontconfig/conf.avail/10-sub-pixel-none.conf: Disable sub-pixel rendering
- /usr/share/fontconfig/conf.avail/10-sub-pixel-rgb.conf: Enable sub-pixel rendering with the RGB stripes layout
- /usr/share/fontconfig/conf.avail/10-sub-pixel-vbgr.conf: Enable sub-pixel rendering with the vertical BGR stripes layout
- /usr/share/fontconfig/conf.avail/10-sub-pixel-vrgb.conf: Enable sub-pixel rendering with the vertical RGB stripes layout
- /usr/share/fontconfig/conf.avail/10-unhinted.conf: Disable hinting
- /usr/share/fontconfig/conf.avail/10-yes-antialias.conf: Enable antialiasing
- /usr/share/fontconfig/conf.avail/11-lcdfilter-default.conf: Use lcddefault as default for LCD filter
- /usr/share/fontconfig/conf.avail/11-lcdfilter-legacy.conf: Use lcdlegacy as default for LCD filter
- /usr/share/fontconfig/conf.avail/11-lcdfilter-light.conf: Use lcdlight as default for LCD filter
- /usr/share/fontconfig/conf.avail/20-unhint-small-dejavu-lgc-sans-mono.conf: No description
- /usr/share/fontconfig/conf.avail/20-unhint-small-dejavu-lgc-sans.conf: No description
- /usr/share/fontconfig/conf.avail/20-unhint-small-dejavu-lgc-serif.conf: No description
- /usr/share/fontconfig/conf.avail/20-unhint-small-dejavu-sans-mono.conf: No description
- /usr/share/fontconfig/conf.avail/20-unhint-small-dejavu-sans.conf: No description
- /usr/share/fontconfig/conf.avail/20-unhint-small-dejavu-serif.conf: No description
- /usr/share/fontconfig/conf.avail/20-unhint-small-vera.conf: Disable hinting for Bitstream Vera fonts when the size is less than 8ppem
- /usr/share/fontconfig/conf.avail/25-unhint-nonlatin.conf: Disable hinting for CJK fonts
- /usr/share/fontconfig/conf.avail/30-metric-aliases.conf: Set substitutions for similar/metric-compatible families
- /usr/share/fontconfig/conf.avail/35-lang-normalize.conf: No description
- /usr/share/fontconfig/conf.avail/40-nonlatin.conf: Set substitutions for non-Latin fonts
- /usr/share/fontconfig/conf.avail/45-generic.conf: Set substitutions for emoji/math fonts
- /usr/share/fontconfig/conf.avail/45-latin.conf: Set substitutions for Latin fonts
- /usr/share/fontconfig/conf.avail/46-noto-mono.conf: No description
- /usr/share/fontconfig/conf.avail/46-noto-sans.conf: No description
- /usr/share/fontconfig/conf.avail/46-noto-serif.conf: No description
- /usr/share/fontconfig/conf.avail/48-spacing.conf: Add mono to the family when spacing is 100
- /usr/share/fontconfig/conf.avail/49-sansserif.conf: Add sans-serif to the family when no generic name
- /usr/share/fontconfig/conf.avail/50-user.conf: Load per-user customization files
- /usr/share/fontconfig/conf.avail/51-local.conf: Load local customization file
- /usr/share/fontconfig/conf.avail/57-dejavu-sans-mono.conf: No description
- /usr/share/fontconfig/conf.avail/57-dejavu-sans.conf: No description
- /usr/share/fontconfig/conf.avail/57-dejavu-serif.conf: No description
- /usr/share/fontconfig/conf.avail/58-dejavu-lgc-sans-mono.conf: No description
- /usr/share/fontconfig/conf.avail/58-dejavu-lgc-sans.conf: No description
- /usr/share/fontconfig/conf.avail/58-dejavu-lgc-serif.conf: No description
- /usr/share/fontconfig/conf.avail/60-generic.conf: Set preferable fonts for emoji/math fonts
- /usr/share/fontconfig/conf.avail/60-latin.conf: Set preferable fonts for Latin
- /usr/share/fontconfig/conf.avail/65-fonts-persian.conf: No description
- /usr/share/fontconfig/conf.avail/65-khmer.conf: No description
- /usr/share/fontconfig/conf.avail/65-nonlatin.conf: Set preferable fonts for non-Latin
- /usr/share/fontconfig/conf.avail/66-noto-mono.conf: No description
- /usr/share/fontconfig/conf.avail/66-noto-sans.conf: No description
- /usr/share/fontconfig/conf.avail/66-noto-serif.conf: No description
- /usr/share/fontconfig/conf.avail/69-unifont.conf: No description
- /usr/share/fontconfig/conf.avail/70-no-bitmaps.conf: Reject bitmap fonts
- /usr/share/fontconfig/conf.avail/70-yes-bitmaps.conf: Accept bitmap fonts
- /usr/share/fontconfig/conf.avail/80-delicious.conf: No description
- /usr/share/fontconfig/conf.avail/90-synthetic.conf: No description

kitty.conf:

enable_audio_bell no

include color.ini

font_family	HackNerdFont	
italic_font                                      auto
bold_font                                        auto
bold_italic_font                                 auto

font_size 11

disable_ligatures never

url_color #fff

url_style curly

map ctrl+left neighboring_window left
map ctrl+right neighboring_window right 
map ctrl+up neighboring_window up 
map ctrl+down neighboring_window down 

map F1 copy_to_buffer a
map F2 paste_from_buffer a

mouse_hide_wait 3.0
detect_urls yes

repaint_delay 10
input_delay 3
sync_to_monitor yes
tab_bar_style powerline 

map ctrl+shift+enter new_window_with_cwd
map ctrl+shift+t new_tab_with_cwd

shell zsh

color.ini:

cursor_shape          Underline
cursor_underline_thickness 1
window_padding_width  20

inactive_tab_background #e00000
active_tab_background #ffffff
inactive_tab_foreground #000000
tab_bar_margin_color #000000

# Special
foreground #a9b1d6
background #1a1b26
background_opacity 0.95

# Black
color0 #414868
color8 #414868

# Red
color1 #f7768e
color9 #f7768e

# Green
color2  #73daca
color10 #73daca

# Yellow
color3  #e0af68
color11 #e0af68

# Blue
color4  #7aa2f7
color12 #7aa2f7

# Magenta
color5  #bb9af7
color13 #bb9af7

# Cyan
color6  #7dcfff
color14 #7dcfff

# White
color7  #c0caf5
color15 #c0caf5

# Cursor
cursor #c0caf5
cursor_text_color #1a1b26

# Selection highlight
selection_foreground #7aa2f7
selection_background #28344a

Offline

#9 2023-11-09 21:34:05

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,635

Re: Kitty does not show text font

There's nothing special in /etc/fonts/conf.d/ and you don't have a user-specific config

font_family	HackNerdFont

Try "DejaVu Sans Mono" (and make sure to install https://archlinux.org/packages/extra/any/ttf-dejavu/ )

disable_ligatures never
seth wrote:

and try to disable ligatures.

Offline

#10 2023-11-09 21:44:29

estebandev528
Member
Registered: 2023-11-04
Posts: 12

Re: Kitty does not show text font

It still doesn't work.

with this config

enable_audio_bell no

include color.ini

font_family                                   DejaVu Sans Mono	
italic_font                                      auto
bold_font                                        auto
bold_italic_font                                 auto
disable_ligatures true 

font_size 11


url_color #fff

url_style curly

map ctrl+left neighboring_window left
map ctrl+right neighboring_window right 
map ctrl+up neighboring_window up 
map ctrl+down neighboring_window down 

map F1 copy_to_buffer a
map F2 paste_from_buffer a

mouse_hide_wait 3.0
detect_urls yes

repaint_delay 10
input_delay 3
sync_to_monitor yes
tab_bar_style powerline 

map ctrl+shift+enter new_window_with_cwd
map ctrl+shift+t new_tab_with_cwd

shell zsh

Offline

#11 2023-11-09 21:55:46

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,635

Re: Kitty does not show text font

"disable_ligatures always" - same error?
The only related instance is in https://github.com/kovidgoyal/kitty/issues/2691

Let's assume that's some poweline PS1, let's assume you've some bogus font installed, let's assume you're resolving that font for some fringe emoji…
Does "shell zsh -f" work resp. if you move away your ~/.zshrc ?

Offline

#12 2023-11-09 22:21:51

estebandev528
Member
Registered: 2023-11-04
Posts: 12

Re: Kitty does not show text font

It didn't work, and it doesn't work with bash either

Offline

#13 2023-11-09 22:26:01

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,635

Re: Kitty does not show text font

strace kitty -o /tmp/kitty.strace
cat /tmp/kitty.strace | curl -F 'file=@-' 0x0.st

Offline

#14 2023-11-09 22:44:55

estebandev528
Member
Registered: 2023-11-04
Posts: 12

Re: Kitty does not show text font

The strace is not generating the file hmm?

/bin/cat /tmp/kitty.strace | curl -F 'file=@-' 0x0.st
/bin/cat: /tmp/kitty.strace: No such file or directory
451 Unavailable For Legal Reasons%   

Offline

#15 2023-11-09 22:48:25

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,635

Re: Kitty does not show text font

"strace -o /tmp/kitty.strace kitty" - it's getting late.

451 Unavailable For Legal Reasons%

Could become a problem - the file is gonna be big, you might need to use a google drive then.

Offline

#16 2023-11-09 23:10:49

estebandev528
Member
Registered: 2023-11-04
Posts: 12

Re: Kitty does not show text font

Offline

#17 2023-11-10 08:06:45

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,635

Re: Kitty does not show text font

You're only loading the dejavu fonts.

mkdir("/home/estebanDev/.cache/kitty", 0777) = -1 EEXIST (File exists)

In doubt try to delete the cache.

Also

localectl
locale
locale -a

there's a lot of C.utf8 and some iso8859-1 in the strace…

Offline

#18 2023-11-11 23:49:57

estebandev528
Member
Registered: 2023-11-04
Posts: 12

Re: Kitty does not show text font

ok bro, see you

localectl:

System Locale: LANG=C.UTF-8
    VC Keymap: la-latin1
   X11 Layout: (unset)

locale

LANG=C.UTF-8
LC_CTYPE="C.UTF-8"
LC_NUMERIC="C.UTF-8"
LC_TIME="C.UTF-8"
LC_COLLATE="C.UTF-8"
LC_MONETARY="C.UTF-8"
LC_MESSAGES="C.UTF-8"
LC_PAPER="C.UTF-8"
LC_NAME="C.UTF-8"
LC_ADDRESS="C.UTF-8"
LC_TELEPHONE="C.UTF-8"
LC_MEASUREMENT="C.UTF-8"
LC_IDENTIFICATION="C.UTF-8"
LC_ALL=

locale -a

C
C.utf8
POSIX
en_US.utf8
es_CO.utf8
es_ES.utf8

Offline

#19 2023-11-12 08:39:03

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,635

Re: Kitty does not show text font

Wha tif you don't use C.UTF-8 but a "proper" utf8 locale like "en_US.UTF-8"?

Offline

#20 2023-11-12 15:55:09

estebandev528
Member
Registered: 2023-11-04
Posts: 12

Re: Kitty does not show text font

I already set the locale correctly, but Kitty still doesn't work.

LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

Offline

#21 2023-11-12 16:25:18

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,635

Re: Kitty does not show text font

Sanity check: does alacritty work?

Offline

#22 2023-11-12 17:35:18

estebandev528
Member
Registered: 2023-11-04
Posts: 12

Re: Kitty does not show text font

Yes, I actually use alacritty

Offline

#23 2023-11-13 10:22:38

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,635

Re: Kitty does not show text font

There's a recent kitty update, if that doesn't fix it

pactree kitty # pactree is in pacman-contrib

Do you get the same kitty behavior w/
a) a fresh user account
b) a different environment (is this currently a wayland or X11 session?)

Btw. the kitty font list only displays the DejaVu Mono variants - you also have the regular DejaVu Sans/Serif fonts installed, do you?

Offline

Board footer

Powered by FluxBB