An open API service indexing awesome lists of open source software.

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

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