From 2e4ed02191c8034fe8268afe369c774dcd042d0f Mon Sep 17 00:00:00 2001 From: Hare Date: Mon, 21 Oct 2024 23:27:58 +0900 Subject: [PATCH] more fonts --- src/fontlist.ts | 8 ++++++++ src/fonts/carian.ts | 34 ++++++++++++++++++++++++++++++++++ src/fonts/cherokee.ts | 32 ++++++++++++++++++++++++++++++++ src/fonts/doublestruck.ts | 19 +++++++++++++++++++ src/fonts/runic.ts | 35 +++++++++++++++++++++++++++++++++++ 5 files changed, 128 insertions(+) create mode 100644 src/fonts/carian.ts create mode 100644 src/fonts/cherokee.ts create mode 100644 src/fonts/doublestruck.ts create mode 100644 src/fonts/runic.ts diff --git a/src/fontlist.ts b/src/fontlist.ts index abb45ef..4998533 100644 --- a/src/fontlist.ts +++ b/src/fontlist.ts @@ -9,6 +9,10 @@ import sansserif_bold from "./fonts/sansserif_bold.ts"; import sansserif_italic from "./fonts/sansserif_italic.ts"; import sansserif_bolditalic from "./fonts/sansserif_bolditalic.ts"; import wide from "./fonts/wide.ts"; +import carian from "./fonts/carian.ts"; +import doublestruck from "./fonts/doublestruck.ts"; +import runic from "./fonts/runic.ts"; +import cherokee from "./fonts/cherokee.ts"; const fontlist: { label: string; value: string; font: Font }[] = [ { label: 'Monospace', value: 'monospace', font: monoscape }, @@ -21,6 +25,10 @@ const fontlist: { label: string; value: string; font: Font }[] = [ { label: 'Sans-serif Italic', value: 'sansserifitalic', font: sansserif_italic }, { label: 'Sans-serif Bold Italic', value: 'sansserifbolditalic', font: sansserif_bolditalic }, { label: 'Wide', value: 'wide', font: wide }, + { label: 'Carian', value: 'carian', font: carian }, + { label: 'Doublestruck', value: 'doublestruck', font: doublestruck }, + { label: 'Runic', value: 'runic', font: runic }, + { label: 'Cherokee', value: 'cherokee', font: cherokee }, ]; export default fontlist; diff --git a/src/fonts/carian.ts b/src/fonts/carian.ts new file mode 100644 index 0000000..068d959 --- /dev/null +++ b/src/fonts/carian.ts @@ -0,0 +1,34 @@ +import { Font } from "../font.ts" + +export default new Font({ + 'A-Z|a-z': [ + 0x102A0, + 0x102A1, + 0x102A2, + 0x102A3, + 0x102A4, + 0x102A5, + 0x102C9, + 0x102CF, + 0x102A6, + 0x102AC, + 0x1028B, + 0x102A9, + 0x102B0, + 0x102AA, + 0x102AB, + 0x10295, + 0x102AD, + 0x102AF, + 0x10296, + 0x10297, + 0x102CD, + 0x10299, + 0x10283, + 0x102B4, + 0x102B2, + 0x102C0, + ] +}) + +//๐Š ๐Šก๐Šข๐Šฃ๐Šค๐Šฅ๐‹‰๐‹๐Šฆ๐Šฌ๐Š‹๐Šฉ๐Šฐ๐Šช๐Šซ๐Š•๐Šญ๐Šฏ๐Š–๐Š—๐‹๐Š™๐Šƒ๐Šด๐Šฒ๐‹€ \ No newline at end of file diff --git a/src/fonts/cherokee.ts b/src/fonts/cherokee.ts new file mode 100644 index 0000000..1b5bbeb --- /dev/null +++ b/src/fonts/cherokee.ts @@ -0,0 +1,32 @@ +import { Font } from "../font.ts" + +export default new Font({ + 'A-Z|a-z': [ + 0xA2EC, + 0xA0F3, + 0xA49D, + 0xA050, + 0xA3C2, + 0xA2B0, + 0xA34C, + 0xA0EC, + 0xA024, + 0xA3A4, + 0xA018, + 0xA492, + 0xA05D, + 0xA09A, + 0xA1CE, + 0xA383, + 0xA2E0, + 0xA2EA, + 0xA31A, + 0xA4C4, + 0xA308, + 0xA4A6, + 0xA150, + 0xA1D3, + 0xA329, + 0xA4B1, + ] +}) diff --git a/src/fonts/doublestruck.ts b/src/fonts/doublestruck.ts new file mode 100644 index 0000000..3b15444 --- /dev/null +++ b/src/fonts/doublestruck.ts @@ -0,0 +1,19 @@ +import { Font } from "../font.ts" + +export default new Font({ + 'A-Z': 0x1D538, + 'a-z': 0x1D538 + 26, + '0-9': 0x1D7D8, + 'C': 0x2102, + 'H': 0x210D, + 'N': 0x2115, + 'P': 0x2119, + 'Q': 0x211A, + 'R': 0x211D, + 'Z': 0x2124, + 'ฮ“': 0x213e, + 'ฮณ': 0x213d, + 'ฮ ': 0x213f, + 'ฯ€': 0x213c, + 'ฮฃ': 0x2140, +}) \ No newline at end of file diff --git a/src/fonts/runic.ts b/src/fonts/runic.ts new file mode 100644 index 0000000..0ca8feb --- /dev/null +++ b/src/fonts/runic.ts @@ -0,0 +1,35 @@ +import { Font } from "../font.ts" + +export default new Font({ + 'A-Z|a-z': [ + 0x16A8, + 0x16D2, + 0x16B3, + 0x16DE, + 0x16D6, + 0x16A0, + 0x16B7, + 0x16B9, + 0x16C1, + 0x16C4, + 0x16B4, + 0x16DA, + 0x16D7, + 0x16BE, + 0x16A9, + 0x16C8, + 0x16B4, + 0x16B1, + 0x16CB, + 0x16CF, + 0x16A2, + 0x16A3, + 0x16BB, + 0x16E3, + 0x16A5, + 0x16C9, + ] +}) + + +// แšจแ›’แšณแ›žแ›–แš แšทแšนแ›แ›„แšดแ›šแ›—แšพแšฉแ›ˆแšดแšฑแ›‹แ›แšขแšฃแšปแ›ฃแšฅแ›‰ \ No newline at end of file