Forum Samples, Tips and Tricks

Fontawesome get ? instead of font

jstumpf1
I am producing a medical lab report that uses font-awesome-4.2.0 download as a source, since i could not get prince to read in the file, it produced warning: cannot open resource.

I have attached two files one is the PDF that it is generating and the other is its HTML version in a screen shot. Now i must also inform you that i had to create a separate file for the printing in php due to the way that my Frontend Framework "Foundation5" was not playing well with the formatting.

The Headers used to work now they dont so i added another manually. I really need to get the colors and fonts working as per the attached HTML version.

I have exhausted all my resources and am surprised i got as far as i did, but i have to have a working copy that represents the HTML version prior to outlaying $3800.

Any assitance will be appreciated.


=============================
UPDATE FONT ISSUE SOLVED

NOW NEED HOW TO GET COLOR BACKGROUND IN TABLE CELLS OR ROW

Prince Log
Just a bit of information i can embed the font and Prince does not bite back int he log, however; i still get the same results.

Thu Oct  2 16:44:50 2014: Preparing document...
Thu Oct  2 16:44:50 2014: Converting document...
Thu Oct  2 16:44:50 2014: font-awesome-4.2.0/fonts/fontawesome-webfont.woff?v=4.2.0: warning: cannot open resource
Thu Oct  2 16:44:50 2014: font-awesome-4.2.0/fonts/fontawesome-webfont.ttf?v=4.2.0: warning: cannot open resource
Thu Oct  2 16:44:50 2014: warning: no glyphs for character U+F12A, fallback to '?'
Thu Oct  2 16:44:50 2014: warning: no glyphs for character U+F165, fallback to '?'
Thu Oct  2 16:44:50 2014: warning: no glyphs for character U+F071, fallback to '?'
Thu Oct  2 16:44:50 2014: warning: no glyphs for character U+F164, fallback to '?'
Thu Oct  2 16:44:50 2014: warning: no glyphs for character U+F00C, fallback to '?'
Thu Oct  2 16:44:50 2014: warning: cannot fit footnote(s) on page 1
Thu Oct  2 16:44:50 2014: finished: success
Thu Oct  2 16:44:50 2014: ---- end




  1. Screen Shot 2014-10-03 at 12.37.20 PM.png174.9 kB
    COLOR NEEDED
  2. lab-report-pdf.php23.8 kB
  3. labreport.css5.1 kB

Edited by jstumpf1

mikeday
It looks like the ?v=4.2.0 on the end of the font file URL is causing it to fail to load. If you edit the font-awesome.css to remove this, it will work.

Alternatively, try running the latest Prince alpha, which also fixes the problem.
jstumpf1
yep that fixed it, great now can you point me int he direction of getting color to fill in the tables as per my attached screen shot?

dauwhe
I'm not seeing a screenshot attached to any of your posts...

Thanks,

Dave
jstumpf1
Loaded .... as COLOR NEEDED, I can not get color to fill the table cells.

Edited by jstumpf1

mikeday
How are you applying the color, is it a background-color on the td element, or something else?
jstumpf
This was remedied by adding the !important in CSS to overided Foundation5 styles.

fyi