emichelli / flying-saucer

Automatically exported from code.google.com/p/flying-saucer
0 stars 0 forks source link

Custom font - Gotham font #251

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I am trying to use the Custom font (Gotham) or any other font in css, font 
is not properly applying to the pdf. PDF is generation  with default font 
(Times New Roman).

2. Following code i used in CSS

    @font-face {
        font-family: "GOTHAM";
        src: url("GOTHAM.TTF");
        -fs-pdf-font-embed: embed;
        -fs-pdf-font-encoding: Identity-H; 
    }
    * {
        font-family: "GOTHAM", 'Arial';
    }

I have copied ttf file in my work space.

What is the expected output? What do you see instead?

Expecting custom font in pdf, but default font (Times New Roman) is rendering.

What version of the product are you using? On what operating system?

Flying Saucer 8 - Windows 8

Original issue reported on code.google.com by vijai.28...@googlemail.com on 20 Nov 2014 at 4:34