coz-m / MPLUS_FONTS

M+ FONTS
https://mplusfonts.github.io
SIL Open Font License 1.1
903 stars 61 forks source link

Mplus Code Latin not recognized as monospace on Windows #18

Closed ttyrakow closed 3 years ago

ttyrakow commented 3 years ago

In some applications (e.g. mintty, Embarcadero RAD Studio) on MS Windows (tested on Win 10 pro 64bit with TTF version of the fonts), Mplus Code Latin is not available in the font list. Those are apps, which support only monospace fonts, and somehow Mplus Code Latin is not recognized as such. The older M+ 1mn font is recognized properly and is available. Other apps, (like VS Code), where you just type in the name of the font to use (instead of choosing from the list), don't have any issues with the font. It's well visible e.g. in Visual Studio 2019, which bolds out monospace fonts on the list, and Mplus Code is not bolded (M+ 1mn is). fontlist1 fontlist2

ttyrakow commented 3 years ago

Just a quick followup: in some cases changing config files (.minttyrc for example) and manually typing the font name solves the problem (the font works in mintty, it's just not available on the font list). In some other cases however it doesn't (e.g. RAD Studio doesn't have easily accessible config).

coz-m commented 3 years ago

Thank you for pointing out the problem. It's late, but we've updated the font file. We would be glad if you try again.

ttyrakow commented 3 years ago

The new version works great and is available (recognized as monospace) in all apps I could think of, including mintty, Visual Studio 2019 (see attached screenshot: all Mplus Code Latin variants are bolded out as being monospace), Embarcadero RAD Studio, and even classic Windows command prompt (which is very picky about the fonts you can set in it). Great work, and btw. I love the 60 variant - the old M+ 1mn was a bit too condensed IMHO (but beautiful and standing out nonetheless). vs2019-mplus

coz-m commented 3 years ago

Thank you for your confirmation. I'm happy to be able to fix it.

inferiorhumanorgans commented 1 month ago
$ for i in ~/MPLUS_FONTS/fonts/{ttf,otf}/*.{ttf,otf}; do variant-inspect -p $i; done | grep -i code | grep -v true
Mplus1Code-Bold.ttf: M PLUS 1 Code Bold (Version 1.006) mono = false
Mplus1Code-ExtraLight.ttf: M PLUS 1 Code ExtraLight (Version 1.006) mono = false
Mplus1Code-Light.ttf: M PLUS 1 Code Light (Version 1.006) mono = false
Mplus1Code-Medium.ttf: M PLUS 1 Code Medium (Version 1.006) mono = false
Mplus1Code-Regular.ttf: M PLUS 1 Code Regular (Version 1.006) mono = false
Mplus1Code-SemiBold.ttf: M PLUS 1 Code SemiBold (Version 1.006) mono = false
Mplus1Code-Thin.ttf: M PLUS 1 Code Thin (Version 1.006) mono = false
Mplus1Code-Bold.otf: M PLUS 1 Code Bold (Version 1.006) mono = false
Mplus1Code-ExtraLight.otf: M PLUS 1 Code ExtraLight (Version 1.006) mono = false
Mplus1Code-Light.otf: M PLUS 1 Code Light (Version 1.006) mono = false
Mplus1Code-Medium.otf: M PLUS 1 Code Medium (Version 1.006) mono = false
Mplus1Code-Regular.otf: M PLUS 1 Code Regular (Version 1.006) mono = false
Mplus1Code-SemiBold.otf: M PLUS 1 Code SemiBold (Version 1.006) mono = false
Mplus1Code-Thin.otf: M PLUS 1 Code Thin (Version 1.006) mono = false

I don't know if this is intentional but the Mplus1Code fonts (but not the 50 or 60 variants) are not marked as monospace fonts in either the post or os/2 tables.

mancoi commented 2 weeks ago

Not sure if I should create another issue, but for me, the M+ Code Latin font is showing up in the Windows 10 Command Prompt/PowerShell fonts list, but the M+ Code font isn't.