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:
bilalgursen
2026-09-21 16:00:17 +03:00
parent d79758adc0
commit 0400aa5d77
2 changed files with 8 additions and 8 deletions

View File

@@ -7,14 +7,14 @@
// sayfa paketine girmez.
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
// Mocktail, Misti's Fonts). Türkçe glifler doğrulandı (ş, ğ, ı, İ… hepsi
// var). DİKKAT: lisans "kişisel kullanım için ücretsiz" — canlıya çıkmadan
// mistifonts.com/sweet-cucumber-mocktail adresinden ticari lisans alınmalı.
const elYazisi = localFont({
src: "../../../fonts/SweetCucumberMocktail.woff2",
// Şemanın "el çizimi" görünümüne uyan el yazısı fontu. Patrick Hand, SIL Open
// Font License ile ticari kullanıma açık; Türkçe glifler (ş, ğ, ı, İ…)
// latin-ext alt kümesinde.
const elYazisi = Patrick_Hand({
weight: "400",
subsets: ["latin", "latin-ext"],
display: "swap",
});
@@ -72,7 +72,7 @@ export function ElCizimiSema({
lineColor: "#94a3b8",
edgeLabelBackground: "#ffffff",
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);