@beetpx/beetpx
Version:
A TypeScript framework for pixel art browser games.
537 lines • 7.78 kB
JavaScript
import { BpxPixels } from "../draw_api/Pixels";
export class BpxFontConfigSaint11Minimal4 {
ascent = 4;
descent = 0;
lineGap = 2;
mapGrapheme(grapheme) {
return grapheme.toLowerCase();
}
const pixels = BpxPixels.from(ascii);
return {
type: "pixels",
pixels: pixels,
advance: pixels.size.x + 1,
};
}
glyphs = new Map([
[
" ",
this.
----
----
----
----
`),
],
[
".",
this.
-
-
-
`),
],
[
":",
this.
-
-
`),
],
[
"!",
this.
-
`),
],
[
"?",
this.
-
--
-
-
`),
],
[
"'",
this.
-
-
-
`),
],
[
'"',
this.
---
---
---
`),
],
[
"*",
this.
-
---
`),
],
[
"/",
this.
--
-
-
`),
],
[
"+",
this.
---
-
-
`),
],
[
"-",
this.
---
---
---
`),
],
[
"0",
this.
-
-
`),
],
[
"1",
this.
-
-
-
`),
],
[
"2",
this.
-
`),
],
[
"3",
this.
-
--
`),
],
[
"4",
this.
--
`),
],
[
"5",
this.
--
`),
],
[
"6",
this.
-
-
`),
],
[
"7",
this.
--
-
`),
],
[
"8",
this.
-
-
`),
],
[
"9",
this.
--
`),
],
[
"%",
this.
--
-
`),
],
[
"$",
this.
-
-
`),
],
[
"(",
this.
-
-
`),
],
[
")",
this.
-
-
`),
],
[
"[",
this.
`),
],
[
"]",
this.
-
-
`),
],
[
"{",
this.
-
-
`),
],
[
"}",
this.
`),
],
[
"<",
this.
---
-
-
`),
],
[
">",
this.
--
---
`),
],
[
"a",
this.
`),
],
[
"b",
this.
`),
],
[
"c",
this.
-
-
`),
],
[
"d",
this.
`),
],
[
"e",
this.
`),
],
[
"f",
this.
`),
],
[
"g",
this.
-
-
`),
],
[
"h",
this.
`),
],
[
"i",
this.
`),
],
[
"j",
this.
-
-
`),
],
[
"k",
this.
`),
],
[
"l",
this.
`),
],
[
"m",
this.
`),
],
[
"n",
this.
`),
],
[
"o",
this.
-
`),
],
[
"p",
this.
`),
],
[
"q",
this.
-
-
`),
],
[
"r",
this.
`),
],
[
"s",
this.
-
--
`),
],
[
"t",
this.
-
-
-
`),
],
[
"u",
this.
`),
],
[
"v",
this.
-
`),
],
[
"w",
this.
`),
],
[
"x",
this.
-
`),
],
[
"y",
this.
-
-
`),
],
[
"z",
this.
-
`),
],
]);
}
//# sourceMappingURL=FontConfigSaint11Minimal4.js.map