Giter VIP home page Giter VIP logo

Comments (8)

garretwilson avatar garretwilson commented on May 28, 2024 1

@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 to false. 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.

therealglazou avatar therealglazou commented on May 28, 2024

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 😨 Sorry but there is absolutely nothing we can do about it.

from bluegriffon.

therealglazou avatar therealglazou commented on May 28, 2024

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.

garretwilson avatar garretwilson commented on May 28, 2024

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.

therealglazou avatar therealglazou commented on May 28, 2024

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.

therealglazou avatar therealglazou commented on May 28, 2024

Both the preference and a fix to preserve empty inlines were pushed to the trunk.

from bluegriffon.

PatH007 avatar PatH007 commented on May 28, 2024

@garretwilson it seems changing security.fileuri.strict_origin_policy have worked fine, on my computer!
Thank you very much!

from bluegriffon.

garretwilson avatar garretwilson commented on May 28, 2024

Glad I could help, @PatH007 !

from bluegriffon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.