paper-styles uses an import for font-roboto/roboto.html <https://github.com/PolymerElements/paper-styles/blob/master/typography.html#L12>. All of the other elements that depend on Roboto should also be using this import. Therefore, by switching your bower.json to use:
"font-roboto": "PolymerElements/font-roboto-local <https://github.com/PolymerElements/font-roboto-local>^1.0.0" instead of: "font-roboto": "PolymerElements/font-roboto <https://github.com/PolymerElements/font-roboto>^1.0.0" Any component that imports font-robot/roboto.html will be switched over to load the local version instead. On Wed, Jun 22, 2016 at 11:49 AM <[email protected]> wrote: > Please ignore my above comment. I got it working using > "ignoredDependencies" in .bowerrc file. Thanks a lot for the help. > > > On Wednesday, June 22, 2016 at 2:48:15 PM UTC+5:30, [email protected] > wrote: >> >> Correct me if i am wrong, what you are saying is if i save font-roboto as >> "PolymerElements/font-roboto-local" that will stop all elements from using >> "PolymerElements/font-roboto". But all the polymer elements (like >> paper-style) already have font-roboto as their dependency. So it will still >> download font-roboto and all the elements will still end up using CDN. >> >> On Wednesday, June 22, 2016 at 12:31:03 PM UTC+5:30, Eric Bidelman wrote: >>> >>> You can use https://github.com/PolymerElements/font-roboto-local and >>> overwrite the directory in bower.json that it saves font-roboto-local to. >>> That way, any imports that import font-roboto.html will use the local >>> version instead of the CDN version. >>> >>> "font-roboto": "PolymerElements/font-roboto-local >>> <https://github.com/PolymerElements/font-roboto-local>^1.0.0" >>> >>> FWIW, the fonts team does recommend using the CDN version because it's >>> likely to already be in the user's cache. >>> >>> On Thu, Jun 16, 2016 at 11:20 AM <[email protected]> wrote: >>> >>>> Or better still is there a way where i can ask polymer not to import >>>> font-roboto/roboto.html even if an import tag is there? >>>> >>>> >>>> On Thursday, June 16, 2016 at 2:38:25 PM UTC+5:30, >>>> [email protected] wrote: >>>>> >>>>> Is there a way through which i can ask Polymer to use >>>>> font-roboto-local whenever i give font as roboto instead of downloading >>>>> the >>>>> font. >>>>> >>>> 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 [email protected]. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/polymer-dev/58bba834-419b-45d7-b80b-2ae2a72be966%40googlegroups.com >>>> <https://groups.google.com/d/msgid/polymer-dev/58bba834-419b-45d7-b80b-2ae2a72be966%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/polymer-dev/55240fa2-2c52-407a-be0c-cf902c4d8b10%40googlegroups.com > <https://groups.google.com/d/msgid/polymer-dev/55240fa2-2c52-407a-be0c-cf902c4d8b10%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/CACGqRCDtWqd_a6xD%3DChBd9srO6_wYCyNq_AejRw0yZLTthVXsQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
