Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chadtech/hfnss
Monospace Pixel Font data in Elm
https://github.com/chadtech/hfnss
elm font pixel
Last synced: 8 days ago
JSON representation
Monospace Pixel Font data in Elm
- Host: GitHub
- URL: https://github.com/chadtech/hfnss
- Owner: Chadtech
- Created: 2017-10-06T17:00:32.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-10T03:40:39.000Z (about 7 years ago)
- Last Synced: 2024-11-06T04:40:58.608Z (about 2 months ago)
- Topics: elm, font, pixel
- Language: Elm
- Homepage:
- Size: 38.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Hfnss
Hfnss is my standard font that I made and use everywhere. Its a pixel font, so its not meant to be used with any antialiasing I also have the font as 94 11x19 png files for every character. I needed to use my font on an HTML canvas, but my trouble was that it was getting antialiased. My work around is to draw each pixel of each character manually. To do that, I needed lists of each pixel. Thats where this repo comes in. This repo reads all the letters in `./letters`, and turns them into `List (List Pixel)` where each `List Pixel` is a row of pixels, and each `Pixel` is gray or black.
## Quick start
```
npm install
coffee toElm.coffee
elm-format ./Hfnss.elm --yes
```And `Hfnss.elm` is now an Elm module with every letter as an Elm function.