Hey everybody
Is it possible to add our own svg's to the already existing vanilla font?
I've tied fiddling around with vanilla.svg and selection.json, but with no results so far.
In vanilla.svg I tried adding a new <glyph> by copying one of the other <glyphs> and make a new unicode:
<glyph unicode="" glyph-name="test" d="M276.48 256h471.040l-235.571 409.6z" />
and then I tried copying the corresponding set of code in the selection.json a renamed deffaultCode, order, id, name, code and iconIdx:
{
"icon": {
"paths": [
"M276.48 716.8h471.040l-235.571-409.6z"
],
"attrs": [],
"isMulticolor": false,
"tags": [
"arrow-up",
"triangle",
"up",
"top"
],
"defaultCode": 60000,
"grid": 20
},
"attrs": [],
"properties": {
"order": 204,
"id": 94,
"prevSize": 20,
"name": "test",
"ligatures": "",
"code": 60001
},
"setIdx": 0,
"setId": 1,
"iconIdx": 94
}
Afteards I put "\e901" into:
.icon-sound:before {
content: "\e901";
}
But the icon does not show.
The problem is that I don't fully understand how it all works and I think I might have to edit the vanilla.eot, -.ttf and -.woff too, in order to make the icon show.
Anyone tried this who can point me in the right direction would be great!
Thank you
Henrik