subframe7536 / maple-font

[try V7!] Maple Mono: Open source monospace font with round corner, ligatures and Nerd-Font for IDE and command line. 带连字和控制台图标的圆角等宽字体,中英文宽度完美2:1
SIL Open Font License 1.1
4.21k stars 64 forks source link

In Jetbrains' production, the spacing of `Regular` or `Bold` weight will decrease when the size is 14 or 15.5 #182

Closed vladkryv closed 2 months ago

vladkryv commented 2 months ago

I have tried several other fonts, this behavior is not reproduced with them.

OS: Windows 11 Font version: v7.0 Beta15 IntelliJ IDEA: 2024.1

Screenshot_2024-05-05_13-24

subframe7536 commented 2 months ago

recording

have you ever try to restart IDEA or Windows?

vladkryv commented 2 months ago

@subframe7536 now I checked, this happens with 14.0 font size; with 15.0 the character height changes a bit but the width is normal, with 16.0 everything is fine as you have in the video.

In addition: 13.5 changes the height a bit (same as 15.0); 14.5 is fine (more precisely, both are wide); 15.5 changes the width (same as 14.0).

https://github.com/subframe7536/maple-font/assets/83036866/364951f5-befe-42f3-8643-d811e86ae36d

subframe7536 commented 2 months ago

True. I can reproduce it. Mostly it is caused by IDEA's rendering strategy. I have tried many other fonts, they also have some weird transform between font sizes.

However, what confusing me is the differences bewteen font weights. It seems that some "optimization" is effect when the font weight is regular or bold. Indeed, I have no idea to solve it currently.

In addition, there also have some font size or spacing differences when the font have double width character or not, which have annoyed me for a long time.

image

subframe7536 commented 2 months ago

recording

@vladkryv Find it out. You can test this version source.zip

Ascender / Descender should not same as Safe top / Safe bottom

subframe7536 commented 2 months ago

Strange things. Direct export with design tools renders as above, but bug still exist if built with script

The issue is not caused by Ascender / Descender

vladkryv commented 2 months ago

You can test this version source.zip

The problem with wide inter-character indentation is gone, but in this version there are a lot of artifacts, for example some letters are clearly thinner than others and so on, here are screenshots

  1. regular v7.0 beta 15
  2. regular source.zip
  3. light v7.0 beta 15
  4. light source.zip

изображение изображение изображение изображение

subframe7536 commented 2 months ago

This is caused by font hint, which is enabled by default in FontLab

subframe7536 commented 2 months ago

Fix it by correct the font name table and change usWeightClass in static version

subframe7536 commented 2 months ago

release in v7.0-beta16