Skip to content

🎥 Make videos programmatically with React

move fontinfo

Jonny Burger32ae54a12fe4
diff --git a/packages/google-fonts/scripts/generate.ts b/packages/google-fonts/scripts/generate.ts
index f58f6c6533..03ccf509ff 100644
--- a/packages/google-fonts/scripts/generate.ts
+++ b/packages/google-fonts/scripts/generate.ts
@@ -5,9 +5,14 @@ import postcss from "postcss";
import prettier from "prettier";
import PQueue from "p-queue";
-import { getCssLink, unqoute, quote, removeWhitespace } from "./utils";
+import {
+ getCssLink,
+ unqoute,
+ quote,
+ removeWhitespace,
+ FontInfo,
+} from "./utils";
import { Font, googleFonts } from "./google-fonts";
-import { FontInfo } from "../src/base";
const OUTDIR = "./src";
const CSS_CACHE_DIR = "./.cache-css";
diff --git a/packages/google-fonts/scripts/utils.ts b/packages/google-fonts/scripts/utils.ts
index 25a2e3e1ed..f6367d3997 100644
--- a/packages/google-fonts/scripts/utils.ts
+++ b/packages/google-fonts/scripts/utils.ts
@@ -1,5 +1,14 @@
import { Font } from "./google-fonts";
+export type FontInfo = {
+ fontFamily: string;
+ importName: string;
+ version: string;
+ url: string;
+ unicodeRanges: Record<string, string>;
+ fonts: Record<string, Record<string, Record<string, string>>>;
+};
+
export const unqoute = (str: string) =>
str.replace(/^['"]/g, "").replace(/['"]$/g, "");