gm_fontsx
V1 - Windows Binary
どうやら、Garry's 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_fontsxを実行しますcargo buildtarget/debugに移動し、ブランチとレルム(gmsv_fontsx_win64.dll、gmcl_fontsx_win64.dll、gmsv_fontsx_linux.dll、gmcl_fontsx_linux.dll、gmcl_fontsx_osx64.dll)lua/binディレクトリにバイナリを入れます注:Windows以外のプラットフォームでも、モジュールの拡張機能は.dllである必要があります