Skip to content
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

Modify font face path? #10

Open
ghost opened this issue Mar 30, 2016 · 2 comments
Open

Modify font face path? #10

ghost opened this issue Mar 30, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Mar 30, 2016

Is there a way to modify the font path that the package uses?

I'd like to use an icon in an error message when the connection to Meteor fails. This doesn't work because it appears that the font is loaded only when an icon is required. In my case, the loading won't work because the server would already be down.

If recommended, maybe it makes more sense to install via npm and modify the font path as described here.

@ghost
Copy link
Author

ghost commented Mar 30, 2016

@dandv

@gsabran
Copy link

gsabran commented May 20, 2016

Running in a similar issue, I ended up using the npm package directly, and having

@import "{}/node_modules/font-awesome/less/variables.less";
@fa-font-path: "https://s3.amazonaws.com/mettavr/staticAssets/fonts/fontawesome";
@import "{}/node_modules/font-awesome/less/mixins.less";
@import "{}/node_modules/font-awesome/less/path.less";
@import "{}/node_modules/font-awesome/less/core.less";
@import "{}/node_modules/font-awesome/less/larger.less";
@import "{}/node_modules/font-awesome/less/fixed-width.less";
@import "{}/node_modules/font-awesome/less/list.less";
@import "{}/node_modules/font-awesome/less/bordered-pulled.less";
@import "{}/node_modules/font-awesome/less/animated.less";
@import "{}/node_modules/font-awesome/less/rotated-flipped.less";
@import "{}/node_modules/font-awesome/less/stacked.less";
@import "{}/node_modules/font-awesome/less/icons.less";
@import "{}/node_modules/font-awesome/less/screen-reader.less";

in a less file (which is the same as https://github.com/FortAwesome/Font-Awesome/blob/master/less/font-awesome.less but overwrites the path to the fonts)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant