From 36c15d0f8d2c427850c76a336a956b4a3fa49cef Mon Sep 17 00:00:00 2001 From: stratumadev Date: Wed, 1 Oct 2025 22:08:06 +0200 Subject: [PATCH] added new ASS fonts and new CCC fix fonts --- crunchy.ts | 15 +++++++++++++++ modules/module.fontsData.ts | 3 +++ 2 files changed, 18 insertions(+) diff --git a/crunchy.ts b/crunchy.ts index db74da1..53096a5 100644 --- a/crunchy.ts +++ b/crunchy.ts @@ -2687,6 +2687,21 @@ export default class Crunchy implements ServiceClass { return `Style: ${name},Arial,20,&H00FFFFFF,&H0000FFFF,&H00000000,&H7F404040,-1,0,0,0,100,100,0,0,1,2,1,${align},0020,0020,0022,0`; }); break; + case 'hi-IN': + sBody = sBody.replace(/^Style:\s*([^,]+),.*?,(\d+),0,0,0,0$/gm, (match, name, align) => { + return `Style: ${name},Mangal,24,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,2,1,${align},0010,0010,0018,0`; + }); + break; + case 'ta-IN': + sBody = sBody.replace(/^Style:\s*([^,]+),.*?,(\d+),0,0,0,0$/gm, (match, name, align) => { + return `Style: ${name},Noto Sans Tamil,24,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,2,1,${align},0010,0010,0018,0`; + }); + break; + case 'te-IN': + sBody = sBody.replace(/^Style:\s*([^,]+),.*?,(\d+),0,0,0,0$/gm, (match, name, align) => { + return `Style: ${name},Noto Sans Telugu,24,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,2,1,${align},0010,0010,0018,0`; + }); + break; case 'vi-VN': sBody = sBody.replace(/^Style:\s*([^,]+),.*?,(\d+),0,0,0,0$/gm, (match, name, align) => { return `Style: ${name},Arial Unicode MS,20,&H00FFFFFF,&H0000FFFF,&H00000000,&H7F404040,-1,0,0,0,100,100,0,0,1,2,1,${align},0020,0020,0022,0`; diff --git a/modules/module.fontsData.ts b/modules/module.fontsData.ts index 5c848d7..c7b29c0 100644 --- a/modules/module.fontsData.ts +++ b/modules/module.fontsData.ts @@ -41,7 +41,10 @@ const fontFamilies = { 'Georgia Italic': ['georgiai.ttf'], Impact: ['impact.ttf'], 'Meera Inimai': ['MeeraInimai-Regular.ttf'], + Mangal: ['MANGAL.TTF'], 'Noto Sans Thai': ['NotoSansThai.ttf'], + 'Noto Sans Telugu': ['NotoSansTeluguVariable.ttf'], + 'Noto Sans Tamil': ['NotoSansTamilVariable.ttf'], Rubik: ['Rubik-Regular.ttf'], 'Rubik Black': ['Rubik-Black.ttf'], 'Rubik Black Italic': ['Rubik-BlackItalic.ttf'],