IdreesInc / Monocraft

A monospaced programming font inspired by the Minecraft typeface
https://idreesinc.com
SIL Open Font License 1.1
8.02k stars 115 forks source link

Support for different styles (Italics, Bold etc) #127

Open LevitatingBusinessMan opened 1 year ago

LevitatingBusinessMan commented 1 year ago

Could Bold, Italics, Underlined and Strikethrough be added? From what I understand these styles are currently not included.

Ciubix8513 commented 1 year ago

Adding strikethrough and underlined would be relatively easy, I think. Bold may be achieved by increasing pixel size, tho I'm not sure it will give the desired result. Fontforge seems to have inbuilt italics generation, tho i'm not sure if that would create the proper result

Dheatly23 commented 1 year ago

Normally, font renderers are able to "bold" and "italic" fonts automatically. But sometimes it can go bad.

Italicizing is quite easy, just slant the grid by let's say 15 degrees. Bold can be done by expanding the lines by small amount. Underline and strikethrough is already automatic, since it's just a simple line.

As far as my research goes, Fontforge can't pack all variants into a single file. So there will be a separate file for italic and bold variant.

LevitatingBusinessMan commented 1 year ago

Normally, font renderers are able to "bold" and "italic" fonts automatically. But sometimes it can go bad.

From my testing Alacritty isn't able to do this. Could be a limitation of Alacritty, I can look into that.

Dheatly23 commented 1 year ago

I have tested some ideas and it might work. It's on my fork at branch new-ligatures. I maybe put a proper PR later.

SirMishaa commented 10 months ago

As far as I'm concerned, the rendering is already good, but it would be much better if the text were a little more bold.

If anyone has solutions for this, I'd be interested.