-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Enlarged glphys in FiraCode Mono #1229
Comments
Fira Code 6.2 does not contain The glyphs you see there are inplace replacements via fontconfig. They are patched in with these settings {
'Enabled': True,
'Name': "Heavy Angle Brackets",
'Filename': "extraglyphs.sfd",
'Exact': True,
'SymStart': 0x276C,
'SymEnd': 0x2771,
'SrcStart': None,
'ScaleRules': None,
'Attributes': SYM_ATTR_HEAVYBRACKETS
}
SYM_ATTR_HEAVYBRACKETS = {
'default': {'align': 'c', 'valign': 'c', 'stretch': 'pa', 'params': {'careful': True}}
} probably we should add some padding? 🤔 Thanks for reporting! Need to think a bit about the solution. |
You see this only with You can find out who supplies them with
On my system it is mainly DejaVu:
|
Hmm, notes for PR preparation: Height of The Three Stooges is 1495, 1495, 1682, cell height in Hack 2408. That calculates to a padding of 15% top and bottom. Sounds reasonable. Maybe putting in old-style ScaleGlyph group to keep the scaling identical but individually centered. The un-centeredness really bothers me... What the heck Hack?! |
[why] The added heavy brackets are maximized within the cell size as all normal other symbols. But in fact they should not be maximized but rather be the size of 'normal brackets'. Furthermore they are all scaled individually, making the size differences less. [how] Introduce new y-padding parameter (because a negative overlap also acts in x direction, what we do not want. Pad the brackets with 30% (15% top and 15% bottom). This has only effect in Nerd Font Mono fonts. Fixes: #1229 Signed-off-by: Fini Jastrow <[email protected]>
[why] The added heavy brackets are maximized within the cell size as all normal other symbols. But in fact they should not be maximized but rather be the size of 'normal brackets'. Furthermore they are all scaled individually, making the size differences less. [how] Introduce new y-padding parameter (because a negative overlap also acts in x direction, what we do not want. Pad the brackets with 30% (15% top and 15% bottom). This has only effect in Nerd Font Mono fonts. Fixes: #1229 Signed-off-by: Fini Jastrow <[email protected]>
[why] The added heavy brackets are maximized within the cell size as all normal other symbols. But in fact they should not be maximized but rather be the size of 'normal brackets'. Furthermore they are all scaled individually, making the size differences less. [how] Introduce new y-padding parameter (because a negative overlap also acts in x direction, what we do not want. Pad the brackets with 30% (15% top and 15% bottom). This has only effect in Nerd Font Mono fonts. Fixes: #1229 Signed-off-by: Fini Jastrow <[email protected]>
[why] The added heavy brackets are maximized within the cell size as all normal other symbols. But in fact they should not be maximized but rather be the size of 'normal brackets'. Furthermore they are all scaled individually, making the size differences less. With some proportional fonts the brackets look tiny. [how] Introduce new y-padding parameter (because a negative overlap also acts in x direction, what we do not want (and it distorts)). Pad the brackets with 30% (15% top and 15% bottom). This is used for all fonts (monospaced or not) so that the new glyphs fit nicely with the existing ones. For some definitions of 'nicely', but that is as good as we can get with automatism. It's not worse than font-fallback. Fixes: #1229 Signed-off-by: Fini Jastrow <[email protected]>
[why] The added heavy brackets are maximized within the cell size as all normal other symbols. But in fact they should not be maximized but rather be the size of 'normal brackets'. Furthermore they are all scaled individually, making the size differences less. With some proportional fonts the brackets look tiny. [how] Introduce new y-padding parameter (because a negative overlap also acts in x direction, what we do not want (and it distorts)). Pad the brackets with 30% (15% top and 15% bottom). This is used for all fonts (monospaced or not) so that the new glyphs fit nicely with the existing ones. For some definitions of 'nicely', but that is as good as we can get with automatism. It's not worse than font-fallback. Fixes: #1229 Signed-off-by: Fini Jastrow <[email protected]>
This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a new issue, complete the issue template with all the details necessary to reproduce, and mention this issue as reference. |
[why] The added heavy brackets are maximized within the cell size as all normal other symbols. But in fact they should not be maximized but rather be the size of 'normal brackets'. Furthermore they are all scaled individually, making the size differences less. With some proportional fonts the brackets look tiny. [how] Introduce new y-padding parameter (because a negative overlap also acts in x direction, what we do not want (and it distorts)). Pad the brackets with 30% (15% top and 15% bottom). This is used for all fonts (monospaced or not) so that the new glyphs fit nicely with the existing ones. For some definitions of 'nicely', but that is as good as we can get with automatism. It's not worse than font-fallback. Fixes: ryanoasis#1229 Signed-off-by: Fini Jastrow <[email protected]>
🗹 Requirements
🎯 Subject of the issue
Experienced behavior:
After the v3.0.0 release, the
Mono
variant ofFiraCode
contains enlarged glyphs at codepoints U+276C to U+276F, compared to non-Mono
variant and parent FiraCode 6.2.Expected behavior:
Equal glyphs in all 3 fonts, as before v3.0.0
Example symbols:
U+276C to U+276F: ❬❭❮❯
🔧 Your Setup
Anonymice Powerline Nerd Font Complete.ttf
)?FiraCodeNerdFontMono-Regular.ttf
font-fira-code-nerd-font: 3.0.0
iterm2
,urxvt
,gnome
,konsole
)?kitty
, macOS Terminal, also occurs in macOS TextEdit★ Screenshots (Optional)
The text was updated successfully, but these errors were encountered: