Skip to content

Commit

Permalink
fix: Replace font files for OG images
Browse files Browse the repository at this point in the history
  • Loading branch information
simonknittel committed Mar 9, 2024
1 parent b41bdab commit d1e8dee
Show file tree
Hide file tree
Showing 25 changed files with 21 additions and 190 deletions.
8 changes: 6 additions & 2 deletions app/src/app/(site)/blog/opengraph-image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,19 @@ export const size = {
};

export const contentType = "image/png";
export const runtime = "edge";

export default async function Image() {
const interBlack = fetch(
new URL("../../../assets/Inter/Inter-Black.ttf", import.meta.url),
new URL(
"../../../assets/webfontkit-20240309-023449/inter-black-webfont.ttf",
import.meta.url,
),
).then((res) => res.arrayBuffer());

const merriweatherBlack = fetch(
new URL(
"../../../assets/Merriweather/Merriweather-Black.ttf",
"../../../assets/webfontkit-20240309-022110/merriweather-black-webfont.ttf",
import.meta.url,
),
).then((res) => res.arrayBuffer());
Expand Down
7 changes: 5 additions & 2 deletions app/src/app/(site)/blog/post/[slug]/opengraph-image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,15 @@ export default async function Image({ params }: Props) {
if (!post) notFound();

const interBlack = fetch(
new URL("../../../../../assets/Inter/Inter-Black.ttf", import.meta.url),
new URL(
"../../../../../assets/webfontkit-20240309-023449/inter-black-webfont.ttf",
import.meta.url,
),
).then((res) => res.arrayBuffer());

const merriweatherBlack = fetch(
new URL(
"../../../../../assets/Merriweather/Merriweather-Black.ttf",
"../../../../../assets/webfontkit-20240309-022110/merriweather-black-webfont.ttf",
import.meta.url,
),
).then((res) => res.arrayBuffer());
Expand Down
Binary file removed app/src/assets/Inter/Inter-Black.ttf
Binary file not shown.
Binary file removed app/src/assets/Inter/Inter-Bold.ttf
Binary file not shown.
Binary file removed app/src/assets/Inter/Inter-ExtraBold.ttf
Binary file not shown.
Binary file removed app/src/assets/Inter/Inter-ExtraLight.ttf
Binary file not shown.
Binary file removed app/src/assets/Inter/Inter-Light.ttf
Binary file not shown.
Binary file removed app/src/assets/Inter/Inter-Medium.ttf
Binary file not shown.
Binary file removed app/src/assets/Inter/Inter-Regular.ttf
Binary file not shown.
Binary file removed app/src/assets/Inter/Inter-SemiBold.ttf
Binary file not shown.
Binary file removed app/src/assets/Inter/Inter-Thin.ttf
Binary file not shown.
93 changes: 0 additions & 93 deletions app/src/assets/Inter/OFL.txt

This file was deleted.

Binary file removed app/src/assets/Merriweather/Merriweather-Black.ttf
Binary file not shown.
Binary file not shown.
Binary file removed app/src/assets/Merriweather/Merriweather-Bold.ttf
Binary file not shown.
Binary file not shown.
Binary file removed app/src/assets/Merriweather/Merriweather-Italic.ttf
Binary file not shown.
Binary file removed app/src/assets/Merriweather/Merriweather-Light.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
93 changes: 0 additions & 93 deletions app/src/assets/Merriweather/OFL.txt

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Font Squirrel Font-face Generator Configuration File
# Upload this file to the generator to recreate the settings
# you used to create these fonts.

{"mode":"expert","formats":["ttf"],"tt_instructor":"keep","fix_vertical_metrics":"N","metrics_ascent":"","metrics_descent":"","metrics_linegap":"","fallback":"none","fallback_custom":"100","options_subset":"advanced","subset_range":["lowercase","uppercase","numbers","punctuation","english"],"subset_custom":"","subset_custom_range":"","subset_ot_features_list":"","css_stylesheet":"stylesheet.css","filename_suffix":"-webfont","spacing_adjustment":"0","rememberme":"Y"}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Font Squirrel Font-face Generator Configuration File
# Upload this file to the generator to recreate the settings
# you used to create these fonts.

{"mode":"expert","formats":["ttf"],"tt_instructor":"keep","fix_vertical_metrics":"N","metrics_ascent":"","metrics_descent":"","metrics_linegap":"","fallback":"none","fallback_custom":"100","options_subset":"advanced","subset_range":["lowercase","uppercase","numbers","punctuation","english"],"subset_custom":"","subset_custom_range":"","subset_ot_features_list":"","css_stylesheet":"stylesheet.css","filename_suffix":"-webfont","spacing_adjustment":"0","rememberme":"Y"}
Binary file not shown.

0 comments on commit d1e8dee

Please sign in to comment.