Skip to content

Commit

Permalink
add fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
seadfeng committed Nov 1, 2024
1 parent 2dbe5b7 commit 233bfab
Show file tree
Hide file tree
Showing 2 changed files with 318 additions and 6 deletions.
118 changes: 115 additions & 3 deletions src/fonts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ export const fonts = {
bamumLetterlike: "\"\\ !#$%&'()*+,-./0123456789:;<=>?@𖧥𖧳𖥐𖦧𖠢𖨨ꛪ𖦙𖥣𖨗𖢉ꛚ𖢑ꛘ𖥕𖡮𖥨𖦪𖨚𖢧ꚶ𖡥𖧉𖧦ꚲ𖣩[]^_`𖧥𖧳𖥐𖦧𖠢𖨨ꛪ𖦙𖥣𖨗𖢉ꛚ𖢑ꛘ𖥕𖡮𖥨𖦪𖨚𖢧ꚶ𖡥𖧉𖧦ꚲ𖣩{|}~",
smallCherokeeLetterlike: "\"\\ !#$%&'()*+,-./0123456789:;<=>?@ꭺᏼꮯꭰꭼꮁᏽꮋꮖꭻꮶꮮꮇꮑꮎꮲꭴꭱꮪꭲꮼꮩꮤꮂꭹꮓ[]^_`ꭺᏼꮯꭰꭼꮁᏽꮋꮖꭻꮶꮮꮇꮑꮎꮲꭴꭱꮪꭲꮼꮩꮤꮂꭹꮓ{|}~",
canadianAboriginalLetterlike1: "\"\\ !#$%&'()*+,-./0123456789:;<=>?@ᗅᑲᐸᐅᗕᖴᘜᕼᓵᒍᖾᖶᗑᐱᗝᕈᑫᖇᔑᐪᑌᐯᗐ᙭ᖿᔨ[]^_`ᗅᑲᐸᐅᗕᖴᘜᕼᓵᒍᖾᖶᗑᐱᗝᕈᑫᖇᔑᐪᑌᐯᗐ᙭ᖿᔨ{|}~",
canadianAboriginalLetterlike2: "\"\\ !#$%&'()*+,-./0123456789:;<=>?@ᗩᗷᑕᗞᕮᒋᕋᖺᑊᒎᕙᘂᘻᘯᗜᑭᘝᖇᔕᘕᕞᕓᘺ᙮ᒉᓯ[]^_`ᗩᗷᑕᗞᕮᒋᕋᖺᑊᒎᕙᘂᘻᘯᗜᑭᘝᖇᔕᘕᕞᕓᘺ᙮ᒉᓯ{|}~"
canadianAboriginalLetterlike2: "\"\\ !#$%&'()*+,-./0123456789:;<=>?@ᗩᗷᑕᗞᕮᒋᕋᖺᑊᒎᕙᘂᘻᘯᗜᑭᘝᖇᔕᘕᕞᕓᘺ᙮ᒉᓯ[]^_`ᗩᗷᑕᗞᕮᒋᕋᖺᑊᒎᕙᘂᘻᘯᗜᑭᘝᖇᔕᘕᕞᕓᘺ᙮ᒉᓯ{|}~",
upperSquigglesAndHooks: "\"\\ !#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~",
lowerSquigglesAndHooks: "\"\\ !#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~",
}

type FontKey = keyof typeof fonts;
Expand All @@ -57,7 +59,8 @@ export const alternatingFontKeys = [
"alternatingItalicBold",
"alternatingCursiveScriptBold",
"alternatingFraktur",
"alternatingBold"
"alternatingBold",
"alternatingSquigglesAndHooks",
] as const;
export type AlternatingFontKey = typeof alternatingFontKeys[number];

Expand All @@ -75,7 +78,8 @@ export const alternatingFonts: Record<AlternatingFontKey, FontKey[]> = {
alternatingItalicBold: ["sansItalic", "sansBold"],
alternatingCursiveScriptBold: ["script", "boldScript"],
alternatingFraktur: ["boldFraktur", "fraktur"],
alternatingBold: ["sansBold", "serifBold"]
alternatingBold: ["sansBold", "serifBold"],
alternatingSquigglesAndHooks: ["upperSquigglesAndHooks", "lowerSquigglesAndHooks"]
}

