In Html Page:
<h:outputStylesheet library="css" name="bootstrap/fonts/glyphicons-halflings-regular.eot"></h:outputStylesheet> <h:outputStylesheet library="css" name="bootstrap/fonts/glyphicons-halflings-regular.svg"></h:outputStylesheet> <h:outputStylesheet library="css" name="bootstrap/fonts/glyphicons-halflings-regular.ttf"></h:outputStylesheet> <h:outputStylesheet library="css" name="bootstrap/fonts/glyphicons-halflings-regular.woff"></h:outputStylesheet> <h:outputStylesheet library="css" name="bootstrap/fonts/glyphicons-halflings-regular.woff2"></h:outputStylesheet>
In CSS (you can override @ font-face in another .css file and not touch bootstrap.css):
@font-face { font-family: 'Glyphicons Halflings'; src: url("#{resource['css:bootstrap/fonts/glyphicons-halflings-regular.eot']}"); src: url("#{resource['css:bootstrap/fonts/glyphicons-halflings-regular.eot']}?#iefix") format('embedded-opentype'), url("#{resource['css:bootstrap/fonts/glyphicons-halflings-regular.woff']}") format('woff'), url("#{resource['css:bootstrap/fonts/glyphicons-halflings-regular.ttf']}") format('truetype'), url("#{resource['css:bootstrap/fonts/glyphicons-halflings-regular.svg']}#glyphicons_halflingsregular") format('svg'); }
General use:
#{resource['<resource name>']}
or
#{resource['<library name>:<resource name>']}
source share