Quantcast
Channel: MobileRead Forums - PocketBook
Viewing all articles
Browse latest Browse all 1255

Pocketbook HD2 - Reference Fonts

$
0
0
Hello,

I'm trying to reference a font in my ebook. However, when I view the novel on my Pocketbook HD2, the font is still "Times New Roman" and not "Georgia."

I've checked that I can select "Georgia" font on my device. However, I want the ebook to use "Times New Roman," and the diary entries within the story to use the"Georgia" font.

I've been able to embed the font, so I have a backup, but ideally I'd like to be able to reference the fonts instead of relying on embedding the fonts.

Here is the code I'm using in my stylesheet.css file:

Quote:

@font-face {
font-family: "Georgia" ;
font-weight: normal;
font-style: normal;
src: url(res:///mnt/ext1/system/fonts/georgia.ttf);
}
@font-face {
font-family: "Georgia" ;
font-weight: bold;
font-style: normal;
src: url(res:///mnt/ext1/system/fonts/georgiab.ttf);
}
@font-face {
font-family: "Georgia" ;
font-weight: normal;
font-style: italic;
src:url(res:///mnt/ext1/system/fonts/georgiai.ttf);
}
@font-face {
font-family: "Georgia" ;
font-weight: bold;
font-style: italic;
src: url(res:///mnt/ext1/system/fonts/georgiaz.ttf);
}
Here is the code I'm using in stylesheet.css for the paragraph's that are supposed to use "Georgia" font.

Quote:

.in_para_diff {
display: block;
font-family: "Georgia", serif;
font-size: 1em;
line-height: 1.2em;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
margin-top: 0;
text-align: justify;
text-indent: 1em
}

I'm not sure what it is that I'm missing?

I thought maybe the src url I'm using may not be accurate anymore. However I don't know how to find out what is the file path for my "system/font folder" on the device.

I would appreciate any and all help in solving this mystery.

Thanks,
Amalthia

Viewing all articles
Browse latest Browse all 1255

Trending Articles