chore(rehber): şema fontu lisanslı Sweet Cucumber yerine OFL Patrick Hand
Sweet Cucumber Mocktail yalnız kişisel kullanım için ücretsizdi; site ticari. Patrick Hand (SIL OFL) next/font/google ile gelir, Türkçe glifler latin-ext'te. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
@@ -7,14 +7,14 @@
|
|||||||
// sayfa paketine girmez.
|
// sayfa paketine girmez.
|
||||||
|
|
||||||
import { useEffect, useId, useRef, useState } from "react";
|
import { useEffect, useId, useRef, useState } from "react";
|
||||||
import localFont from "next/font/local";
|
import { Patrick_Hand } from "next/font/google";
|
||||||
|
|
||||||
// Şemanın "el çizimi" görünümüne uyan el yazısı fontu (Sweet Cucumber
|
// Şemanın "el çizimi" görünümüne uyan el yazısı fontu. Patrick Hand, SIL Open
|
||||||
// Mocktail, Misti's Fonts). Türkçe glifler doğrulandı (ş, ğ, ı, İ… hepsi
|
// Font License ile ticari kullanıma açık; Türkçe glifler (ş, ğ, ı, İ…)
|
||||||
// var). DİKKAT: lisans "kişisel kullanım için ücretsiz" — canlıya çıkmadan
|
// latin-ext alt kümesinde.
|
||||||
// mistifonts.com/sweet-cucumber-mocktail adresinden ticari lisans alınmalı.
|
const elYazisi = Patrick_Hand({
|
||||||
const elYazisi = localFont({
|
weight: "400",
|
||||||
src: "../../../fonts/SweetCucumberMocktail.woff2",
|
subsets: ["latin", "latin-ext"],
|
||||||
display: "swap",
|
display: "swap",
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -72,7 +72,7 @@ export function ElCizimiSema({
|
|||||||
lineColor: "#94a3b8",
|
lineColor: "#94a3b8",
|
||||||
edgeLabelBackground: "#ffffff",
|
edgeLabelBackground: "#ffffff",
|
||||||
fontFamily: `${elYazisi.style.fontFamily}, cursive`,
|
fontFamily: `${elYazisi.style.fontFamily}, cursive`,
|
||||||
fontSize: "17px", // script fontun x-yüksekliği düşük; okunurluk için büyütüldü
|
fontSize: "16px",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
const sonuc = await mermaid.render(semaId, tanim);
|
const sonuc = await mermaid.render(semaId, tanim);
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user