Skip to content

A plugin for godot to use FontAwesome's icons in your game.

License

Notifications You must be signed in to change notification settings

matrixant/Godot-FontAwesome5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FontAwesome5 icon plugin for godot 3.x


插件参考了 GodotExplorer/FontAwesome


简介:这个插件可以让你在你的游戏中使用 FontAwesome 5 的图标。

使用:将 addons 文件夹复制到你的工程根目录,添加节点时搜索 FontAwesome 即可(继承自 Label)

新增属性:

  • icon_size: 图标尺寸
  • icon_type: 图标种类,有三种类型可选 solid/regular/brands,每种类型下图标都不同,详见这里
  • icon_name: 图标名称,如 flag 将对应flag,更多图标名称请查看这里

这里的字体版本是 FontAwesome 5.12.0

如果你需要更新字体文件,你要先从这里更新 addons/FontAwesome5 里的三个 .ttf 字体文件,还有从这里更新 utils 里的三个 .js 文件。然后运行 utils 里的 Lua 脚本以生成新的 Cheatsheet.gd 文件, 并用它覆盖 addons/FontAwesome5 里的同名文件。


Intro: This is a plugin that let you use FontAwesome 5 icons in your game.

How to use: Copy the addons folder to your godot project directory, and then add the FontAwesome node to your scene.

Properties:

  • icon_size: icon's size.
  • icon_type: icon type,There are three different icon set solid/regular/brands,for more details look this site
  • icon_name: icon name,for instance flag correspond to flag,go here to find more icon names.

The font's version in this repo is 5.12.0

You need to update the *.ttf file in addons/FontAwesome5 and *.js file in utils when you want update FontAwesome's fonts.Then run the lua script in utils to generate a new Cheatsheet.gd file and copy it to addons/FontAwesome5 folder.


About

A plugin for godot to use FontAwesome's icons in your game.

Resources

License

Stars

Watchers

Forks

Packages

No packages published