-
Notifications
You must be signed in to change notification settings - Fork 253
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
Can't see monaspace on terminal #15
Comments
I can actually confirm it doesn't seem to be working on Kitty, ran Works fine on alacritty though, awesome fonts! |
Seems like something is off with the spacing. kitty is really picky about all of the characters being the same size. I tried doing the fix described here to force the spacing to be 100 on the Xenon variant, and that got kitty to be able to use it, but it didn't look right. The cursor was positioned low relative to the text, and it didn't seem like all the characters had a consistent baseline. |
You can use dconf-editor to force GNOME Terminal font setting and it looks great there. Annoying it filters from the list though in the UI. |
Maybe Panose which is missing. See also #17 |
GNOME Terminal's Preferences dialog offers to choose from the fonts where I believe this method looks at a certain flag defined within font files, rather than actually measuring its glyphs, but I'm not familiar with the details here. |
Could not find out what pango looks for, but usually that is Panose... def force_panose_monospaced(font):
""" Forces the Panose flag to monospaced if they are unset or halfway ok already """
# For some Windows applications (e.g. 'cmd'), they seem to honour the Panose table
# https://forum.high-logic.com/postedfiles/Panose.pdf
panose = list(font.os2_panose)
if panose[0] == 0: # 0 (1st value) = family kind; 0 = any (default)
panose[0] = 2 # make kind latin text and display
logger.info("Setting Panose 'Family Kind' to 'Latin Text and Display' (was 'Any')")
font.os2_panose = tuple(panose)
if panose[0] == 2 and panose[3] != 9:
logger.info("Setting Panose 'Proportion' to 'Monospaced' (was '%s')", panose_proportion_to_text(panose[3]))
panose[3] = 9 # 3 (4th value) = proportion; 9 = monospaced
font.os2_panose = tuple(panose) |
Kitty, Gnome terminal are running their own checks to see if the font is really a monospaced one or not. It's about this issue on the spacing, running |
This also affects Konsole, although in that case you can override it by ticking |
fonts-conf doesn't think that theese fonts are monospace. So one could force it with this little config: <?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="scan">
<test name="family" compare="contains">
<string>Monaspace</string>
</test>
<edit name="spacing">
<const>dual</const>
</edit>
</match>
</fontconfig> Put it in |
Whoops, GH auto closed this when I merged #125 We'll produce a new build soon and check that this (and related issues) are solved. |
Any idea when a new build will be produced? |
Would it be possible to document the built process so it could be done by the community? |
Any idei when a new build wlll be produced? Or did i miss, the build insctructions to build it by myself? |
@Finii a number of tweaks went in since the release that is currently available. |
I could upload the fixed files in a branch of my fork, if that helps. |
Btw, I do not know if Panose is sufficient, another far more severe issue is Unfortunately that is far from easily-fixable but a conceptual problem 😒 |
indeed, it would be great if the owners could do this or at least hand over to the community but there might be reasons beyond my understanding that could be preventing that. |
Fixed in version 1.1 |
That's
I usually do not like tools that do git commands for me (like lazygit), but I do use All Linux distributions as well as Homebrew has packages. To only other git tool I use is |
I use gnome terminal and kitty.
I am not able to find monaspace font on kitty and gnome terminal..
The text was updated successfully, but these errors were encountered: