-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Can't load icon font #4351
Comments
Ok, I found the reason why url("./../themes/default/assets/fonts/icons.eot"); did not work. I transfered it to local server and it loaded icon font. But when I run gulp build it makes url(".../themes/default/assets/fonts/icons.eot"); again. (There is " \ " after first dot, but Github doesn't outputs it) How to overide that? |
I had this same issue. Had to modify the template.
|
i just removed dots before "\themes" in semantic.css |
I have a partial fix. I am using Windows 7. It is the most stable environment for me still. Added @fontPath: "./../themes/default/assets/fonts"; to semantic/src/site/elements/icon.variables and it fixed path in dist/components/icon.css Added also @fontPath: "./themes/default/assets/fonts"; to semantic/src/site/global/site.variables but it did not fix the path in dist/semantic.css but outputs the same path as in dist/components/icon.css Maybe @jlukic can help with that? |
@rlightner "Had to modify the template." WHICH template? |
I know it’s been a while, but apparently it was fixed somewhere in-between. |
Closes Semantic-Org#14 Referenced in: - Semantic-Org/Semantic-UI#4351 - Semantic-Org/Semantic-UI#4174
Fixed for semantic-ui-less here: Semantic-Org/Semantic-UI-LESS#51 |
Hi.
I just can't find solution for icon font not loading on pages. It is a local Windows install, everything updated to latest version through npm. Didn't do any customizations to theme files so far. It is a clean install.
I see that component icon.css is importing icons from url(".../themes/default/assets/fonts/icons.eot"); (There is " \ " after first dot, but Github doesn't outputs it). Where " \ " should be "/ ".
Tried for testing purposes to change that to url("./../themes/default/assets/fonts/icons.eot"); but it still doesn't load, in debuger I see error:
downloadable font: download failed (font-family: "Icons" style:normal weight:normal stretch:normal src index:3): bad URI or cross-site access not allowed source: file:///E:/GoogleDrive/PROJECTS/my-framework/semantic/dist/themes/default/assets/fonts/icons.ttf
If you could tell me am I doing something wrong and how to fix it, or is it a bug in Semantic.
The text was updated successfully, but these errors were encountered: