Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 08-07-2012, 01:00 AM   #1
me too
Connoisseur
me too is no ebook tyro.me too is no ebook tyro.me too is no ebook tyro.me too is no ebook tyro.me too is no ebook tyro.me too is no ebook tyro.me too is no ebook tyro.me too is no ebook tyro.me too is no ebook tyro.me too is no ebook tyro.
 
Posts: 57
Karma: 1350
Join Date: Jul 2012
Location: India
Device: none
media-type

hello all
does any one know the media type of .ttf font file ,i had searched and found 2 such media types, but when i had validated it found as in-valid
thoose media types are
1. application/x-truetype-font
2. application/octet-stream

and i am working on mac,
any help would be regarded thank you
me too is offline   Reply With Quote
Old 08-07-2012, 02:22 AM   #2
me too
Connoisseur
me too is no ebook tyro.me too is no ebook tyro.me too is no ebook tyro.me too is no ebook tyro.me too is no ebook tyro.me too is no ebook tyro.me too is no ebook tyro.me too is no ebook tyro.me too is no ebook tyro.me too is no ebook tyro.
 
Posts: 57
Karma: 1350
Join Date: Jul 2012
Location: India
Device: none
errors

my css file is

@charset "UTF-8";
@namespace "http://www.w3.org/1999/xhtml";
@namespace epub "http://www.idpf.org/2007/ops";

@font-face{
font-family: 'QuicksandLight';
src: url('../fonts/FeENit2.ttf') format('truetype');
font-size:1.5em;
}
body {
font-family: 'QuicksandLight', Gothic, Helvetica, Arial;
background-color: rgb(240,240,240);
font-size: 1.5em;
line-height: 1.8em;

}

@font-face {
font-family:'QuicksandLight';
src: url('../fonts/FeENrm2.ttf');
font-style:italic;
font-size:20px;
}

h3
{
font-style:italic;
font-weight:normal;
}

}
.preamble::first-line
{
font-size:2em;
font-style:normal;
}
h2
{
font-style:italic;
font-weight:normal;
}
.we-the-people
{
color:#900;
font-style:italic;
font-weight:normal;
}
#signing
{
width:58%;
margin:0.5em auto 1em auto;
box-shadow:8px 8px 8px gray;
}

my package.opf is as follows

<manifest>
<item id="font1" href="fonts/FeENrm2.ttf" media-type="application/x-font-ttf"/>
<item id="font2" href="fonts/FeENit2.ttf" media-type="application/x-font-ttf"/>



but when validated i found 2 errors

ERROR: /Users/lrim3/Desktop/fazeela's projects/i did/epub3 font formatting-i did/epub2.epub/EPUB/css/style1.css: Font-face reference EPUB/fonts/FeENit2.ttfto non-standard font type application/x-font-ttf
ERROR: /Users/lrim3/Desktop/fazeela's projects/i did/epub3 font formatting-i did/epub2.epub/EPUB/css/style1.css: Font-face reference EPUB/fonts/FeENrm2.ttfto non-standard font type application/x-font-ttf

thank you
me too....
me too is offline   Reply With Quote
Old 08-07-2012, 03:08 AM   #3
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 3,183
Karma: 7180223
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
There are various examples here on the site about font embedding with the correct syntax.

Remember, the @font-face must be the first lines in a stylesheet. The @namespace and @charset are not used. You place that in the xml declaration of the xhtml files.
Toxaris is offline   Reply With Quote
Old 08-07-2012, 04:11 AM   #4
me too
Connoisseur
me too is no ebook tyro.me too is no ebook tyro.me too is no ebook tyro.me too is no ebook tyro.me too is no ebook tyro.me too is no ebook tyro.me too is no ebook tyro.me too is no ebook tyro.me too is no ebook tyro.me too is no ebook tyro.
 
Posts: 57
Karma: 1350
Join Date: Jul 2012
Location: India
Device: none
thank you

i had searched with in the forum , i find the answer by replacing the media type as "application/vnd.ms-opentype"
me too is offline   Reply With Quote
Old 08-07-2012, 04:37 AM   #5
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 3,183
Karma: 7180223
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
Don't forget my other comments. In general a font is not embedded for the body, since font embedding does not always works and a full font can be quite large.
For certain languages there is no choice though.
Toxaris is offline   Reply With Quote
Old 08-07-2012, 06:32 PM   #6
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 38,536
Karma: 19637653
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 1, iPhone 5
Truetype: .ttf = media-type="application/x-font-ttf"

Opentype: .otf = media-type="application/vnd.ms-opentype"
JSWolf is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Permissable Spine Media Type Error mimosawind ePub 5 10-07-2011 04:55 AM
digital media and printed media are the same... mattbiernat Amazon Kindle 0 08-13-2010 08:55 PM
iPad More People Recognizing That Media iPad Adaptations Feel Like CD-ROM Media kjk Apple Devices 1 06-14-2010 07:26 PM
Display File Type and Sort by Type pragmortal Calibre 7 09-21-2009 09:07 PM
Cooper blog: News media is lost about digital media, too Steven Lyle Jordan Deals, Freebies, and Resources (No Self-Promotion) 0 11-05-2007 11:06 AM


All times are GMT -4. The time now is 12:36 AM.


MobileRead.com is a privately owned, operated and funded community.