https://github.com/niklauslee/simple-fonts
Simple bitmap fonts for Kaluma
https://github.com/niklauslee/simple-fonts
kaluma
Last synced: 2 months ago
JSON representation
Simple bitmap fonts for Kaluma
- Host: GitHub
- URL: https://github.com/niklauslee/simple-fonts
- Owner: niklauslee
- License: mit
- Created: 2022-02-13T02:51:44.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-16T02:11:28.000Z (over 3 years ago)
- Last Synced: 2025-01-21T17:30:40.290Z (4 months ago)
- Topics: kaluma
- Language: JavaScript
- Homepage:
- Size: 309 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple Fonts for Kaluma
This module includes several bitmap fonts for [Kaluma](https://kalumajs.org) as below:
- `minimal` : A minimal font (3x5 pixels).
- `leros` : A monotype font (5x10 pixels).
- `yamaha` : A monotype font (6x11 pixels).
- `lee-sans` : A variable-width font (10x10 pixels).## Install
```sh
npm i https://github.com/niklauslee/simple-fonts
```## Usage
```js
var font = require('simple-fonts/minimal');
// var font = require('simple-fonts/leros');
// var font = require('simple-fonts/yamaha');
// var font = require('simple-fonts/lee-sans');// get graphic context 'gc' from a driver (e.g. 'ssd1306')
gc.setFont(font);
gc.drawText(0, 0, "LOREM IPSUM DOLOR SIT AMET...");
gc.display();
```
## Glyphs__minimal__

__leros__

__yamaha__

__lee-sans__

## License
[MIT](LICENSE)