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

Not identified as monospaced font #23

Closed
iget-master opened this issue May 18, 2016 · 25 comments
Closed

Not identified as monospaced font #23

iget-master opened this issue May 18, 2016 · 25 comments

Comments

@iget-master
Copy link

Tried to use this font on PHPStorm over Ubuntu 14.04, installed the latest .ttf fonts, and it's not listed as a monospaced font.

@madmalik
Copy link
Owner

I'll look into that. I'm sure i have a ubuntu virtualbox image somewhere ^^

@iget-master
Copy link
Author

Thanks @madmalik :)

@kharaktur
Copy link

I have a similar issue, using PyCharm Community Ed 2016.1.3 this beautiful font isn't listed as monospaced

@glebd
Copy link

glebd commented May 21, 2016

It could also be JRE issue as both PHPStorm and PyCharm are Java-based (IntelliJ IDEA-based). On the Mac CLion (another IDEA-based IDE from JetBrains) correctly sees Mononoki as a monospaced font.

@madmalik
Copy link
Owner

Time to take advantage of my student status and get some IntelliJ IDEs for testing

@kharaktur
Copy link

Thanks for your quick reply. No need to spend a dime to test this if you like, pycharm community is free. I am using it on windows. BTW I have tried several fonts in the ide, Deja Vu sans mono was my favorite but Mononoki is both beautiful to look at and super easy (for my old eyes) to read. Super job.

On Saturday, May 21, 2016 3:04 PM, madmalik <notifications@github.com> wrote:

Time to take advantage of my student status and get some IntelliJ IDEs for testing—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub

@meilke
Copy link

meilke commented May 26, 2016

Same on Linux for Sublime text 3. I used this guide to install the font: https://community.linuxmint.com/tutorial/view/29.

@AnwarShah
Copy link

It's working on Sublime text 3

@meilke
Copy link

meilke commented May 30, 2016

@AnwarShah you are right, I used "font_face": "mononoki-Regular" instead of "font_face": "mononoki". Now it is working.

@DmitriK
Copy link

DmitriK commented May 31, 2016

Does not show up as a monospaced font in KDE system-wide fixed width or Konsole font selection.

@darkwise
Copy link

darkwise commented Jun 26, 2016

@madmalik I wonder if mononoki font miss a monospace subfamily(or style) like having italic or bold. The fact that this font is though monoscpaced doesn't mean it's a monospace one:

$fc-list |grep mononoki
/usr/share/fonts/truetype/mononoki/mononoki-BoldItalic.woff: mononoki:style=BoldItalic
/usr/share/fonts/truetype/mononoki/mononoki-Italic.ttf: mononoki:style=Italic
/usr/share/fonts/truetype/mononoki/mononoki-BoldItalic.ttf: mononoki:style=BoldItalic
/usr/share/fonts/truetype/mononoki/mononoki-Regular.ttf: mononoki:style=Regular
/usr/share/fonts/truetype/mononoki/mononoki-Bold.woff: mononoki:style=Bold
/usr/share/fonts/truetype/mononoki/mononoki-Regular.woff: mononoki:style=Regular
/usr/share/fonts/truetype/mononoki/mononoki-Bold.ttf: mononoki:style=Bold
/usr/share/fonts/truetype/mononoki/mononoki-Italic.woff: mononoki:style=Italic

I think software look for openTypeNamePreferredSubfamilyName having monospace (example).

So what do you think about having a "symlinking" regular sources with a new monospace subfamily (or style) ?

Cheers,

@madmalik
Copy link
Owner

Mhh, I think you are right.

I'll test that and make a release if all plattforms detect mononoki as monospace after that.

Thank you!

@billksun
Copy link

I'm affected by this problem as well, on Manjaro KDE. Let me know if you need any help verifying the fix.

@sarbash
Copy link

sarbash commented Sep 1, 2016

It has reached Debian/sid and has the same issue with Konsole. Fontmatrix, Libreoffice, GIMP see it.
Konsole doesn't.

@joshuamzm
Copy link

@DmitriK @sib-null @sarbash Have you found a way to use the font with Konsole? I tried sym-linking files to /usr/share/fonts/TTF/ but didn't work.

