https://github.com/nats-ji/iconfontcppheadersandluatables
C and C++ headers, Lua tables for icon fonts
https://github.com/nats-ji/iconfontcppheadersandluatables
cpp font-awesome lua material-design-icons
Last synced: 4 months ago
JSON representation
C and C++ headers, Lua tables for icon fonts
- Host: GitHub
- URL: https://github.com/nats-ji/iconfontcppheadersandluatables
- Owner: Nats-ji
- License: mit
- Created: 2022-12-01T16:21:22.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-12-04T19:08:05.000Z (over 3 years ago)
- Last Synced: 2025-01-16T23:12:28.254Z (about 1 year ago)
- Topics: cpp, font-awesome, lua, material-design-icons
- Language: Lua
- Homepage:
- Size: 573 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# IconFontCppHeadersAndLuaTables
Something similar to https://github.com/juliettef/IconFontCppHeaders
C++ headers and Lua tables for:
- [FontAwesome4](https://github.com/FortAwesome/Font-Awesome/blob/4.x/fonts/)
- [Material Design Icons](https://github.com/Templarian/MaterialDesign)
> **Note**
>
> Only works on LuaJIT, Lua 5.3 and above.
## Generate
`npm run build [FA4 | MD]`
```sh
npm install
npm run build
```
Output files are located in folders prefixed with `Font`.
## Usage
### lua
Copy the lua file to your project.
```lua
IconGlyphs = require("FontAwesome4")
local stringWithIcon = "Search" .. IconGlyphs.Search
```
### cpp
Same usage as https://github.com/juliettef/IconFontCppHeaders
## Lua Type defines
To use with VSCode [sumneko.lua](https://marketplace.visualstudio.com/items?itemName=sumneko.lua) extension:
https://github.com/sumneko/lua-language-server/wiki/Libraries#custom