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
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
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
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.
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
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?
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
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.
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
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.
Hey Darren,
Any update on this one?
-A-
How do you mean? I still recommend the test that I specified....
is working on a reply...