-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please review the Ionicons font-face definition #2599
Comments
Great point @oliversalzburg, because of that issue I have to write a hook in my Ionic/Cordova apps. |
I've now also successfully tested this on Android 4.4 (Nexus 4). |
I don't understand why this hasn't gotten any response :( Because this is such a pain for us, we're now maintaining https://github.com/hartwig-cordova/ionic-bower. The fix itself is in https://github.com/hartwig-cordova/ionic-bower/tree/fix/fonts. We publish |
Hey there, so ionicons have a double life - as the icons for ionic and an all purpose font-icon for the web. That impacts how we've setup ionicons
https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face @mowcixo idea of a hook to remove the unnecessary files to save on file size in interesting. @mowcixo would you be able to open an issue for this on the cli repo? For now, we are going to keep the fonts the way the are as we're close to 1.0. |
Will revisit post 1.0 |
@mhartington I understand that Ionicons can also be used standalone, but I don't see why the integration in the Ionic Framework can't be adjusted since there is a separate file for this and the SCSS from Ionicons isn't used in the Framework. |
Besides, I have not tested in IE for desktop, but I suppose it fails on it 2015-02-16 14:38 GMT+01:00 Oliver Salzburg [email protected]:
Moisés Gramary Barbosa One bright morning when my work is over, Man will fly away home. |
@mowcixo Works fine on desktop IE11 |
Yes, you are right, and in 8, 9 and 10 too. I'll see if I can make an 2015-02-16 14:48 GMT+01:00 Oliver Salzburg [email protected]:
Moisés Gramary Barbosa One bright morning when my work is over, Man will fly away home. |
Hi all, In ionic.scss, instead of :
we could have :
And in ionicons-font-for-ionic, inject the code from @oliversalzburg :
|
I'm also experiencing the issue reported at ionic-team/ionicons#144, looked into the
@font-face
declaration and was slightly confused.We're using Ionicons with our Ionic Framework app, and I feel like the
font-face
declaration is counter-productive in this use case (which, to my understanding, is the primary use case of the font).First of all, I agree with @mowcixo, I don't see how the query on the URL has any benefit when being used in an app bundle. And even if the behavior on Windows Phone 8 is a bug in mobile IE 11, if removing the query from the
src
attribute allows the font to be used on the platform, why not consider changing it? After all, the current definition even includes#iefix
.Second, the
src
attribute seems unnecessarily verbose. It is my understanding that.eot
is included on the web for IE8 compatibility, something that should have no relevance in the Ionic framework.I guess, the
.ttf
enables support Android <4.4, so it is probably required, but should be ordered below the.woff
IMHO.I don't see the need for the
.svg
, as all browsers that support.svg
fonts, also support WOFF. To my understanding, this also holds true on the web.Please keep in mind that all font variants are usually packaged into the app bundle and contribute to the overall size. The
.svg
and.eot
weigh 380 KB which might not be required in the package.For testing purposes, I slimmed down the
font-face
to:Which worked great on BlackBerry 10 and Windows Phone 8 (yes, I do realize that I tested only on platforms you don't support).
I'd be interested to hear your thoughts on this.
The text was updated successfully, but these errors were encountered: