项目作者: akiroz

项目描述 :
Binary font rendering for embedded OLED screens
高级语言: JavaScript
项目地址: git://github.com/akiroz/monofont.git
创建时间: 2020-02-29T10:23:32Z
项目社区:https://github.com/akiroz/monofont

开源协议:

下载


monofont

Binary font rendering for embedded OLED screens

Usage

Download the bundled monofont.html from the releases
and open locally in Chrome or Firefox.

After rendering, 2 files are generated:

  • font.index.bin: (Int32Array) Index for mapping Unicode code-points to offsets in the data file.
    A value of -1 indicates the char data for that code-point does not exist in the data file.
    Byte width of each character is simply width (px) * height (bytes).
  • font.data.bin: (UInt8Array) Bitmap image data for each character in LCD/OLED byte order.
    (Ref: https://learn.sparkfun.com/tutorials/microview-hookup-guide/oled-memory-map)