gm_fontsx
V1 - Windows Binary
Da wir anscheinend nie einen ordnungsgemäßen Weg erhalten, um auf Garrys Mod installierte Schriftarten zu überprüfen, muss dies existieren?
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 (ignorieren Sie dies, wenn Sie das Archiv heruntergeladen haben)cd gm_fontsx auscargo buildtarget/debug und benennen Sie den Binary nach Ihrem Zweig und Ihrer Realm um (gmsv_fontsx_win64.dll, gmcl_fontsx_win64.dll, gmsv_fontsx_linux.dll, gmcl_fontsx_linux.dll, gmcl_fontsx_osx64.dll))lua/bin -VerzeichnisHinweis: Selbst auf anderen Plattformen als auf Windows muss die Erweiterung Ihrer Module .dll sein