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

It mostly only lets me pick italic or oblique fonts #11

Open
db48x opened this issue Jan 27, 2025 · 6 comments
Open

It mostly only lets me pick italic or oblique fonts #11

db48x opened this issue Jan 27, 2025 · 6 comments
Assignees

Comments

@db48x
Copy link

db48x commented Jan 27, 2025

For example, if I try to select Input Mono, I end up with Input Mono Italic. If I try for DejaVu Sans, I get DejaVu Sans Oblique. I get Liberation Sans Italic instead of Liberation Sans, etc, etc.

Linux

@benjajaja
Copy link
Owner

Yea I also noticed the selection of fonts to be a bit... weird. On my machine it just happens to find the terminal font.

I will change the font selector / loader to use https://github.com/servo/font-kit.

@benjajaja benjajaja self-assigned this Jan 28, 2025
@benjajaja
Copy link
Owner

Actually, just reverted to using https://crates.io/crates/font-loader again. Could you try again with 0.9.0 / master? I see that the font-selection is now different, but I'm also not sure what to expect.

@db48x
Copy link
Author

db48x commented Jan 28, 2025

Sure. It now says:

Entering one-time font setup
No font available

And then fails to reset the terminal. Oops.

@benjajaja
Copy link
Owner

Oh well, I reverted the revert then. It looks like I'll have to use a combination of font-kit, for the system font selection, and then font-due, for shaping / rendering.

And then fails to reset the terminal. Oops.

What do you mean exactly by "reset"? On exit, mdfried should always reset the terminal, as in leave alternate screen and so on - be usable. The output you pasted is normal.

@db48x
Copy link
Author

db48x commented Jan 29, 2025

It isn’t reset because I have to run reset for it to be properly usable. Specifically, right after it exits stty prints this:

speed 38400 baud; line = 0;
                           min = 1; time = 0;
                                             -brkint -icrnl
                                                           -opost
                                                                 -isig -icanon -iexten -echo

You can that local echo is off, conversion of carriage returns to newlines is off, etc, etc. They all need to be turned back on so that stty will go back to printing this:

speed 38400 baud; line = 0;
-brkint -imaxbel

@Disonantemus
Copy link

Entering one-time font setup
No font available

Same here.


Installed in Arch from AUR: paru -S mdfried

$ mdfried -V
mdfried 0.10.0

System

distro: Arch Linux x86_64
kernel: 6.6.52-1-lts
shell: bash 5.2.37
term: tmux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants