Skip to content

Commit

Permalink
Try it before you buy it
Browse files Browse the repository at this point in the history
  • Loading branch information
brookslybrand committed Jan 19, 2024
1 parent d3fad19 commit 5ccdcdf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Binary file added app/routes/img.$slug/inter-roman-latin-var.woff
Binary file not shown.
9 changes: 8 additions & 1 deletion app/routes/img.$slug/utils.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,14 @@ export function getDataFromParams(

export async function getFont(fontPath: string) {
try {
let res = await fetch(fontPath);
// let asdf = await fsp.readFile(interFilePath);

// console.log("reading from file system");
// console.log(asdf);

const url = new URL("./inter-roman-latin-var.woff", import.meta.url).href;

let res = await fetch(url);
return res.arrayBuffer();
} catch (err) {
console.log(err);
Expand Down

0 comments on commit 5ccdcdf

Please sign in to comment.