export const RenameFonts: Partial<Record<AlternatingFontKey, string>> = {
Expand Down Expand Up @@ -1017,5 +1021,113 @@ export const superFonts = {
"Ş": "𝕾̧",
"ı": "ı",
"İ": "𝕴̇"
},
upperSquigglesAndHooks: {
"A": "Ả",
"B": "Ɓ",
"C": "Ć",
"D": "Ď",
"E": "Ế",
"F": "Ḟ",
"G": "Ɠ",
"H": "Ɦ",
"I": "Ỉ",
"J": "Ĵ",
"K": "Ƙ",
"L": "Ĺ",
"M": "Ḿ",
"N": "Ń",
"O": "Ơ",
"P": "Ꝕ",
"Q": "℺",
"R": "Ȑ",
"S": "Ś",
"T": "Ƭ",
"U": "Ư",
"V": "Ѵ",
"W": "Ⱳ",
"X": "X̂",
"Y": "Ƴ",
"Z": "Ž",
"a": "ả",
"b": "ɓ",
"c": "ƈ",
"d": "ɗ",
"e": "ẻ",
"f": "ḟ",
"g": "ɠ",
"h": "ɦ",
"i": "ỉ",
"j": "ĵ",
"k": "ƙ",
"l": "ꞎ",
"m": "ḿ",
"n": "ή",
"o": "ơ",
"p": "ƥ",
"q": "ʠ",
"r": "ɼ",
"s": "ś",
"t": "ť",
"u": "ư",
"v": "ⱱ",
"w": "ⱳ",
"x": "x̂",
"y": "ƴ",
"z": "ź"
},
lowerSquigglesAndHooks: {
"A": "Ą",
"B": "Ɓ",
"C": "Ç",
"D": "Ɗ",
"E": "Ę",
"F": "Ƒ",
"G": "Ģ",
"H": "Ɦ̡",
"I": "I̢",
"J": "𝐉",
"K": "Ķ",
"L": "L̡",
"M": "Ɱ",
"N": "Ɲ",
"O": "Ǫ",
"P": "Ƥ",
"Q": "Ꝗ",
"R": "Ɽ",
"S": "Ȿ",
"T": "Ʈ",
"U": "Ų",
"V": "Ṿ",
"W": "Ⱳ",
"X": "Ҳ",
"Y": "Ƴ",
"Z": "Ȥ",
"a": "ᶏ",
"b": "ᶀ",
"c": "ç",
"d": "ᶁ",
"e": "ᶒ",
"f": "ᶂ",
"g": "ᶃ",
"h": "ⱨ",
"i": "ᶖ",
"j": "ʝ",
"k": "ᶄ",
"l": "ᶅ",
"m": "ᶆ",
"n": "ᶇ",
"o": "ǫ",
"p": "ᶈ",
"q": "ɋ",
"r": "ᶉ",
"s": "ᶊ",
"t": "ƫ",
"u": "ᶙ",
"v": "ᶌ",
"w": "Щ",
"x": "ᶍ",
"y": "ƴ",
"z": "ᶎ"
}
}
206 changes: 203 additions & 3 deletions src/transforms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3947,6 +3947,200 @@ export const transforms = {
"}": "}",
"~": "~"
},
"upperSquigglesAndHooks": {
"0": "0",
"1": "1",
"2": "2",
"3": "3",
"4": "4",
"5": "5",
"6": "6",
"7": "7",
"8": "8",
"9": "9",
"\"": "\"",
"\\": "\\",
" ": " ",
"!": "!",
"#": "#",
"$": "$",
"%": "%",
"&": "&",
"'": "'",
"(": "(",
")": ")",
"*": "*",
"+": "+",
",": ",",
"-": "-",
".": ".",
"/": "/",
":": ":",
";": ";",
"<": "<",
"=": "=",
">": ">",
"?": "?",
"@": "@",
"A": "Ả",
"B": "Ɓ",
"C": "Ć",
"D": "Ď",
"E": "Ế",
"F": "Ḟ",
"G": "Ɠ",
"H": "Ɦ",
"I": "Ỉ",
"J": "Ĵ",
"K": "Ƙ",
"L": "Ĺ",
"M": "Ḿ",
"N": "Ń",
"O": "Ơ",
"P": "Ꝕ",
"Q": "℺",
"R": "Ȑ",
"S": "Ś",
"T": "Ƭ",
"U": "Ư",
"V": "Ѵ",
"W": "Ⱳ",
"X": "X̂",
"Y": "Ƴ",
"Z": "Ž",
"[": "[",
"]": "]",
"^": "^",
"_": "_",
"`": "`",
"a": "ả",
"b": "ɓ",
"c": "ƈ",
"d": "ɗ",
"e": "ẻ",
"f": "ḟ",
"g": "ɠ",
"h": "ɦ",
"i": "ỉ",
"j": "ĵ",
"k": "ƙ",
"l": "ꞎ",
"m": "ḿ",
"n": "ή",
"o": "ơ",
"p": "ƥ",
"q": "ʠ",
"r": "ɼ",
"s": "ś",
"t": "ť",
"u": "ư",
"v": "ⱱ",
"w": "ⱳ",
"x": "x̂",
"y": "ƴ",
"z": "ź",
"{": "{",
"|": "|",
"}": "}",
"~": "~"
},
"lowerSquigglesAndHooks": {
"0": "0",
"1": "1",
"2": "2",
"3": "3",
"4": "4",
"5": "5",
"6": "6",
"7": "7",
"8": "8",
"9": "9",
"\"": "\"",
"\\": "\\",
" ": " ",
"!": "!",
"#": "#",
"$": "$",
"%": "%",
"&": "&",
"'": "'",
"(": "(",
")": ")",
"*": "*",
"+": "+",
",": ",",
"-": "-",
".": ".",
"/": "/",
":": ":",
";": ";",
"<": "<",
"=": "=",
">": ">",
"?": "?",
"@": "@",
"A": "Ą",
"B": "Ɓ",
"C": "Ç",
"D": "Ɗ",
"E": "Ę",
"F": "Ƒ",
"G": "Ģ",
"H": "Ɦ̡",
"I": "I̢",
"J": "𝐉",
"K": "Ķ",
"L": "L̡",
"M": "Ɱ",
"N": "Ɲ",
"O": "Ǫ",
"P": "Ƥ",
"Q": "Ꝗ",
"R": "Ɽ",
"S": "Ȿ",
"T": "Ʈ",
"U": "Ų",
"V": "Ṿ",
"W": "Ⱳ",
"X": "Ҳ",
"Y": "Ƴ",
"Z": "Ȥ",
"[": "[",
"]": "]",
"^": "^",
"_": "_",
"`": "`",
"a": "ᶏ",
"b": "ᶀ",
"c": "ç",
"d": "ᶁ",
"e": "ᶒ",
"f": "ᶂ",
"g": "ᶃ",
"h": "ⱨ",
"i": "ᶖ",
"j": "ʝ",
"k": "ᶄ",
"l": "ᶅ",
"m": "ᶆ",
"n": "ᶇ",
"o": "ǫ",
"p": "ᶈ",
"q": "ɋ",
"r": "ᶉ",
"s": "ᶊ",
"t": "ƫ",
"u": "ᶙ",
"v": "ᶌ",
"w": "Щ",
"x": "ᶍ",
"y": "ƴ",
"z": "ᶎ",
"{": "{",
"|": "|",
"}": "}",
"~": "~"
},
"alternatingSerifBold": {},
"alternatingSansBold": {},
"alternatingBubble": {},
Expand All @@ -3960,7 +4154,8 @@ export const transforms = {
"alternatingItalicBold": {},
"alternatingCursiveScriptBold": {},
"alternatingFraktur": {},
"alternatingBold": {}
"alternatingBold": {},
"alternatingSquigglesAndHooks": {}
} as const;

