0.0.2 • Published 6 months ago

astro-doom-text v0.0.2

Weekly downloads
-
License
-
Repository
-
Last release
6 months ago

Doom Text Astro component

This Astro integration provides a DoomText component for Astro which creates text using fonts from the classic video game Doom.

Installation

npm install astro-doom-text

Usage

See the demo page for more examples.

---
import { DoomText } from 'astro-doom-text';
---
<DoomText text="Hello World"/>

Props

The DoomText component allows these custom properties:

interface Props {
	text: string;
	scale?: number;
	font?: Fonts;
}

The available fonts are:

export type Fonts =
    'doom-small' |
    'doom-bigupper' |
    'doom-nightmare' |
    'doom-bigfont' |
    'heretic-small' |
    'heretic-menu' |
    'zdoom-console' |
    'dn3d-small' |
    'dn3d-big' |
    'dn3d-atomic';

Contributing

You're welcome to submit an issue or PR!

License

The source code in the repository is licensed under either of

at your option.

I extracted the fonts from Eevee's Doom Text generator.

Most of the included fonts are commercial works extracted from commercial products, and I do not have permission to use them beyond the general air of quietly-tolerated remix culture in the Doom community and the fact that vanilla Doom requires a level graphic. C'est la vie.

0.0.2

6 months ago

0.0.1

6 months ago