gm_fontsx
V1 - Windows Binary
由於顯然我們永遠不會有一種正確的方法來檢查Garry的Mod上的已安裝字體,因此必須存在嗎?
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.dlllua/bin目錄中注意:即使在其他平台上,模塊的擴展也必須為.dll