Comments (8)
@therealglazou , Font Awesome does not depend on JavaScript. I don't know where you got that; it plainly says on the Font Awesome home page:
No JavaScript Required
Fewer compatibility concerns because Font Awesome doesn't require JavaScript.
@PatH007 the reason you're not seeing anything could be due to one or both of two problems:
- First of all, BlueGriffon has a bug that strips empty
<i>
elements, as I reported in Bug #16 (even though it was claimed to be fixed in Bug #8). If you want to use Font Awesome, you'll need to put the CSS classes on some non-empty element --- in other words, you can't use the Font Awesome examples directly from the web site, unfortunately. - Secondly BlueGriffon uses the Firefox Gecko engine, which by default doesn't allow icons to be loaded from the local file systems. You'll need to go into Tools > Preferences > Advanced > Configuration Editor in BlueGriffon and set
security.fileuri.strict_origin_policy
tofalse
. Then you'll see the Font Awesome font icons no problem. They look great on BlueGriffon!
@therealglazou , I suggest two things:
- You should mark this bug #23 as a duplicate of #16 (and fix #16, of course).
- You should add something to the FAQ explaining how to use
security.fileuri.strict_origin_policy
in order to see fonts loaded from the local file system.
Cheers!
from bluegriffon.
Unfortunately, Fontawesome relies on JS code you have to add to your document and JS code cannot run into a Wysiwyg editor... That's a flaw on Fontawesome's side, not ours
from bluegriffon.
Ah, ok, I used on the links on their website and I ended up with JS code to insert.
I think I understand what's going on: Gecko security management forbids font-face links to local files. Investigating. Stay tuned.
from bluegriffon.
As you investigate you can read http://stackoverflow.com/a/3704578/421049 and http://geoff.evason.name/2010/05/03/cross-domain-workaround-for-font-face-and-firefox/ . You may not can do much about that, and it's easy to change the setting in a new BlueGriffon installation.
The bigger problem is BlueGriffon ripping out empty elements (#16), which applies to more than just Font Awesome and should be fixed.
Thanks for looking into this.
from bluegriffon.
I know where the editor core of Gecko removes empty inline elements but I have to check it disabling it does not induce bad side effects...
from bluegriffon.
Both the preference and a fix to preserve empty inlines were pushed to the trunk.
from bluegriffon.
@garretwilson it seems changing security.fileuri.strict_origin_policy have worked fine, on my computer!
Thank you very much!
from bluegriffon.
Glad I could help, @PatH007 !
from bluegriffon.
Related Issues (20)
- Can't put in my second license with my second PC
- Assuming this is dead. Alternative? HOT 6
- Component returned failure code: 0x80004005 (NS_ERROR_FAILURE)
- Idea - Ace editor HOT 1
- ./mach build failed HOT 3
- php code screwed up... HOT 1
- Apple Silicon
- Feature request - Github integration?
- Cannot create or edit EPUB files
- Error message when switching from source view to WYSIWYG View HOT 1
- Bluegriffon on Windows keeps launching unmaximized
- Big sur void menus HOT 8
- JavaScript with Blockly HOT 1
- OCR from JavaScript HOT 2
- Spaces are overwritten in DualView mode HOT 2
- RFE: Fedora Support !!!!
- Feature request: autosave HOT 3
- mach run failed in macos big sur 11.2.2
- Support Flatpak HOT 1
- dead? HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bluegriffon.