gm_fontsx
V1 - Windows Binary
เนื่องจากเห็นได้ชัดว่าเราไม่เคยได้รับวิธีที่เหมาะสมในการตรวจสอบแบบอักษรที่ติดตั้งบน Mod ของ Garry จึงต้องมีอยู่หรือไม่?
require ( " fontsx " )
-- creates a gmod virtual font depending on whether the system font "Consolas" is available
surface . CreateFont ( " my_virtual_font " , {
font = fonts . Exists ( " Consolas " ) and " Consolas " or " Roboto " ,
size = 15 ,
}) require ( " fontsx " )
-- prints all system fonts currently available
PrintTable ( fonts . GetAll ())git clone https://github.com/Earu/gm_fontsx (ไม่สนใจสิ่งนี้หากคุณดาวน์โหลดไฟล์เก็บถาวร)cd gm_fontsxcargo buildtarget/debug และเปลี่ยนชื่อไบนารีตามสาขาและอาณาจักรของคุณ (GMSV_FONTSX_WIN64.DLL, GMCL_FONTSX_WIN64.DLL, GMSV_FONTSX_LINUX.DLL, GMCL_FONTSX_LINUX.DLLlua/bin ของคุณหมายเหตุ: แม้ในแพลตฟอร์มอื่นนอกเหนือจาก Windows ส่วนขยายของโมดูลของคุณ จะต้อง เป็น . dll