Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×
Programming

Developer Creates Delightful Programming Font Based on Minecraft (arstechnica.com) 34

North Carolina-based developer Idrees Hassan loves Minecraft so much that he recently created a monospaced font for programming based on the typeface found in the wildly popular video game. The result, Monocraft, gives programmers the feel of being in Minecraft without using any assets from the game. From a report: "To be honest, I made this font because I thought it'd be fun to learn how fonts worked," Hassan told Ars. "Existing Minecraft fonts were missing a bunch of small details like proper kerning and pixel size, so I figured I should make my own. Once that was done, there was nothing stopping me from going overboard and turning it into a 'proper' programming font. Plus, now I can write Minecraft plugins in a Minecraft font!" To adapt the Minecraft font for development purposes, Hassan redesigned characters to look better in a monospaced format, added a few serifs to make letters such as "i" and "l" easier to distinguish, created new programming ligature characters, and refined the arrow characters to make them easier to read. (Ligature characters combine popular operational character strings such as "!=" into a single new character, but they aren't always popular with developers.)
This discussion has been archived. No new comments can be posted.

Developer Creates Delightful Programming Font Based on Minecraft

Comments Filter:
  • by Fly Swatter ( 30498 ) on Thursday September 08, 2022 @04:44PM (#62864621) Homepage
    But F for scaled up pixelation.

    -what's old is new again
    • by Xenx ( 2211586 )
      It's authentic! Not saying I'd love to use it, but I do like it for what it is.
    • Is that an F, or a P? I'm using 10 point Monoscape in my browser.

      It's delightful to have a font which looks like this, but only for if I want to make minecraft memes. Using it for programming would be bananas.

    • "But F for scaled up pixelation.

      -what's old is new again"

      My thought exactly, I thought: Wow the font from my CGA monitor!

      • by caseih ( 160668 )

        Speaking of old DOS screen fonts, in my mind it's hard to beat the legibility of the good old 9x16 IBM VGA font. Yes VGA text mode really was 720x480. I've not yet joined the modern-day present and still have a 24" monitor that's only 1920x1200. At these resolutions, my favorite programming font is a TTF rendition of the IBM VGA text mode font, called "Less Perfect DOS VGA." At 12 points the characters are exactly 9x16 pixels. And I have to say they look great. If I get a 4k monitor, though, that will

        • by tlhIngan ( 30335 )

          Speaking of old DOS screen fonts, in my mind it's hard to beat the legibility of the good old 9x16 IBM VGA font. Yes VGA text mode really was 720x480. I've not yet joined the modern-day present and still have a 24" monitor that's only 1920x1200. At these resolutions, my favorite programming font is a TTF rendition of the IBM VGA text mode font, called "Less Perfect DOS VGA." At 12 points the characters are exactly 9x16 pixels. And I have to say they look great. If I get a 4k monitor, though, that will be to

    • by chthon ( 580889 )

      I think I had the same fonts on my ZX Spectrum...

  • ...dot-matrix printer.

    • I upgraded my 9-pin to 24-pin and never looked back.

      • by Tablizer ( 95088 )

        I remember some 9-pinners would use the trick of shifting half a pixel for a second pass to add resolution. I'd draft using single-pass mode and print the final copy in 2-pass mode.

  • The example has chars that are 2 and 3 spaces wide. WTF?

      • by gweihir ( 88907 )

        Yes, so? You do not have ligatures that are several spaces wide in monospaced fonts. Incidentally, when you look at the example, you find these are arrows and mathematical symbols, so not ligatures either. The only way to do ligatures in monospaced is to put the two chars into one space. As that usually does not work, it is rarely done.

        • apparently you do in this case. it's in tfa. there's no reason they shouldn't work in a monospaced font any more than a variable width one. not my bag for programming, though. seems dumb for that.

  • The second and third else if clauses show off the font's custom ligatures [github.com], with != turning into a not-equals sign. Cute, but that will get confused with U+2260, Unicode's own glyph for not-equal-to. The same goes for not-identical (U+2262) versus the !== glyph in the third clause.

    This might make sense for programming languages that are restricted to ASCII, but it seems dangerous for others like JavaScript (though JS doesn't actually support using U+2260 as an operator ... yet?).

    • Fira Code has basically the same problem with != and =/= showing up very similar to U+2260. You can turn off the ligatures and normally you're configure that based on the type of source file you're viewing. Theoretically you could define a symbol in Go as U+2260 and it wouldn't function as an operator (I did not try it), that might be a little surprising but shouldn't break the language.

  • by UnknownSoldier ( 67820 ) on Thursday September 08, 2022 @06:39PM (#62865027)

    Certain glyphs are utter garbage. Uppercase A, B, E, F, G, H, P, R, S, X are unbalanced or what is known as bad X-Height [dtc-wsuv.org]

    Here is an example of how to fix it. [imgur.com]

  • For the rest of us, a pain.

    It reminds me of when Comic Sans came out. EVERYBODY used Comic Sans everywhere, because it was "so cool" to use a font that looked like handwriting. It got old really, really fast. I personally don't want to use a font that looks like it came out of a game, I want to use one that's easy to scan, easy to read, has clearly-defined symbols, and doesn't look like a typewriter.

  • But I guess many super cool dudes were just not around back then.

  • We used this (or a similar) font for BASIC programming around 40 years ago, in the home computer 'ZX Spectrum'.

    • Actually, the closest font I can remember is that on the Apple II. Only Apple's looks so much better.
    • by Tablizer ( 95088 )

      It's funny to watch young whippersnappers reinvent things that have been around before and say, "look how smart & inventy I am!". Oh the view from geezerhood.

  • While certainly not identical, this looks very similar to the good-ol' Schumacher "screen-medium-r-normal" font I used for years. On current Linux distributions it's so dang hard to find and enable the Schumacher fonts that I've finally given up, but it was good for the couple decades I used it.

    % grep font ~/.Xdefaults
    XTerm*VT100*font: -*-screen-medium-r-normal--14-*-*-*-m-70-iso8859-1

  • That's pretty interesting, and I can't stop getting amazed by all the things people develop on the internet. Not so long ago, I decided to come up with something as well, and thanks to beter live - beter [beter.co], it wasn't problematic for me to develop a pretty good gambling platform and make a living that way.

Living on Earth may be expensive, but it includes an annual free trip around the Sun.

Working...