Deploy: 2026-05-23 18:34:21
This commit is contained in:
@@ -111,7 +111,7 @@ class WhatsAppClient {
|
||||
|
||||
$fonts = [
|
||||
'Roboto-Bold.ttf' => 'https://github.com/google/fonts/raw/main/apache/roboto/static/Roboto-Bold.ttf',
|
||||
'CourierPrime-Bold.ttf' => 'https://github.com/google/fonts/raw/main/ofl/courierprime/CourierPrime-Bold.ttf'
|
||||
'Lora-Bold.ttf' => 'https://github.com/google/fonts/raw/main/ofl/lora/Lora-Bold.ttf'
|
||||
];
|
||||
|
||||
foreach ($fonts as $filename => $url) {
|
||||
@@ -170,8 +170,8 @@ class WhatsAppClient {
|
||||
if (file_exists($fontDir . '/Roboto-Bold.ttf') && @filesize($fontDir . '/Roboto-Bold.ttf') > 20000) {
|
||||
$availableFonts[] = $fontDir . '/Roboto-Bold.ttf';
|
||||
}
|
||||
if (file_exists($fontDir . '/CourierPrime-Bold.ttf') && @filesize($fontDir . '/CourierPrime-Bold.ttf') > 20000) {
|
||||
$availableFonts[] = $fontDir . '/CourierPrime-Bold.ttf';
|
||||
if (file_exists($fontDir . '/Lora-Bold.ttf') && @filesize($fontDir . '/Lora-Bold.ttf') > 20000) {
|
||||
$availableFonts[] = $fontDir . '/Lora-Bold.ttf';
|
||||
}
|
||||
if (!empty($availableFonts)) {
|
||||
$useTtf = true;
|
||||
|
||||
Reference in New Issue
Block a user