Welcome Guest Search | Active Topics | Sign In | Register

@font-face with class inside div Options
Julian
Posted: Thursday, February 6, 2014 11:59:00 PM
Rank: Newbie
Groups: Member

Joined: 2/6/2014
Posts: 5
Hi,

I have the following test html:

Quote:
<!DOCTYPE html>
<html style="height: 100%;" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<link href="test5.css" rel="stylesheet" type="text/css">
</head>
<body style="height: 100%; margin: 0px;">

<table border="1" style="page-break-inside: avoid; page-break-after:always; border-collapse: collapse;height: 1116px; width: 100%"><tr><td><div class="test">Full Height Test Page 1</div></td></tr></table>
<table border="1" style="page-break-inside: avoid; border-collapse: collapse;height: 1116px;"><tr><td>Full Height Test Page 2</td></tr></table>

</body>
</html>


with the following in my css:

Quote:
@font-face
{
font-family: 'AvantGarde Md BT';
src: url('/includes/avgardm.ttf') format('truetype');
}

.test {
font-family: 'AvantGarde Md BT';
font-size: 27pt;
font-weight: bold;
text-align: right;
}


'Full Height Test Page 1' as AvantGarde Md BT is displayed correctly in a browser, however it isnt rendered correctly when converted from html to pdf.

When I look at the font in the created pdf, I see the following where AvantGarde Md Bt should be:

Ms1vzQMek0GWeuqlVAfYuA==

If I remove the following lines from the css

Quote:
@font-face
{
font-family: 'AvantGarde Md BT';
src: url('/includes/avgardm.ttf') format('truetype');
}


The AvantGarde Md BT is displayed correctly in the html to pdf conversion as it gets the font which is installed on my computer.

This isn't a major problem for me at the moment as I will just use a different css for the pages that are converted into pdf's, however it seems like a bit of a bug?

Thanks

Julian
eo_support
Posted: Friday, February 7, 2014 9:05:49 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

Can you send the font file to us so that we can take a look? We will PM you as to where to send the file.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.