rio icon indicating copy to clipboard operation
rio copied to clipboard

Fonts are not found

Open corelon opened this issue 1 month ago • 2 comments

I have recently updated to rioterm 0.2.33 on my Macbook Pro M2, running Sequoia 15.6.1 Regardless of the font I am trying to load the error screen always comes up when starting Rio that it cannot find the font.

Any idea why this might be happening? Happy to share any file/info needed.

corelon avatar Nov 04 '25 09:11 corelon

should be fixed in >0.2.34 🙏

raphamorim avatar Nov 04 '25 09:11 raphamorim

Maybe that help. ver. 0.2.35 I had installed Fira Code in ~/.local/share/fonts after moving to /usr/share/fonts Rio can find that font.

But let's try with another font.

$ fc-scan /usr/share/fonts/TTF/Iosevka-Regular.ttc | grep family\:

	family: "Iosevka"(s)
	family: "Iosevka Term"(s)
	family: "Iosevka Fixed"(s)
	family: "Iosevka"(s) "Iosevka Extended"(s)
	family: "Iosevka Term"(s) "Iosevka Term Extended"(s)
	family: "Iosevka Fixed"(s) "Iosevka Fixed Extended"(s)
	family: "Iosevka"(s) "Iosevka Oblique"(s)

Rio can find "Iosevka", "Iosevka Term", "Iosevka Fixed" with no issue.

$ RIO_LOG_LEVEL=3 rio

2025-11-09T11:32:18.301279Z  INFO logger: rio: logging level: OFF
2025-11-09T11:32:18.301354Z  INFO setup_environment_variables: rio: terminfo: rio
2025-11-09T11:32:18.326594Z  INFO sugarloaf::font: Font search: 'Query { families: [Name("Iosevka Term")], weight: Weight(400), stretch: Normal, style: Normal }'

2025-11-09T11:32:18.992591Z INFO sugarloaf::font: Font 'Iosevka Term' found in /usr/share/fonts/TTF/Iosevka-Regular.ttc

When set family = "Iosevka Extended" in config.toml, got:

$ RIO_LOG_LEVEL=3 rio

2025-11-09T11:15:04.266582Z  INFO logger: rio: logging level: OFF
2025-11-09T11:15:04.266656Z  INFO setup_environment_variables: rio: terminfo: rio
2025-11-09T11:15:04.291559Z  INFO sugarloaf::font: Font search: 'Query { families: [Name("Iosevka Extended")], weight: Weight(400), stretch: Normal, style: Normal }'

2025-11-09T11:15:04.291869Z WARN sugarloaf::font: Failed to findfont 'Query { families: [Name("Iosevka Extended")], weight: Weight(400), stretch: Normal, style: Normal }'

codinglukey avatar Nov 09 '25 11:11 codinglukey

similar issue still exist version 0.2.36

2025-11-19T02:30:50.585011Z  INFO logger: rio: logging level: OFF
2025-11-19T02:30:50.585080Z  INFO setup_environment_variables: rio: terminfo: rio
2025-11-19T02:30:50.632210Z  INFO sugarloaf::font: Font search: 'Query { families: [Name(".SF NS")], weight: Weight(400), stretch: Normal, style: Normal }'
2025-11-19T02:30:50.648381Z  WARN sugarloaf::font: Failed to find font 'Query { families: [Name(".SF NS")], weight: Weight(400), stretch: Normal, style: Normal }'
2025-11-19T02:30:50.648404Z  INFO sugarloaf::font: SugarloafFont { family: ".SF NS", weight: None, style: Normal, width: None }
2025-11-19T02:30:50.648417Z  INFO sugarloaf::font: Font search: 'Query { families: [Name("Menlo")], weight: Weight(400), stretch: Normal, style: Normal }'
......
2025-11-19T02:30:51.168646Z  INFO sugarloaf::components::rich_text::image_cache::cache: Creating rich_text image cache with size: 2048x2048
2025-11-19T02:30:51.172349Z  INFO rio::context: rio -> teletypewriter: create_pty_with_spawn
2025-11-19T02:30:51.172560Z  INFO teletypewriter::unix: spawn "/opt/homebrew/bin/fish" ["--login"]
2025-11-19T02:30:51.180245Z  INFO rio::application: Initialisation complete
2025-11-19T02:30:51.375712Z  INFO rio_backend::crosswords: Setting keyboard mode to 5
2025-11-19T02:30:51.376096Z  WARN rio_backend::performer::handler: [unhandled osc_dispatch]: [['1''3''3'],['A'],['c''l''i''c''k''_''e''v''e''n''t''s''=''1'],] at line 748

wgqimut avatar Nov 19 '25 02:11 wgqimut

Confirmed with both 0.2.36 and the latest 0.3.0-nightly. Fonts used are FiraCode and CommitMono.

Setting fonts.family = "CommitMono" or fonts.family = "ComitMonoV143" or fonts.family = "Fira Code"

Rio either falls back to using Cascadia Code or showing the Font(s) not found: * "CommitMonoV143" using "400 weight" etc

Setting:

[fonts.regular]
family = "CommitMono"
style = "Normal"
width = "Normal"
weight = 400

does sort of work but it fails to show glyphs in term apps like gitui.

macOS 15.7.2 Mac Pro M3 Pro

ehjmx avatar Nov 19 '25 08:11 ehjmx