vishal pareek
vishal pareek

Reputation: 95

How to use ember paper icons offline?

I am creating a web module with ember paper where i need to use this module offline as well, now when i use the offline mode the ember paper icons doesn't appear instead just the text appears, can anyone help me getting ember paper work offline.

Upvotes: 1

Views: 137

Answers (2)

vishal pareek
vishal pareek

Reputation: 95

If any body is looking for full answer i added below code in my environment file under production environment

ENV['ember-paper'] = ENV['ember-paper']  || {
      insertFontLinks: false
  };

and i downloaded the icon file from "https://fonts.googleapis.com/icon?family=Material+Icons" and included this in my scss and changed the src for woff2 file to my local file which again i downloaded from "https://fonts.gstatic.com/s/materialicons/v54/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2" .

Upvotes: 2

Buck Doyle
Buck Doyle

Reputation: 6397

You can use ENV['ember-paper'].insertFontLinks to prevent the remote font CSS from being included, at least. You could then store the relevant files locally, though that may be forbidden for licensing reasons.

Upvotes: 2

Related Questions