romfont
v1.1.0
Published
ROM font WebComponents
Downloads
4
Maintainers
Readme
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>