97 comments

  • gorgoiler 10 hours ago ago

    Very nice and condensed. The same reason I switched to Iosevka (Joseph), recently:

    https://github.com/be5invis/Iosevka

    The fun thing with Iosevka is that one stands a reasonable chance of reading the source code (as opposed to just random numbers in SplineSets etc.)

    • sayyadirfanali an hour ago ago

      Iosevka is a beautiful font indeed. the condensed look of Myna was inspired by Iosevka. i saw it once in a coding demo and decided to make it condensed. the predecessor of Myna (called Hera, available on my profile) was just a customised version of Source Code Pro (and is non-condensed, just like Source Code Pro).

    • electroly 3 hours ago ago

      Thank you for the detail that Iosevka is a form of the name "Joseph." I've used this font for years and it never clicked for me--nor did the correct pronunciation, which it turns out was always listed on the readme.

    • gdwatson 6 hours ago ago

      Beside being a neat font in its own right, Iosevka allows for custom builds with different settings, selection from a bunch glyph variants, and custom ligature choices. It's pretty incredible.

    • andai 3 hours ago ago

      Iosevka is great. I use a custom version Iosevka Orw from here https://github.com/s0la/orw/tree/master/.fonts

      It's about halfway between standard Iosevka and a typical monospace font in terms of narrowness. I find it ideal.

    • java-man 8 hours ago ago

      My favorite monospaced font, on Windows and Mac.

      • typpilol 7 hours ago ago

        I switched to codenewroman mono with a nerd font.

        Makes my terminal look amazing as well.

        Especially since I've been working on a color scripts compilation that relies heavily on font being accurate

  • o11c 9 hours ago ago

    This, like many fonts, fails to handle vertical arrows:

      |    ^
      v    |
    
    Note that the raised appearance of `^` exists for compatibility with typewriters that use the backspace key to use it as a circumflex accent over lowercase letters. This is doubly obsolete today (we have real combined characters and can use them on uppercase). This is one of those cases where the name originally used for the character in various standards is in conflict with the way people actually have come to use it.

    The bottom of the independent caret should be lower, roughly symmetrical to the letter `v` (this is not traditionally a goal). The top should still reach the height of a capital letter, but the bottom should descend into the lowercase letter area - for many fonts, perhaps to the level of the horizontal part of a lowercase `e` (is there a typographical term for this?)? For fonts where the x-height is half of the cap-height, there might be no overlap with the lowercase letter, though it still doesn't need to worry about leaving space.

    The bottom of the caret is, however, higher than the mathematical "and" sign ∧, which rests on the baseline (and usually does not reach full height) or the Greek capital lambda `Λ` which is full height.

    • sevg 7 hours ago ago

      > the way people actually have come to use it

      I have never seen anyone use it as part of an up arrow spread across two lines in the way that you’re suggesting. So I don’t really understand your point.

      Ok it’s not symmetrical, but I don’t buy your argument that it _should_ be (or that it’s a reasonable complaint to make about a font).

      • normie3000 4 hours ago ago

        > I have never seen anyone use it as part of an up arrow spread across two lines in the way that you’re suggesting.

        You've never heard of "caret and stick"?

    • munchler 9 hours ago ago

      Your point about the caret is interesting, but I'm a bit dubious about using them for vertical arrows. I don't think it would be practical to type this combination in one go, since the two symbols would be on two separate lines. For the upward arrow, are you suggesting caret-return-space-space-space-...-vertical bar?

      Are there any programming languages that use vertical arrows? Do they appear on one line or two?

      • o11c 8 hours ago ago

        > Are there any programming languages that use vertical arrows? Do they appear on one line or two?

        Befunge (1993; many later languages were inspired by it) uses just the ASCII arrowheads. The arrow tail is more likely to exist in doc comments.

      • leephillips 8 hours ago ago

        APL

        • sayyadirfanali an hour ago ago

          i don't think that qualifies. because the alignment issue is about multi-line alignment of upward arrows. APL usage is clearly meant to be covered by some single Unicode glyph.

    • tln 9 hours ago ago

      Are you trying to get a ligature that crosses lines?

      You could maybe try U+2303 (⌃) for the up arrowhead, but why not just use U+2191 (↑) for the standard arrow?

      The crossbar height of lowercase letters is not a common typographical reference point...

      • o11c 8 hours ago ago

        I don't care about ligatures, just symmetry.

    • sayyadirfanali 9 hours ago ago

      thanks for pointing it out. as i mention below in a comment, there are bound to be many combinations which don't align (especially vertical ones). i would ideally tell you to invoke a feature request but i am not sure this esoteric combination could even be detected in a contextual alternate rule (which Myna doesn't support anyways for now).

      beside if i may say so in my defense, the comparison is a bit unfair as a V (a full letter) is being compared to a caret (almost a superscript symbol). i have broken many typographical conventions but it won't make sense to break programmatic convention of the caret operator just for the alignment of the vertical arrows.

    • imiric 8 hours ago ago

      I don't see such a niche use case as a design failure.

      By your logic, the lowercase "v" should extend even higher to meet the pipe. The caret has conventionally been higher for a long time, and IMO would look out of place making it the inverse "v".

      If you want arrows, just use U+2191 and U+2193.

    • Avshalom 7 hours ago ago

      Come to APL we have ↑↓

  • MarsIronPI 11 hours ago ago

    Not trying to be negative, just confused: I don't really see how this font is "designed for symbol-heavy languages". The symbols look normal to me. Maybe the letters are a little more spaced? I'd love to be enlightened.

    • floppyd 11 hours ago ago

      >Near-Perfect Alignment: multi-character symbols like ->, >>=, =~, :: align seamlessly

      The GitHub page has a list with 5 items of what was the focus, this is the first (and I think the most easily noticeable) area

      • layer8 11 hours ago ago

        I wonder why only near-perfect.

        • sayyadirfanali 11 hours ago ago

          there are bounds to be many many operators and glyph combinations where things don't match properly. an example is the variable declaration and initialisation symbol in Go which combines colon and equal sign. if you use Myna and come across any such examples, please raise a feature request. i only focused on glyphs for languages i use personally. but if there is interest i am open to adding contextual alternates to give some alignment in cases where changing one glyph would disturb other combinations. of course you can always point out any rendering or design issues with singular glyphs too.

    • sayyadirfanali 11 hours ago ago

      designer here. by symbol-heavy languages i mean languages like Perl and Haskell which make heavy use of symbols (sigils in Perl and operators in Haskell). Myna was designed after my frustration with other monospace fonts combined with my (self-imposed) inability to use ligatures.

      • crazygringo 6 hours ago ago

        I think it might be useful to put some screenshots of other fonts on your page, to show what symbol or alignment problems yours corrects. Because I've studied a lot of typeface design, and I can't really figure out what you're doing, what pain points you're trying to address.

        Because when you say "and $, @, % seem ever mismatched?", I don't have the slightest idea what you're talking about. I certainly am curious though, since you went to all the work of building a new typeface!

        And when you talk about fixing alignment, like all of these seem correctly vertically aligned with each other here on HN at least in monospace mode:

          <->=+-~
        
        So if you could demonstrate what it is fixing with reference to the most common monospace system/coding fonts, I think that would help a ton.
        • sayyadirfanali 35 minutes ago ago

          thanks for the suggestion. i'd think about adding screenshots of other fonts.

          about the alignment, i think the README might give an impression that it's solely about vertical alignment, but it's more about uniform flow of characters along with some resemblance with an actual symbol (which we can not have in ASCII).

          for example, take the `<-` combination. i think you're correctly pointing out that in most fonts they are indeed vertical-aligned properly. but there are other details like (horizontal alignment, angle between strokes, weights, etc) which i found missing. in most monospace fonts, these less/more-than signs are not designed with the view that their most common usage is not checking for inequality but for bitwise and dereferencing (C), function declaration and monadic/applicative/functorial programming (Haskell), shell redirection (bash), piping (OCaml, Elixir), tag (HTML), and countless other. if you think about it that way, it makes sense to not make the angle between strokes too small which many monospace fonts do because they respect classical typographic conventions regarding space and design. the same goes for the designs for backquote, tilde, comma, colon. in most monospace fonts, backquote is so small it's barely visible and tilde looks too much like the hyphen, etc.

          Myna is my attempt to break some of these conventions to make things look a little bit even for programmers.

      • Avshalom 11 hours ago ago

        Apl, BQN and Oiua would like to talk to you.

        • andrewl-hn 11 hours ago ago

          And some proof assistant languages and frameworks. For a second I was really excited there, but this is another font with “programming ligatures”.

          • sayyadirfanali 11 hours ago ago

            i know the title can be a bit misleading but Myna is primarily ASCII.

            languages which insist on using full Unicode like APL and Agda have bigger problems (availability of uniform glyphs and inconsistency with monospace design) on their plates. which imo is one reason why full Unicode editing hasn't really caught up.

            Myna doesn't use any ligatures though. it would run on almost all terminals and editors.

            • andrewl-hn 10 hours ago ago

              Yeah, I realize that I was wrong about ligatures afterwards. The two plusses next to each other looked as if they are a single combined glyph, but they are in fact separate. I think this is the effect you were trying to reach, and it looks very slick.

            • agarttha 10 hours ago ago
              • sayyadirfanali 33 minutes ago ago

                good idea. since i don't code in J, can you supply a 2-3 line quintessential J example to demonstrate this?

              • ofalkaed 8 hours ago ago

                J mostly looks good but [) looks almost like a fancy capital D which can be distracting and =# run together at smaller font sizes which is a little weird. Those are the only things that jump out at me but I did not look hard, overall I would say it is one of the better fonts I have tried for J.

                The big problem that I am having with this font is that its narrowness makes it difficult to find a fallback font for APL/BQN that plays well.

  • kstrauser 9 hours ago ago

    This is very pretty, but...

    The kerning in the "Lorem" at the top drives me batty. It nearly looks like 2 words to my eye. I know that's super subjective and it probably doesn't bother anyone else at all. It's kind of a deal breaker for me, though.

    • sayyadirfanali 9 hours ago ago

      i use this font basically everywhere and have become kinda blind to the defects. for me it looked best when glyphs are mostly centered (which makes them "genuinely monospace" if you catch my drift).

      but you raise a valid point. it is not entirely subjective. some obviously grotesque (no pun) kerning would need to be changed in the next version. if you can point out some obvious ones i would urge you to create an issue.

      • theultdev 8 hours ago ago

        Looks beautiful! Have you done any focus on Typescript by chance?

        I will test it out and report any abnormalities I see!

        • sayyadirfanali 30 minutes ago ago

          thanks! in TypeScript, i've not noticed any glaring combination mismatches. i think most common combinations are covered by considering C and Perl. but feel free to try and report them if you find any.

  • thetwentyone 9 hours ago ago

    Also see the JuliaMono typeface: https://juliamono.netlify.app

    It was designed to be a comprehensive monocode typeface to support Julia's full Unicode support.

  • floppyd 11 hours ago ago

    I appreciate the effort, but the result kind of shows why usually symbols are aligned as they are. Dashes, colons, angle brackets — all look way too high next to lowercase letter. I assume this stems from trying to align everything with brackets, and those are aligned with uppercase letters kind of naturally. But I don't think the tradeoff is worth it.

    • sayyadirfanali 11 hours ago ago

      i understand the point you raise. but i believe symbols are generally aligned as they are because most fonts are designed for text and many monospace fonts respect those typographic traditions.

      but i think code is not text and breaking some tradition improves readability.

      the dash (hyphen) is actually supposed to align with the greater than symbol to resemble the arrow (extremely common symbol in C and many functional languages).

      • layer8 11 hours ago ago

        The greater/less-than symbols look too high to me as well, also when used as angle brackets like in HTML/XML/C++/Java/TypeScript/….

  • NooneAtAll3 4 hours ago ago

    My gripe with lots of fonts have been insistence on making 1-l-I confusable

    the problem there isn't only in making characters distinct - but it's about not confusing one for another "in a vacuum", by itself

    this font succeeded in making `I` unique - but `l` still looks like "one"

    I wish people copied discord's font in this instance - remove bottom serifs altogether and replace with a slanted end

  • iambvk 2 hours ago ago

    My favorite monospace font is "Ubuntu Mono" for ages.

    As an engineer, I like to see -- for the lack of better word -- some taste instead of characters being too formal and too symmetric. Ubuntu and Ubuntu-Mono satisfy this to a good extent without being too much, like in comic sans.

    The closest font with similar taste, which I found recently is Mononoki

    • sayyadirfanali 28 minutes ago ago

      Ubuntu Mono is great. many glyphs in Myna are directly borrowed from Ubuntu Mono, just more condensed and better aligned.

  • wvbdmp 10 hours ago ago

    There is already a relatively well-known icon font called Myna UI: https://mynaui.com/icons

    Just a heads-up.

    • sayyadirfanali 9 hours ago ago

      thanks for pointing it out. shouldn't be that confusing, i guess.

  • Pet_Ant 9 hours ago ago

    I don't know why "->" should render as an arrow when we could just use an actual Unicode arrow. If need be, have macros for your editors that allow you to convert the "->" into an actual arrow.

    • vanderZwan 7 hours ago ago

      Because there are programming languages where "->" and "=>" have semantic meaning, but the unicode arrows don't.

    • sampo 7 hours ago ago

      > have macros for your editors that allow you to convert the "->" into an actual arrow.

      Or, as suggested here, use language macros:

          #define → ->
      
      https://lists.isocpp.org/std-proposals/2023/01/5485.php
      • teo_zero 4 hours ago ago

        This is not valid C, though. The characters allowed for identifiers are defined in Unicode Standard Annex #31, and those easily understood as operators, like arrows, are not included.

    • sayyadirfanali 9 hours ago ago

      it is partially a matter of design and code philosophy. many like the simplicity of ASCII and consider ligatures distracting.

      but more than preference there is matter of availability and consistency. Unicode is not available for all possible glyph combinations and many times what we see in Unicode looks quite ugly in monospace because of the width constraint.

      ligatures are also not supported everywhere. that is one of the reason i designed this.

    • gmueckl 9 hours ago ago

      Not all code editing sessions are created equal. I dare you to deal with Unicode symbols in a vim session over SSH with a 1 second RTT, for example :).

  • fph 10 hours ago ago

    The Latex example should include at least a math formula.

    • sayyadirfanali 3 minutes ago ago

      agreed. formulae are essential LaTeX. are there any particular glyphs compositions which you'd suggest?

    • kccqzy 7 hours ago ago

      And the Haskell example doesn't even include common operators like <$> or <*> or <>. I would've also expected some fancier arrows like =<< or >>>.

      • sayyadirfanali 4 minutes ago ago

        if you're looking for those haskell operators, you'd find them in the huge banner at the start. maybe i should also add them in the illustrations too.

  • kazinator 5 hours ago ago

    > Do you ever feel like your font treats symbols as second-class glyphs?

    No because this problem has been solved by other font designers working with pretty much exactly the same requirements.

  • teo_zero 5 hours ago ago

    Beautiful.

    The site should be more explicit about which characters are covered. I understand it's only ASCII, right? Although the example shows some currency signs that are definitely out of the 0-127 plane.

    It would also be appreciated if you could suggest a fallback font for those glyphs not present in Myna, so that if I ever need to include the word "naïve" in a string, for example, the "ï" won't look as an alien character.

    • sayyadirfanali an hour ago ago

      almost all of the Latin extended and quite a reasonable subset of Unicode is covered. the word "naive" renders perfectly, for example, because the "i with diaeresis" is present in Myna. if you find any which are not covered and want them added, please create a feature request. about the fallback font, you can use any monospace font you like. i don't use any fallback generally because i work almost exclusively in the ASCII range in the editor.

  • jablanyu 10 hours ago ago

    Genuine question: is everyone coding on such high resolution displays and/or with font sizes so big nowadays? For me, the example screenshots are useless to see how the font would actually look like in my editor.

    • robinhood 9 hours ago ago

      Hard to talk about "everyone" since I'm not aware of any large polls around this point. On a personal note, yes, considering that I'm 44, I tend to always increase font size everywhere: the code editor, the terminal, the browser, the OS itself and mobile phone.

      It's unavoidable for me. I was making fun of those people with huge font sizes on phones 10 years ago. I'm almost one of them now.

    • 1718627440 8 hours ago ago

      As a counter example, I always decrease the font-size everywhere. The annoying trend of bloating everything with whitespace, means that less and less stuff fits on the screen. But even HN is on 80% right now.

      • kid64 2 hours ago ago

        Ah, to be young.

    • mholt 10 hours ago ago

      I definitely increase my font size, so I'm not straining my eyes. Any monitor with a lower than about 120 PPI causes me strain, unless I really boost the size. For example I read HN at anywhere from 150-200%.

    • trenchpilgrim 10 hours ago ago

      Yes, the bigger fonts are easier to read.

  • binary132 4 hours ago ago

    I really appreciate that the symbols are clear and well-aligned but I do not find the font very attractive or legible unfortunately. I like the Go Mono font though so maybe it’s a “me” problem. :)

    • sayyadirfanali 7 minutes ago ago

      thanks for the feedback. i'd like to think it's just a preference issue.

      i didn't know about Go Mono. it looks alright but monospace serifs are probably not for me.

  • jug 10 hours ago ago

    I personally love Jetbrains Mono; it's been one of a kind for me and my tastes. I like it over Consolas (although this is one is pretty good on Windows), Fira Mono, Inconsolata, Plex Mono. But I can see the effort here and I'm definitely going to give this one a try! I've found that typefaces can change a lot depending on pixel alignment and rendering engines (i.e. ClearType, GDI, FreeType, Quartz... let pixel grid decide or not, or by how much...). So it's hard to tell if this is going to win me over without actually trying!

    • sayyadirfanali 10 hours ago ago

      if you try it please feel free to create an issue if you find some rendering bug in your system. i have tested and used it extensively on Linux but not Windows or MacOS as much as i should.

  • dannyfritz07 8 hours ago ago

    Very similar to Intel One Mono which is a font I love to use.

    - https://www.intel.com/content/www/us/en/company-overview/one...

  • superfamicom 8 hours ago ago

    Reminds me of the beautiful M+ fonts.

    https://mplusfonts.github.io/

    • JSR_FDED 8 hours ago ago

      My programming font in Vim for the last 10 years!

  • olivia-banks 9 hours ago ago

    It would be nice to see some comparison with other fonts on the GitHub page; the symbols look normal to me, at least. It looks very pretty regardless!

    • sayyadirfanali 9 hours ago ago

      thanks for pointing it out. i would need to consider that idea.

      the symbols are all pure ASCII and are supposed to look normal. it is not a ligature font and neither focusses on Unicode symbols. the symbols are just more evenly adjusted with the letters and with each other.

      • olivia-banks 9 hours ago ago

        That's something I really like about this front. I'm not a huge fan of ligatures and think they're counter productive. Makes it a bit harder to see the differences though, so I think a comparison would be great.

  • tmtvl 9 hours ago ago

    Looks pretty good, but I often need to read Japanese characters so I'm gonna stick to IBM Plex, which has both Monospace and CJK variants.

    • justsomehnguy 9 hours ago ago

      > IBM Plex

      I found what while it's not the best for me - it is suprisingly good for a PowerPoint-like presentations, #specially the condensced vars.

  • daneel_w 7 hours ago ago

    After testing it for an hour I concluded that for me, Cascadia Code is a lot more legible.

    • sayyadirfanali 15 minutes ago ago

      thanks for testing it. if i can suggest, a wider space between letter helps, for me at least.

  • lynguist 9 hours ago ago

    I wouldn’t program with it but I find it extremely aesthetic.

  • layer8 11 hours ago ago

    I despise this style of curly braces where the arms look more like “S” than like “ʃ”. Don’t go backwards! :)

    • sayyadirfanali 11 hours ago ago

      a few others have raised the same point. in my defense i can only say that i adore that particular style because it looks more like what i draw by hand.

      • layer8 11 hours ago ago

        I guess it depends on what you are used to. I draw them like “ʃ” by hand, and find the more squiggly style unnecessarily noisy visually. It makes the brace direction a little less obvious to see at first glance.

        • sayyadirfanali 10 hours ago ago

          surprisingly enough for me, the exact same point was raised by others too. meanwhile, i was totally unaware that many would find it hard to read it as i never ever had any difficulty telling them apart even with the (admittedly baroque) design of the braces. if that is the only feature stopping you from trying this, please make a feature request. maybe i could issue a "disambiguous braces" variant.

          • jumaruba 9 hours ago ago

            I'm gonna raise another point, however. I think Myna's braces are easier to distinguish from each other: "(" and "{". After spending all day coding, they start to look very similar. I agree it might not be super beautiful, but for me, Myna has this advantage.

      • baobun 7 hours ago ago

        The curly braces are the one thing that really "pop out" from the font the moment I look at it. Even if I can agree they are pretty and even adorable, also visually noisy, distracting, and something that makes me not want to try the font out.

        Being distinct from parens and brackets is obviously still desired and sorry I'm not a designer myself enough to give more specific feedback on how it could be improved.

        Otherwise very attractive font.

  • jijojv 10 hours ago ago

    Looks great except for l looking like 1

    • sayyadirfanali 12 minutes ago ago

      thanks for the feedback. i didn't think about it until a few people commented here. if you use it and want it changed, please open a feature request. just like the curly braces, a disambiguating variant of Myna can be issued in the next release. i gather removing the left stroke at the bottom of the `l` would fix it for you. i think changing the `1` won't make sense as that's how it always is.

  • silversides 10 hours ago ago

    It's gorgeous. Thank you.

  • imiric 10 hours ago ago

    I like it, it's very clean. Nice work!

    I like that it's relatively compact horizontally. If I had to nitpick, the curly braces look a bit too "wavy" for my taste, which doesn't quite match the hard angles on some other glyphs.

    My favorite monospace font for the past 10+ years has been Iosevka Term ss08. I've tried many others over the years, and Iosevka is just perfect IMO.

    Out of curiosity: what are the tools and the process to create a font today? It would be interesting to read a bit about that.

    • sayyadirfanali 9 hours ago ago

      thanks for the feedback. about the braces please see another comment below. the issue of needlessly complicated braces has been raised quite a few times now. a variant could be considered if there is more interest.

      this particular font is quite simple and doesn't contain any ligatures, etc. so most of the design is in Fontforge. i didn't start from scratch. it started out as a customised version of Source Code Pro (released as Hera and currently archived in my profile) but i borrowed many glyphs from other fonts and modified many others to the point it became a different font. you can open the .sfd file directly in Fontforge to edit and modify it yourself.

  • mouse_ 11 hours ago ago

    It's perfect. Please don't change anything about it.

    • evanjrowley 11 hours ago ago

      How do you feel about 'l' and '1' looking so similar in Myna?

      • mouse_ 10 hours ago ago

        Don't care even a 1ittle

  • adastra22 11 hours ago ago

    A rust example is conspicuously missing from the README.

    • tacker2000 8 hours ago ago

      And JS and PHP, etc… some people have other language priorities and thats fine

    • sayyadirfanali 11 hours ago ago

      please check the illustrations below.