ยินดีต้อนรับคุณ, บุคคลทั่วไป กรุณา เข้าสู่ระบบ หรือ ลงทะเบียน

เข้าสู่ระบบด้วยชื่อผู้ใช้ รหัสผ่าน และระยะเวลาในเซสชั่น

ThaiSEOBoard.comพัฒนาเว็บไซต์Free SiteSENSEI LMS CERTIFICATES 2.10 ภาษาไทยมันขึ้นเป็นช่อง สี่เหลี่ยมครับ
หน้า: [1]   ลงล่าง
พิมพ์
ผู้เขียน หัวข้อ: SENSEI LMS CERTIFICATES 2.10 ภาษาไทยมันขึ้นเป็นช่อง สี่เหลี่ยมครับ  (อ่าน 1303 ครั้ง)
0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้
youdsan@gmail.com
Newbie
*

พลังน้ำใจ: 0
ออฟไลน์ ออฟไลน์

กระทู้: 1



ดูรายละเอียด
« เมื่อ: 23 พฤษภาคม 2021, 11:42:27 »

รบกวนหน่อยครับ

ผมใช้ SENSEI LMS CERTIFICATES 2.10 ภาษาไทยมันขึ้นเป็นช่อง สี่เหลี่ยมครับ ผมใส่ CODE และ UPLOAD FONT "THSARABUN.TTF" ตามคำแนะนำในหน้าเว็บของเขาแล้ว แต่ผลมันปรากฎตามภาพครับ ขอคำแนะนำหน่อยครับ ผมต้องปรับแก้ตรงไหนบ้างครับ หรือ FONT ที่ผม UPLOAD เข้าไปไม่ถูกต้อง

HTTPS://SENSEILMS.COM/DOCUMENTATION/SENSEI-CERTIFICATES/

MULTILINGUAL FONT SUPPORT
From Sensei LMS Certificates 1.0.4+, several non-latin alphabets are supported for use in your certificates, e.g. Greek, Cyrillic, Arabic, Hebrew. However, some languages (including most East-Asian languages) are not supported by default, because we would have to include fonts for each character set, which would make the extension much larger that it needs to be.
You can, however, add support for any custom font or language. To do this, find a .ttf (TrueType) Unicode font file which includes the characters of your required language and upload it to /wp-content/plugins/sensei-certificates/lib/tfpdf/font/unifont/.
Then add the code in this snippet to your child theme’s functions.php file. (This is how to install a child theme.)
<?php
/**
* Custom fonts MUST be uploaded to the following directory:
* /wp-content/plugins/sensei-certificates/lib/tfpdf/font/unifont/
*
* All custom fonts MUST be TrueType fonts (.ttf)
*
* Only one custom font can be used and it will override ALL fonts in ALL templates
**/
add_filter( 'sensei_certificates_custom_font', 'certificates_custom_font', 10, 1 );
function certificates_custom_font( $font ) {
// Font family and file name MUST be supplied
$font = array(
'family' => 'FontFamily',
'file' => 'font-file.ttf',
);
// Sepcifying font size is optional – if it is left out the then the sizes specified in the template will be used
$font['size'] = 18;
return $font;
}
?>


รูป
https://scontent.fbkk2-8.fna.f...118333ab467b8c&oe=60CF3077

https://scontent.fbkk2-6.fna.f...6b18cad98f74a2&oe=60CE1A9D
« แก้ไขครั้งสุดท้าย: 23 พฤษภาคม 2021, 11:43:08 โดย youdsan@gmail.com » บันทึกการเข้า
หน้า: [1]   ขึ้นบน
พิมพ์