U+276F prompt character (β―) got smaller between 3.1.1 and 3.2.1
gibfahn opened this issue Β· comments
πΉ Requirements
- I have searched the issues for my issue and found nothing related and/or helpful
- I have searched the FAQ for help
- I have searched the Wiki for help
π― Subject of the issue
Experienced behavior:
Prompt character is now small.
Expected behavior:
Prompt character is large and easy to spot in the terminal.
Example symbols:
- U+276F (β―)
π§ Your Setup
- Terminal: kitty.app 0.34.0, but it also reproduces with Terminal.app
- Configuration (in case useful): kitty.conf
- Font:
Hasklug Nerd Font Mono
, installed by brew from: font-hasklug-nerd-font - OS: latest macOS
β Screenshots
Screenshots taken at the same zoom in kitty.app on old and new font versions:
3.1.1 | 3.2.1 |
---|---|
Sorry to hear of your size problem.
I can see it directly in the font π€
Suspect
Because from these heavy brackets people DO expect excessively big icons π€
@allcontributors please add @gibfahn for bug
I've put up a pull request to add @gibfahn! π
Thanks for the detailed explanation and the solution! I don't know if it's helpful, but I filed your proposed solution as a PR. I think that's right, don't have much experience in this area. #1617
It's your change, so if you want to file your own PR for it fine by me, just trying to reduce some cycles for you π .
Most probably you already read it, but if not... the cryptic rules have some explanation
# Stretch 'xz' or 'pa' (preserve aspect ratio)
# Supported params: overlap | careful | xy-ratio | dont_copy | ypadding
# Overlap value is used horizontally but vertically limited to 0.01
# Careful does not overwrite/modify existing glyphs
# The xy-ratio limits the x-scale for a given y-scale to make the ratio <= this value (to prevent over-wide glyphs)
# '1' means occupu 1 cell (default for 'xy')
# '2' means occupy 2 cells (default for 'pa')
# '!' means do the 'pa' scaling even with non mono fonts (else it just scales down, never up)
# '^' means that scaling shall fill the whole cell and not only the icon-cap-height (for mono fonts, other always use the whole cell)
# Dont_copy does not overwrite existing glyphs but rescales the preexisting ones
#
# Be careful, stretch may not change within a ScaleRule!
'align': 'c', 'valign': 'c', 'stretch': '^pa1!', 'params': {'ypadding': 0.3, 'careful': True}
- Align horizontally and vertically in the center
- Scale it with preserved aspect ratio (x and y scale is equal) into 1 cell (default would be 'up to 2' for
pa
) - Take the whole line-hight (
^
) and subtract 30% from the height (ypadding
) - Do the scaling also for proportional fonts
- Do not change preexisting glyphs