Skip to content

Commit

Permalink
fix transforms
Browse files Browse the repository at this point in the history
  • Loading branch information
seadfeng committed Oct 29, 2024
1 parent 3162554 commit 856514c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
6 changes: 5 additions & 1 deletion bin/transforms.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from 'fs';
import path from 'path';
import { alternatingFontKeys, fonts, superFonts } from "../src/fonts";
import { alternatingFontKeys, alternatingFonts, fonts, superFonts } from "../src/fonts";
import { FontKey } from "../src/transforms";

const outputFile = path.join(process.cwd(), 'src', 'transforms.ts');
Expand All @@ -27,6 +27,10 @@ Object.keys(fonts).forEach((fontKey) => {
// }
});

Object.keys(alternatingFonts).forEach((fontKey) => {
transforms[fontKey] = {};
});

const fontKeys = Object.keys(fonts).filter(key => key);

function toReadableFontName(key: string): string {
Expand Down
14 changes: 13 additions & 1 deletion src/transforms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3849,7 +3849,19 @@ export const transforms = {
"|": "|",
"}": "}",
"~": "~"
}
},
"alternatingSerifBold": {},
"alternatingSansBold": {},
"alternatingBubble": {},
"alternatingSquared": {},
"alternatingBoldScript": {},
"alternatingBoldFraktur": {},
"alternatingSansBoldItalic": {},
"alternatingSerifBoldItalic": {},
"alternatingItalicBold": {},
"alternatingCursiveScriptBold": {},
"alternatingFraktur": {},
"alternatingBold": {}
} as const;

export const fontKeys = [
Expand Down

0 comments on commit 856514c

Please sign in to comment.