@DmitriK
Copy link

DmitriK commented Feb 3, 2017

@jomendoz You'll want to edit ~/.local/share/konsole/PROFILE_NAME.profile and change the first entry in the Font list to mononoki.

@joshuamzm
Copy link

@DmitriK Thank you very much! This worked perfectly.

@sarbash
Copy link

sarbash commented Feb 10, 2017

@DmitriK I've found a GUI-way.

In Profile Settings, tick "Show All Fonts" checkbox - viola! I just am wondering why it isn't recognized as a monospaced font in Konsole.

@sarbash
Copy link

sarbash commented Feb 15, 2017

Also Firefox doesn't see it as a monospaced font.

But you can forcibly set it up in an about:config.
For ex. for cyrillic locale I've used this:

font.name.monospace.x-cyrillic

The change has applied immediately.
screenshot_20170215_234217

@jeberger
Copy link

jeberger commented Sep 5, 2017

I've had a similar issue with some customizations I've made to the Hack font. I've found that in order to be recognized as monospace everywhere, a font needs two things:

  • Every character must be the same width (and I do mean every character).
  • The font must have the proper OS/2 Panose setting for "proportions" (with the default configuration, FontForge will set it automagically if all characters have the same width).

See https://fontforge.github.io/faq.html#monospace

@exvx
Copy link

exvx commented Jun 19, 2018

Related: #59

@csauve
Copy link

csauve commented Dec 9, 2018

I'm trying to use Mononoki as my terminal font in kitty, but it is always being ignored because kitty seems to validate that candidate fonts are indeed monospaced. When I use fc-list :spacing=100, Mononoki is not listed as a result whereas other monospaced fonts installed on my system are.

I am wondering if this is caused by this line of fontinfo.plist. According to this page, this key should be postscriptIsFixedPitch and not isFixedPitched.

I couldn't verify making this change works because I couldn't successfully build the fonts from this repo using Google's fontmake (something about "locl" feature not being defined). Maybe someone more experienced in font building or @madmalik can give it a try?

@gambhiro
Copy link

Thank for the cool terminal font! I like the double-story g, the narrower width but tall x-height which helps reading CamelCase names.

Same issue as @csauve . Kitty terminal won't use Mononoki, and defaults to the system default monospace font.

It does work however when setting the system default monospace to Mononoki.

In kitty.conf:

font_family Mononoki
font_size 10.0

I downloaded the Mononoki release archive and extracted to ~/.fonts, then updated the cache with

$ fc-cache -f ~/.fonts

The system does find the font by name, but it is not recognized as a monospace font:

$ fc-match "Mononoki"
mononoki-Regular.ttf: "mononoki" "Regular"

$ fc-list :spacing=100 | grep -i mononoki
(empty)

Set the Gnome setting:

gsettings set org.gnome.desktop.interface monospace-font-name "Mononoki 11"

This made it work in apps such as gedit.

For terminals and so on, also edit ~/.config/fontconfig/fonts.conf:

<match target="pattern">
	<test name="family" qual="any">
		<string>monospace</string>
	</test>
	<edit binding="strong" mode="prepend" name="family">
		<string>Mononoki</string>
	</edit>
</match>

(from stackoverflow)

Then I ran fc-cache -f ~/.fonts again.

It worked when opening a new kitty terminal. It did not need re-login.

@csauve
Copy link

csauve commented May 12, 2019

I was successfully able to make this font detected as monospaced by doing the following:

  1. made the edit in my previous post
  2. opened the .ufo directory in fontforge
  3. I'm not sure if this step mattered, but selecting all glyphs, right clicked, and set all widths to 575. I didn't trust the validation because even when I set one glyph to 574, no problems were detected by fontforge
  4. Exported the font to TTF into ~/.local/share/fonts/mononoki/
  5. Ran fc-cache -f to rebuild the font cache

The font now shows up as monospace when I run fc-list :spacing=100 and works in kitty.

@madmalik
Copy link
Owner

madmalik commented Sep 4, 2022

All the widths are corrected. The next release should not have this problem

@madmalik madmalik closed this as completed Sep 4, 2022
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