View Single Post
Old 12-04-2009, 04:58 PM   #4
erik5000
Member
erik5000 began at the beginning.
 
Posts: 15
Karma: 12
Join Date: Nov 2009
Device: sony prs600
fonts in prs600

Yes, I did all those things.
Weird thing is, some <H1> headings show up in the correct font and others do not.
And another thing is, that FireFox (with epub plug-in) shows the embedded font alright, but the Adobe Digital Edition program does not, as does not the PRS600.
I show some parts of relevant files:
the CSS:

@font-face
{
font-weight: normal;
font-family: "TrumpMediaevalLTStd-Roman" ;
src: url(fonts/TrumpMediaevalLTStd-Roman.otf) ;
}

h3.toc_heading
{
margin-left: 24px;
font-family: "TrumpMediaevalLTStd-Roman";
}
h1
{
margin-top:12.0pt;
margin-right:0.5px;
margin-bottom:24.0pt;
margin-left:14.2pt;
text-indent:0pt;
font-size:140%;
font-family: "TrumpMediaevalLTStd-Roman" ;
}

a HTML file (showing the h3 right):

<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="http://www.w3.org/1999/xhtml; charset=utf-8" http-equiv="Content-Type"/>
<link rel="stylesheet" type="text/css" href="ccjr2.css" />
<title>Table of Contents</title>
</head>
<body>
<h3 class="toc_heading">Table of Contents</h3>

Another HTML file (H1 showing the STANDARD font, not the mediaeval)
FF shows it right, but Adobe and the SOny NOT:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="http://www.w3.org/1999/xhtml; charset=utf-8" http-equiv="Content-Type"/>
<link REL="stylesheet" href="ccjr2.css" type="text/css" />
<title>Introduction</title>
</head>
<body>
<p class="Author" style=" ">
Samuel Freeman
</p>
<h1>
Introduction
<br/>
John Rawls - An Overview
</h1>

and a piece of the <manifest> part of the OPF:

<item id="ClassGarmndItBT" href="fonts/ClassicalGaramondItalicBT.ttf" media-type="application/vnd-ms-truetype"/>
<item id="TrumpMediaevalLTStd-Italic" href="fonts/TrumpMediaevalLTStd-Italic.otf" media-type="application/vnd-ms-truetype"/>
<item id="TrumpMediaevalLTStd-Roman" href="fonts/TrumpMediaevalLTStd-Roman.otf" media-type="application/vnd-ms-truetype"/>
<item id="TrajanProBold" href="fonts/TrajanPro-Bold.otf" media-type="application/vnd-ms-truetype"/>
</manifest>

Anybody has a solution ??
erik5000 is offline   Reply With Quote