Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure font for character ranges (symbol_map) #124

Closed
LiHRaM opened this issue Jul 6, 2023 · 10 comments · Fixed by #1005 · May be fixed by #980
Closed

Configure font for character ranges (symbol_map) #124

LiHRaM opened this issue Jul 6, 2023 · 10 comments · Fixed by #1005 · May be fixed by #980
Assignees
Labels
wishlist Features wishlist

Comments

@LiHRaM
Copy link

LiHRaM commented Jul 6, 2023

The kitty terminal has a very nice way of supporting powerline / alternative fonts without having to patch your current preferred font, which is the symbol_map feature.

Docs: https://sw.kovidgoyal.net/kitty/conf/#opt-kitty.symbol_map

You can set any font as your default font for the terminal, and then you can define which symbols would be rendered using another font using the symbol_map. I would love to something like this in Rio.

@raphamorim
Copy link
Owner

I didn't even know about it, thank you very much for sharing @LiHRaM . For now I will move to wishlist to evaluate it later 👌

@raphamorim raphamorim added the wishlist Features wishlist label Jul 6, 2023
@raphamorim
Copy link
Owner

raphamorim commented Jul 19, 2023

Connected: #135

Rio added a fallback for font icons as wezterm have, but would be nice to have the symbol map, so as you mention you could choose which font to use for specific symbol maps.

@hustcer
Copy link

hustcer commented Sep 18, 2023

How to configure the fallback fonts ? I want to add a fallback font for CJK characters. Thanks

Rio added a fallback for font icons as wezterm have

@raphamorim
Copy link
Owner

raphamorim commented Oct 4, 2023

How to configure the fallback fonts ? I want to add a fallback font for CJK characters.
Thanks

@hustcer like this

[fonts]
extras = [{ family = "Microsoft JhengHei" }]

@hustcer
Copy link

hustcer commented Oct 4, 2023

@hustcer like this

[fonts]
extras = [{ family = "Microsoft JhengHei" }]

Thanks, I have tried it the first time 0.0.22 was released, but it didn't work for me, my config:

cursor = '|'
blinking_cursor = true
performance = "High"
theme = "dracula"
ignore_theme_selection_fg_color = false
padding-x = 0
option-as-alt = 'both'

[window]
width = 1000
height = 600
opacity = 1.0
mode = "Windowed"

[fonts]
size = 26
extras = [
  { family = "PingFang SC" },
  { family = "Sarasa Gothic SC" },
]


[fonts.regular]
family = "Fira Code"
style = "normal"
weight = 400

[fonts.bold]
family = "Fira Code"
style = "normal"
weight = 800

[fonts.italic]
family = "Fira Code"
style = "italic"
weight = 400

[fonts.bold-italic]
family = "Fira Code"
style = "italic"
weight = 800

@raphamorim
Copy link
Owner

@hustcer did you install using cargo?

@hustcer
Copy link

hustcer commented Oct 4, 2023

@hustcer did you install using cargo?

Nope, I installed with the release:
https://github.com/raphamorim/rio/releases/download/v0.0.22/Rio-v0.0.22.dmg

@raphamorim
Copy link
Owner

Interesting, does it return an error message in the UI?

@hustcer
Copy link

hustcer commented Oct 4, 2023

Interesting, does it return an error message in the UI?

No error or warnings,It's like nothing ever changed

@raphamorim raphamorim mentioned this issue Nov 14, 2023
6 tasks
@raphamorim raphamorim moved this from Todo to In Progress in Rio terminal 0.2.x May 26, 2024
@raphamorim raphamorim changed the title Configure font for character ranges Configure font for character ranges (symbol_map) Dec 17, 2024
@raphamorim raphamorim self-assigned this Feb 14, 2025
@github-project-automation github-project-automation bot moved this from In Progress to Done in Rio terminal 0.2.x Mar 7, 2025
@raphamorim
Copy link
Owner

Implemented in #1005 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wishlist Features wishlist
Projects
Archived in project
3 participants