I have recently started using Bootstraps Glyphicons and encountered an issue while trying to insert text inside a button with a glyphicon icon:
<button type="button" class="btn btn-default pull-left" data-toggle="collapse" data-bind="attr:{'href':'#'+'TableA'}">
<span class="glyphicon glyphicon-th-list" aria-hidden="true" data-bind="text:' Details'"></span>
</button>
When I click on the button, it displays a table. However, I want the text to be in Arial font. After editing the bootstrap.css
or adding the following code:
<span class="glyphicon glyphicon-download-alt" aria-hidden="true" data-bind="text:' Download', style:{fontFamily: 'Arial'}"></span>
The font of the text changes to Arial but the glyphicon icons disappear. What am I missing here? Is there a way to change the font-family of text inside a button with a glyphicon icon?