font error - ofline

195 views
Skip to first unread message

john.tig...@gmail.com

unread,
Jun 28, 2014, 1:51:42 PM6/28/14
to polym...@googlegroups.com
trying to run polymer code off-line on dev machine but getting error - looking for google api - any ideas ?  

in our index.html :

  <link rel="import"
      href="/lib/polymer-0.1/components/font-roboto/roboto.html">

server response:
GET /lib/polymer-0.1/components/font-roboto/roboto.html 304 18ms

in javascript console:
==> error



Arthur Evans

unread,
Jun 28, 2014, 2:17:53 PM6/28/14
to john.tig...@gmail.com, polymer-dev
This import loads a web font, so it will fail if you're offline. However, the page should still display with a fallback font.

I think that font is used in the demos (and the tutorial), but not required by the controls themselves, so if you want to build something for offline use, just remove the import and substitute a different font in the CSS.

Cheers,
Arthur



Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/4c983a05-71f3-4e2d-a71c-f82e017c452d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages