Using icon fonts in new content type
Submitted by msdteach on Fri, 11/22/2019 - 16:32
Forums:
It's not clear to me whether the icon fonts that are used - e.g icomoon in https://github.com/h5p/h5p-simple-multiple-choice for showing radio buttons - are somethuing that I have to manage mysel or whether they are available to all H5P content types for consitency?
BW
Damion
theotherdy
Mon, 11/25/2019 - 11:21
Permalink
FontAwesome not rendering for my new content type
Any help appeciated with how to get FontAwesime icons to render properly. This is what I see on buttons where I am trying to show radio buttons:
Note that FontAwesome is working on Accordion in same Drupal instance above my new content type.
In my .css
... p:before { font-family: 'H5PFontAwesome4'; content: "\f1111";...
}
In my library.json
"preloadedDependencies": [{
"machineName": "FontAwesome",
"majorVersion": 4,
"minorVersion": 5
}
]