Monocraft icon indicating copy to clipboard operation
Monocraft copied to clipboard

Support for different styles (Italics, Bold etc)

Open LevitatingBusinessMan opened this issue 2 years ago • 5 comments

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

LevitatingBusinessMan avatar Jun 14 '23 18:06 LevitatingBusinessMan

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

Ciubix8513 avatar Jun 15 '23 14:06 Ciubix8513

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.

Dheatly23 avatar Jun 16 '23 16:06 Dheatly23

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.

LevitatingBusinessMan avatar Jun 18 '23 20:06 LevitatingBusinessMan

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.

Dheatly23 avatar Jun 19 '23 06:06 Dheatly23

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.

SirMishaa avatar Aug 23 '23 05:08 SirMishaa

Done as of https://github.com/IdreesInc/Monocraft/releases/tag/v4.0!

IdreesInc avatar Aug 10 '24 21:08 IdreesInc

glad to see this one closed thanks @IdreesInc

I unironically really like Monocraft. I like it far more than Scientifica. I recently configured Firefox to show any Monospace or Serif fonts as Monocraft lol. I also use it as my system font via GTK.

LevitatingBusinessMan avatar Sep 02 '24 00:09 LevitatingBusinessMan