jossef / material-design-icons-iconfont

Material Design icons + Development Experience
https://jossef.github.io/material-design-icons-iconfont
Apache License 2.0
455 stars 58 forks source link

Allow to set path variables before loading fonts #72

Closed jeserkin closed 3 years ago

jeserkin commented 3 years ago

At the moment having an issue, that I am serving my application from location different than root /, but fonts are being served from /. Also no easy way to override path variable before fonts are loaded.

jossef commented 3 years ago

Are you using scss? if so - define $material-design-icons-font-directory-path before importing the library

$material-design-icons-font-directory-path: '~material-design-icons-iconfont/dist/fonts/';
@import '~material-design-icons-iconfont/src/material-design-icons';
jeserkin commented 3 years ago

Resolved