google fonts preview
2022-12-03
البرنامج النصي لإنشاء صور معاينة لخطوط Google.
تتوفر صور المعاينة التي تم إنشاؤها للتنزيل في قسم الإصدار. أو اتبع الإرشادات أدناه لإنشاء صور المعاينة بنفسك.

استنساخ هذا المستودع وقم بتشغيل الأوامر التالية:
# 1. Install dependencies
npm install
# 2. Run the script to generate the preview images
npm run generate سيؤدي ذلك إلى جلب جميع الخطوط وإنشاء صور معاينة لها جميعًا. هذا سيستغرق بعض الوقت (حوالي 25 دقيقة على الجهاز الخاص بي). سيتم حفظ الصور في دليل /output/previews .
تحتاج إلى الحصول على Node.js V16 أو تثبيت الأحدث.
يمكنك تخصيص المعاينات عن طريق تحرير ملف config.json :
{
// Text of the preview images.
// If empty, the font name will be used.
previewText : "" ,
// The text color of the preview text.
textColor : "#1b1b18" ,
// The font size of the preview text.
// Has to be a valid CSS font-size value.
fontSize : "48px" ,
// The format and file extension of the preview images.
// Either "png" or "jpeg".
format : "png" ,
// The quality of the preview images (only used for JPEG).
quality : 100 ,
// If the background should be transparent (only used for PNG).
transparent : true ,
} يتم تضمين خطوط Sans-Serif ، Serif ، العرض ، خط اليد وخطوط Monospace. يتم استبعاد خطوط الرمز.