You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm building a new app at my current employer with Apache Cordova and Polymer. This is being built in Visual Studio 2015, with the goal of deploying it to Android, iOS, and Windows. Exciting stuff.
Except the path to fonts isn't parameterized in the core Polymer controls, and, once installed on a mobile device, my packaged app is failing to retrieve fonts successfully (since it's trying to retrieve the fonts under file://....; not to mention it's trying to make a call over-the-wire, which I want to avoid by serving these fonts locally). Would it be possible to parameterize the path to fonts in the polymer controls? I'd really like to avoid having to diverge from the trunk on the polymer controls.
Thanks! I'm very open to alternatives if there's a better way of solving this problem....
Ryan
The text was updated successfully, but these errors were encountered:
Right now, the Roboto font is loaded via the paper-styles element. We'll move this issue there.
There isn't a great way to parameterize the URL used by that stylesheet, since it's not maintained by Polymer (and we probably wouldn't want to fork that).
However, we can probably just fall back to the solution we had in 0.5, which was to separate font-roboto into a separate component imported into paper-styles, so that the end user can just swap in a local-URL based font-roboto implementation for deployment. To be clear, you can do this now, but you'd be overwriting a file that contains more than just the font, whereas the 0.5 font-roboto file only contained this one thing.
Hey,
I'm building a new app at my current employer with Apache Cordova and Polymer. This is being built in Visual Studio 2015, with the goal of deploying it to Android, iOS, and Windows. Exciting stuff.
Except the path to fonts isn't parameterized in the core Polymer controls, and, once installed on a mobile device, my packaged app is failing to retrieve fonts successfully (since it's trying to retrieve the fonts under file://....; not to mention it's trying to make a call over-the-wire, which I want to avoid by serving these fonts locally). Would it be possible to parameterize the path to fonts in the polymer controls? I'd really like to avoid having to diverge from the trunk on the polymer controls.
Thanks! I'm very open to alternatives if there's a better way of solving this problem....
Ryan
The text was updated successfully, but these errors were encountered: