mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +08:00
feat: update post OG image font to Noto Serif SC
This commit is contained in:
@@ -27,7 +27,7 @@ export const GET: APIRoute = async ({ props, url }) => {
|
|||||||
return new Response(null, { status: 404, statusText: "Not found" });
|
return new Response(null, { status: 404, statusText: "Not found" });
|
||||||
}
|
}
|
||||||
|
|
||||||
const fonts = fontData["--font-nunito"];
|
const fonts = fontData["--font-noto-serif-sc"];
|
||||||
const regularFontPath = getFontPathByWeight(fonts, 400);
|
const regularFontPath = getFontPathByWeight(fonts, 400);
|
||||||
const boldFontPath = getFontPathByWeight(fonts, 700);
|
const boldFontPath = getFontPathByWeight(fonts, 700);
|
||||||
|
|
||||||
@@ -55,7 +55,7 @@ export const GET: APIRoute = async ({ props, url }) => {
|
|||||||
display: "flex",
|
display: "flex",
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
justifyContent: "center",
|
justifyContent: "center",
|
||||||
fontFamily: "Nunito",
|
fontFamily: "Noto Serif SC",
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
@@ -174,13 +174,13 @@ export const GET: APIRoute = async ({ props, url }) => {
|
|||||||
embedFont: true,
|
embedFont: true,
|
||||||
fonts: [
|
fonts: [
|
||||||
{
|
{
|
||||||
name: "Nunito",
|
name: "Noto Serif SC",
|
||||||
data: regularData,
|
data: regularData,
|
||||||
weight: 400,
|
weight: 400,
|
||||||
style: "normal",
|
style: "normal",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Nunito",
|
name: "Noto Serif SC",
|
||||||
data: boldData,
|
data: boldData,
|
||||||
weight: 700,
|
weight: 700,
|
||||||
style: "normal",
|
style: "normal",
|
||||||
|
|||||||
Reference in New Issue
Block a user