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

Martian Mono isn’t being detected as a monospaced font #16

Closed
kalashnikovisme opened this issue Oct 17, 2022 · 6 comments
Closed

Martian Mono isn’t being detected as a monospaced font #16

kalashnikovisme opened this issue Oct 17, 2022 · 6 comments

Comments

@kalashnikovisme
Copy link

kalashnikovisme commented Oct 17, 2022

User can set only mono fonts in Gnome Terminal on Ubuntu 22.04 by default, and Gnome Terminal does not detect MartianMono as monospace font for some reason.

You can choose MartianMono font as terminal font with this command

dconf write /org/gnome/terminal/legacy/profiles:/:TERMINAL_PROFILE_ID/font  "'<font name> <font size>'"

for example

dconf write /org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/font  "'MartianMono sWd xLt 12'"

Also, we can see that Font Manager detects MartianMono as proportional, not monospace

Screenshot from 2022-10-23 06-17-18

@kalashnikovisme kalashnikovisme changed the title WIP. Ubuntu 22.04: not available to install Ubuntu 22.04, gnome terminal does not detect MartianMono as mono font Oct 23, 2022
@kalashnikovisme kalashnikovisme changed the title Ubuntu 22.04, gnome terminal does not detect MartianMono as mono font Ubuntu 22.04, gnome terminal and FontManager don't detect MartianMono as monospace font Oct 23, 2022
@bitimp
Copy link

bitimp commented Oct 23, 2022

If I haven't missed anything, then spacing property is not set in the font. This property must be set to 100.
How to check:

fc-scan /<path>/<to>/<font>.ttf

Example:

$ fc-scan /usr/share/fonts/truetype/ubuntu/UbuntuMono-R.ttf
Pattern has 25 elts (size 32)
        family: "Ubuntu Mono"(s)
        familylang: "en"(s)
        style: "Regular"(s)
        stylelang: "en"(s)
        fullname: "Ubuntu Mono"(s)
        fullnamelang: "en"(s)
        slant: 0(i)(s)
        weight: 80(f)(s)
        width: 100(f)(s)
        spacing: 100(i)(s)
        foundry: "DAMA"(s)
        file: "/usr/share/fonts/truetype/ubuntu/UbuntuMono-R.ttf"(s)
        index: 0(i)(s)
        outline: True(s)
        scalable: True(s)
        ...

If you run fc-list :spacing=100 fullname spacing then MartianMono will not be in the output.

@romashamin
Copy link
Member

The Glyphs app forum topic related to the issue (it’s for me mostly):
https://forum.glyphsapp.com/t/isfixedpitch-to-disable-metrics-adjustment

@romashamin romashamin changed the title Ubuntu 22.04, gnome terminal and FontManager don't detect MartianMono as monospace font Martian Mono isn’t being detected as a monospaced font Oct 23, 2022
@romashamin
Copy link
Member

Related issue: google/fonts#225

@romashamin
Copy link
Member

@kalashnikovisme try please these updated fonts, all of them have isFixedPitch = true.

https://github.com/evilmartians/mono/tree/main/fonts

Did it fix the issue?

@kalashnikovisme
Copy link
Author

@romashamin sorry for the delay, I missed this comment.

I've tried new files, unfortunately issue still exists 🙁

@kalashnikovisme
Copy link
Author

@romashamin checked one more time with v1.0. Everything is ok now! Thanks!

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