Giter VIP home page Giter VIP logo

godot-fontawesome5's Introduction

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.


godot-fontawesome5's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.