export const fontKeys = [
Expand Down Expand Up @@ -3996,7 +4191,9 @@ export const fontKeys = [
"bamumLetterlike",
"smallCherokeeLetterlike",
"canadianAboriginalLetterlike1",
"canadianAboriginalLetterlike2"
"canadianAboriginalLetterlike2",
"upperSquigglesAndHooks",
"lowerSquigglesAndHooks"
] as const;

export type FontKey = typeof fontKeys[number] | AlternatingFontKey;
Expand Down Expand Up @@ -4035,6 +4232,8 @@ export const fonts: Record<FontKey, string> = {
"smallCherokeeLetterlike": "Small Cherokee Letterlike",
"canadianAboriginalLetterlike1": "Canadian Aboriginal Letterlike1",
"canadianAboriginalLetterlike2": "Canadian Aboriginal Letterlike2",
"upperSquigglesAndHooks": "Upper Squiggles And Hooks",
"lowerSquigglesAndHooks": "Lower Squiggles And Hooks",
"alternatingSerifBold": "Alternating Serif Bold",
"alternatingSansBold": "Alternating Sans Bold",
"alternatingBubble": "Alternating Bubble",
Expand All @@ -4048,5 +4247,6 @@ export const fonts: Record<FontKey, string> = {
"alternatingItalicBold": "Alternating Italic Bold",
"alternatingCursiveScriptBold": "Alternating Cursive Script Bold",
"alternatingFraktur": "Alternating Fraktur",
"alternatingBold": "Alternating Bold"
"alternatingBold": "Alternating Bold",
"alternatingSquigglesAndHooks": "Alternating Squiggles And Hooks"
};

0 comments on commit 233bfab

Please sign in to comment.