I've written a font generator web app in PHP which uses FontCustom to generate font files from SVG. There is an option to have fixed UTF-8 glyph codes for each svg, but i need to store this in database and need to automatize this process. FontCustom uses the PUA (Private Use Area) of UTF-8. I need to incrementally generate a valid glyph code in this area.
Example JSON from FontCustom:
[
{
"file": "home.svg",
"code": "0x2302" // I need this
},
{
"file": "briefcase.svg",
"code": "0x1F001" // And this to be generated with PHP
}
]