mirror of
https://github.com/sayyadirfanali/Myna.git
synced 2026-01-12 06:50:26 +01:00
Colon-equals not vertically aligned #4
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @wrs on GitHub (Nov 7, 2025).
Originally assigned to: @sayyadirfanali on GitHub.
:=is very common in Go and other languages, but not aligned as a pair.@sayyadirfanali commented on GitHub (Nov 8, 2025):
@wrs thanks for the opening an issue with the screenshot.
since changing the vertical position of
:or=would conflict with other glyphs, we'd need to add a contextual alternate. they were not planned initially for Myna, but are in pipeline now given the interest. check #1 for more details.stay tuned for update.
@joshtriplett commented on GitHub (Nov 8, 2025):
@sayyadirfanali wrote:
Interesting! I can imagine that
=is already heavily positioned with other things, but what are the other compound operators or constructs that:is a part of an needs to match the relative positions of?@sayyadirfanali commented on GitHub (Nov 8, 2025):
mainly the letter, semicolon, and period. they all have almost the same baseline, ie, the lower component of the semicolon rests on the same line as the period and the letters except descenders (p, q, etc).
i've think i did try to raise the semicolon once, but it disrupted the flow of text quite a bit.
on the other hand, the
:=combination is used in quite a few places for variable declaration (Go, OCaml, Coq).@frankrolf commented on GitHub (Nov 11, 2025):
You won’t need to add additional glyphs, you could introduce a vertical kerning pair for this context:
Here’s a screenshot of a dummy build of Source Code Pro where I attempted the above:
@sayyadirfanali commented on GitHub (Nov 11, 2025):
@frankrolf that's right. no new glyph/ligature need be added, just a rule to shift the vertical position.
@sayyadirfanali commented on GitHub (Nov 17, 2025):
@wrs @joshtriplett @frankrolf i've added a contextual alternate in the latest commit (
9138e77400). can you please check if it works and the design is proper?@wrs commented on GitHub (Nov 17, 2025):
@sayyadirfanali Looks good to me! Thanks!
@sayyadirfanali commented on GitHub (Nov 18, 2025):
closing this issue. as mentioned in the
Myna.feafile, the current adjustments include=,+,-but if any other adjustments (with or without:) are needed, then feel free to open another issue.