Material Design Icons not showing
See original GitHub issueIn assets/fonts, I have materialdesignicons-webfont.ttf
and in assets/css, I have materialdesignicons.css
. And finally in main.js
, I have the following:
import {TNSFontIcon, fonticon} from 'nativescript-fonticon';
TNSFontIcon.debug = true;
TNSFontIcon.paths = {
'mdi': './assets/css/materialdesignicons.css'
};
TNSFontIcon.loadCss();
Vue.filter('fonticon', fonticon);
And I am using icon like the following:
<Label class="mdi" :text="'mdi-youtube' | fonticon" style="color: #fff;font-size: 40px;" />
However, icons are not showing at all.
Btw, I grabbed the css from https://github.com/Templarian/MaterialDesign-Webfont/tree/master/css.
Please help!
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Material Design Icons not showing in browser
I'm trying to host the Google Material Design icon set for my website however I cannot get the icons to show in Chrome...
Read more >Google Material Icon not Showing. : r/learnprogramming - Reddit
According to the Google Material Icon docs, it's supposed to be replaced by the icon that corresponds to 'delete'.
Read more >outlined icons not working · Issue #1263 - GitHub
I am trying to use the outlined version of notifications. I can use the normal filled version but the outline version is not...
Read more >Material Design Icons not showing in Firefox - Support
Hello, I'm having an issue where certain icons aren't showing up in Firefox. For example, all the icons at the bottom of this...
Read more >Material Icons Guide | Google Fonts
Material design system icons are simple, modern, friendly, and sometimes quirky. Each icon is created using our design guidelines to depict in simple...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@tralves - sorry to hijack this, but I’m having a similar issue using an icomoon icon font - in the logs I don’t see any icons. Is that what is supposed to happen?
I have the fonts in
I have the following in main.js:
/app/fonts/icons.ttf
and the icomoon css file inapp/assets/icons.css
like so:and in my app.scss I have:
.icon { font-family: icons; font-weight: 400; }
but still get nothing in my app. 😦
Any suggestions?
this version worked for me: https://github.com/nativescript-community/fonticon