News for hackers. Stuff that matters.
Re:Myna: Monospace typeface designed for symbol-heavy progra... by sayyadirfanali on Friday November 07, 2025 @02:29PM (#45850056)
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.
Re:Myna: Monospace typeface designed for symbol-heavy progra... by Avshalom on Friday November 07, 2025 @02:44PM (#45850217)
Apl, BQN and Oiua would like to talk to you.
Re:Myna: Monospace typeface designed for symbol-heavy progra... by andrewl-hn on Friday November 07, 2025 @03:03PM (#45850409)
And some proof assistant languages and frameworks. For a second I was really excited there, but this is another font with “programming ligatures”.
Re:Myna: Monospace typeface designed for symbol-heavy progra... by sayyadirfanali on Friday November 07, 2025 @03:11PM (#45850489)
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.

Re:Myna: Monospace typeface designed for symbol-heavy progra... by agarttha on Friday November 07, 2025 @03:46PM (#45850925)
Re:Myna: Monospace typeface designed for symbol-heavy progra... by ofalkaed on Friday November 07, 2025 @06:06PM (#45852345)
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.

Re:Myna: Monospace typeface designed for symbol-heavy progra... by sayyadirfanali on Saturday November 08, 2025 @01:08AM (#45854539)
good idea. since i don't code in J, can you supply a 2-3 line quintessential J example to demonstrate this?
Re:Myna: Monospace typeface designed for symbol-heavy progra... by andrewl-hn on Friday November 07, 2025 @03:19PM (#45850595)
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.
Re:Myna: Monospace typeface designed for symbol-heavy progra... by crazygringo on Friday November 07, 2025 @07:52PM (#45853062)
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.
Re:Myna: Monospace typeface designed for symbol-heavy progra... by sayyadirfanali on Saturday November 08, 2025 @01:06AM (#45854529)
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 (horizontal alignment, angle between strokes, weights, etc) which i found missing. in most monospace fonts, these less-than and more-than signs are not designed with the view that their most common usage is indeed not checking for inequality but for bitwise operators and struct pointer dereferencing (C), function declaration and monadic/applicative/functorial programming (Haskell), shell redirection (bash), function composition (OCaml, Elixir), tags (HTML), and countless others. if you think about it that way, it makes sense to not make the angle between strokes too small. many monospace fonts do it 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.

Re:Myna: Monospace typeface designed for symbol-heavy progra... by michaelcampbell on Sunday November 09, 2025 @03:54AM (#45864042)
I'd be curious to know if you had any numbers on the usages of inequalities versus bitwise and structural dereferencing operations.

I'd be very, very surprised if inequalities was used less often.

Don't get me wrong. I appreciate the work you put into the font and it looks very nice but that part of your post struck me

Re:Myna: Monospace typeface designed for symbol-heavy progra... by sayyadirfanali on Sunday November 09, 2025 @04:21AM (#45864205)
i meant programming in general, not just C.

the inequalities would probably be more common than bitwise/pointer usage in C, most because of for loops, i guess.

but if you consider all the other languages i listed, it is obviously not the case, especially in Haskell and even HTML.

Re:Myna: Monospace typeface designed for symbol-heavy progra... by xigoi on Saturday November 08, 2025 @01:48AM (#45854682)
Re:Myna: Monospace typeface designed for symbol-heavy progra... by crazygringo on Saturday November 08, 2025 @08:17AM (#45856479)
Very curious what your browser+OS is, and what monospaced font it's using (if you have access to the web inspector).

A search on Google Fonts shows most monospaced fonts keep them vertically aligned, but there definitely are exceptions:

https://fonts.google.com/?preview.text=%3C-%3E%3D%2B-~&categ...

Re:Myna: Monospace typeface designed for symbol-heavy progra... by xigoi on Saturday November 08, 2025 @08:32AM (#45856546)
Iceraven (a fork of Firefox Android). Unfortunately mobile browsers don’t have devtools :(
Re:Myna: Monospace typeface designed for symbol-heavy progra... by rbanffy on Saturday November 08, 2025 @07:18AM (#45856149)
Where does the design for the text characters come from? Is it based on a mono font you find readable?
Re:Myna: Monospace typeface designed for symbol-heavy progra... by sayyadirfanali on Saturday November 08, 2025 @09:26AM (#45856849)
Myna's predecessor was a customised version of Source Code Pro. but i've changed a lot of glyphs by borrowing designs and modifying glyphs. so, it may not look like it at all now.
Re:Myna: Monospace typeface designed for symbol-heavy progra... by rbanffy on Saturday November 08, 2025 @09:31AM (#45856875)
My own font took on the blockyness of the IBM 3270 terminals. Now it has a ton of glyphs those terminals never had, but I tried to remain faithful to its original design principles.

Not everyone likes it, but I do.

Re:Myna: Monospace typeface designed for symbol-heavy progra... by sayyadirfanali on Saturday November 08, 2025 @09:58AM (#45857049)
i totally get what you mean.

i've not been faithful to the original design of Source Code Pro or even Fira Mono or Ubuntu Mono (from which i also derived a lot) but do try to stick to a simple geometrical ideal with only a few exceptions.

Re:Myna: Monospace typeface designed for symbol-heavy progra... by johnisgood on Saturday November 08, 2025 @08:32PM (#45862062)
Rust is super symbol-heavy, too.
Re:Myna: Monospace typeface designed for symbol-heavy progra... by edem on Sunday November 09, 2025 @01:10PM (#45867647)
why do you have this self imposed inability?