NathanWalker / nativescript-ngx-fonticon

Use custom font icon collections seamlessly with NativeScript + Angular.
MIT License
76 stars 39 forks source link

Material MDI MatIcon icons are not displaying #68

Closed pandabuilt closed 4 years ago

pandabuilt commented 4 years ago

inside src/app/app.component.ts

<Label [text]="'mat-search' | fonticon" class="material-icons"></Label>

inside src/app/app.module.ts: TNSFontIconModule.forRoot({ 'mat': './material-design-icons.css' })

inside src/app/material-design-icons.css @font-face { font-family: 'Material Icons', 'MaterialIcons-Regular'; font-style: normal; font-weight: 400; src: url('./fonts/MaterialIcons-Regular.ttf') format('ttf'); }

.material-icons { font-family: 'Material Icons', 'MaterialIcons-Regular'; font-weight: normal; font-style: normal; font-size: 24px; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; word-wrap: normal; direction: ltr; -webkit-font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased; }

Result from TNSFontIconService.debug: true

CONSOLE LOG file:///node_modules/nativescript-ngx-fonticon/services/fonticon.service.js:23:24: Collections to load: mat CONSOLE LOG file:///node_modules/nativescript-ngx-fonticon/services/fonticon.service.js:64:24: ---------- CONSOLE LOG file:///node_modules/nativescript-ngx-fonticon/services/fonticon.service.js:65:24: Loading collection 'mat' from config key name: mat CONSOLE LOG file:///node_modules/nativescript-ngx-fonticon/services/fonticon.service.js:133:24: mapped css:

Notice there is no mapped css?

The end result is no space is taken up and icons are not showing.