Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ian 22 posts 72 karma points
    Apr 24, 2012 @ 10:49
    Ian
    0

    Font embedding

    Hi

    I was wondering if it is at all possible to embed a font, e.g. Bembo.ttf

    I have looked around the web and found that people have used FOP, but at the momemt i have been unsuccessful to get it working. Does anyone have any ideas. I have also tried font-family, but thats worked either

    Thanks

    Ian

  • Darren Ferguson 1022 posts 3259 karma points MVP c-trib
    Apr 24, 2012 @ 11:57
    Darren Ferguson
    0

    Embedding fonts should be fine so long as the font is installed on your server.

    font-family within an fo:block should work.

    What specific issue do you have?

     

     

  • Ian 22 posts 72 karma points
    Apr 24, 2012 @ 12:11
    Ian
    0

    The problem im having is, im trying to reproduce a font they currently use in their pdfs, the fonts in question are "Bembo", "Bliss Bold" and "Bliss Regular". When i have tried using the font-family as Bembo or Bliss on the fo:block, the font doesnt look anything like it should and looks like the default font

  • Doogie Talons 183 posts 318 karma points
    Jun 15, 2016 @ 10:33
    Doogie Talons
    100

    I have found that in regard to fonts.

    1) The font has to be installed on the server delivering the PDF, not simply put in a folder or umbraco media seciton.

    2) Generally the font has to be truetype, you can normally convert any font for free to truetype on the web.

    3) You have to know the true name of the font that the PDF creator will use. I installed Stag Sans on the server. I went to the font within FONTS on Windows, right clicked on the font. Clicked DETAILS tab and used the full title of the font. This worked fine.

    font-family="Stag Sans Web Light Regular"
    

    Despite the name in the PROPERTIES tab being "StagSansWeb-Light" which doesn't work when I refer to it by that name such as

    font-family="StagSansWeb-Light"

    I hope this helps.

    Doogie

  • Darren Ferguson 1022 posts 3259 karma points MVP c-trib
    Apr 24, 2012 @ 12:23
    Darren Ferguson
    0

    I'd suggest that you download an evaluation of ibex:

    http://www.xmlpdf.com/downloads-net.html

    In this doc:

    http://www.xmlpdf.com/builds/ibex.pdf

    Search for listing fonts - if you follow the appropriate steps it will get you an FO file that lists fonts installed on your system and how to refer to them in FO.

     

  • Anders Stentebjerg 58 posts 234 karma points
    Sep 06, 2012 @ 13:23
    Anders Stentebjerg
    0

    Hey Darren,
    Any update on this one? 

    -A-

  • Darren Ferguson 1022 posts 3259 karma points MVP c-trib
    Sep 10, 2012 @ 09:02
    Darren Ferguson
    0

    How do you mean? I still recommend the test that I specified....

Please Sign in or register to post replies

Write your reply to:

Draft