fcambus / spleen

Monospaced bitmap fonts
https://www.cambus.net/spleen-monospaced-bitmap-fonts/
BSD 2-Clause "Simplified" License
1.02k stars 33 forks source link

Is it possible to build bitmaps for Windows? #23

Closed imshvc closed 1 year ago

imshvc commented 1 year ago

Windows can use .FON font files in applications that support it, like CMD, Notepad++, etc.

While using .OTF fonts is possible and works fine, in certain programs such as CMD, Notepad++, Visual Studio Code, etc these fonts appear blurry because of anti-aliasing, and because this font is not vector based, having it stored in a vector format kind of defeats the purpose of it being a bitmap.

I may eventually look into how to achieve this but maybe someone here knows a thing or two regarding this and how to achieve it.


I've provided some comparisons below, please open the images in a new tab to see the full size.

c:/windows/fonts/vgaoem.fon image

spleen-16x32.otf image

fcambus commented 1 year ago

Apparently FontForge has support for generating .FON files. If the generated files work as intended I think it would be valuable to add them in releases, yes.

I have generated the following files, but I don't have access to a Windows machine to test them:

https://www.cambus.net/tmp/spleen-5x8.fon https://www.cambus.net/tmp/spleen-6x12.fon https://www.cambus.net/tmp/spleen-8x16.fon https://www.cambus.net/tmp/spleen-12x24.fon https://www.cambus.net/tmp/spleen-16x32.fon https://www.cambus.net/tmp/spleen-32x64.fon

Could you try them and report back? Thanks!

imshvc commented 1 year ago

I can confirm that the font works as expected. You should merge it into the next release. Thanks!

image

fcambus commented 1 year ago

I pushed 331c577371698c746d597c3618cec12cc3da590d which adds a new 'fon' target to generate the files. I will likely publish a new release this week.

Thanks for suggesting this and testing the files!

fcambus commented 1 year ago

Spleen 1.9.3 has been released and contains the FON files.