Font Awesome in Reports

  • SQL Jeffro

    SSC Enthusiast

    Points: 184

    Hello friends!
    We have a web application that uses font awesome for icons and in an attempt to keep things uniform, would like to use these here and there within some of the reports.
    Has anyone tried to integrate these into SSRS with luck?  I understand that SSRS and CSS are not the bestest of friends but hoping for someone who has attempted this and has a final say in the matter.  I've done enough searches but there just doesn't seem to be a lot out there.  (Or I just don't have the knowledge to bridge the gap between the two.)
    Any help or direction would be greatly appreciated.

    Thank you,
    Jeff

  • sgmunson

    SSC Guru

    Points: 110416

    SQL Jeffro - Friday, June 23, 2017 10:56 AM

    Hello friends!
    We have a web application that uses font awesome for icons and in an attempt to keep things uniform, would like to use these here and there within some of the reports.
    Has anyone tried to integrate these into SSRS with luck?  I understand that SSRS and CSS are not the bestest of friends but hoping for someone who has attempted this and has a final say in the matter.  I've done enough searches but there just doesn't seem to be a lot out there.  (Or I just don't have the knowledge to bridge the gap between the two.)
    Any help or direction would be greatly appreciated.

    Thank you,
    Jeff

    Never seen "Font Awesome", but the question is, does it involve standardized true-type fonts?   Or something else?   The reason I ask, is that just having a better font doesn't guarantee that SSRS can position it correctly.   I have to believe that most fonts have a fair amount of positioning information built-in, so if the new fonts follow any well-known standards for fonts, you might well be perfectly good to go.   If it only does so on a rather limited basis, SSRS might have trouble properly positioning them.

    Steve
    ‌(aka sgmunson)
    ‌:) 🙂 🙂
    Health & Nutrition

  • SQL Jeffro

    SSC Enthusiast

    Points: 184

    The name is deceptive.  It is a css class and I'm pretty certain that is a no go for SSRS.
    Here is an example of how they use it:

    <i class="fa fa-camera-retro fa-lg"></i>

    I'm just trying to keep things looking good and maintainable across hundreds of reports.
    Thanks again!

  • sgmunson

    SSC Guru

    Points: 110416

    Only way to do something like that is to include a report-viewer control in your own webpage where this CSS stylesheet is in use for the larger page.   Not sure if the report-viewer control will inherit those settings or not, but it could be easily experimented with.

    Steve
    ‌(aka sgmunson)
    ‌:) 🙂 🙂
    Health & Nutrition

  • ilikehairypeople

    Newbie

    Points: 6

    I was able to get it working,.. Using the "unicode glyp".
    Get the TTf file installed and then find the code on the awsomefont website.

    Mvg Tom

  • sgmunson

    SSC Guru

    Points: 110416

    And what, exactly, pray tell, did you then do with that glyph ?   Other users will likely want to know...

    Steve
    ‌(aka sgmunson)
    ‌:) 🙂 🙂
    Health & Nutrition

  • ilikehairypeople

    Newbie

    Points: 6

    sgmunson - Wednesday, March 13, 2019 1:23 PM

    And what, exactly, pray tell, did you then do with that glyph ?   Other users will likely want to know...

    As a font has some advantages over images ( scaling / outlining with other text,..)
    I used it to show a plus or a minus sign depending the outcome of the function.

    Mvg Tom

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic. Login to reply