1.1.0 • Published 4 years ago

romfont v1.1.0

Weekly downloads
1
License
AGPL-3.0-only
Repository
github
Last release
4 years ago

ROMFont components

WebComponents to render ROM fonts extracted from BIOS from https://github.com/spacerace/romfont. The generated PNG maps are used as background images for each converted font.

Each component renders the text transparently for aaccessibility and to allow text selection. A default slot is included to render any alternate content for user agents with JavaScript disabled.

Usage

Import one of the font family components and render the component with a text property representing the text you'd like to render. Add an optional child element for alternate content for non-JS agents.

For an example of importing a single font, see single_font.html.

<romfont-ibm-vga-8x8 text="Hi there. This is the actual text that will appear!">
  <p>This is the fallback content.</p>
</romfont-ibm-vga-8x8>
1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.1-alpha.1

4 years ago