Hi,
First of all you have to include the font-awesome css file (config.json)
With add-css:
http://manual.qooxdoo.org/current/pages/tool/generator/generator_config_ref.html#add-css
Afterwards it isn't necessary to provide the sources (font files) within your
"theme.Font" class,
because it will load with help of the css file. Nevertheless you'll need the
family key (config.json):
...
fontawesome: {
family: ["FontAwesome"]
}
...
This will set the attribute font-family to "FontAwesome".
"023951 qx.bom.webfonts.WebFont[33-0]: WebFont FontAwesome was not applied,
perhaps the source file could not be loaded.
Native.js (riga 59)"
That error occurs because the Webfont validator failures because FontAwesome
didn't apply correctly:
https://github.com/qooxdoo/qooxdoo/blob/master/framework/source/class/qx/bom/webfonts/Validator.js#L229
It creates for each font-family a span element with the same text:
https://github.com/qooxdoo/qooxdoo/blob/master/framework/source/class/qx/bom/webfonts/Validator.js#L295
After then it checks the width in comparison of a expected width from a span
that uses a default font.
It ensures that the font-family apply correctly:
https://github.com/qooxdoo/qooxdoo/blob/master/framework/source/class/qx/bom/webfonts/Validator.js#L249
tl;tr:
When you combine all these information you will get something like that:
https://fontawesome-c9-tobiasoberrauch.c9.io/sandbox/source/
You can easily investigate this project with the Cloud9 IDE. I created a public
project:
https://ide.c9.io/tobiasoberrauch/fontawesome
Cheers tobias
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://p.sf.net/sfu/Zoho
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel