Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > PocketBook

Notices

Reply
 
Thread Tools Search this Thread
Old 02-25-2022, 06:20 PM   #1
Amalthia
Wizard
Amalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beauty
 
Amalthia's Avatar
 
Posts: 1,160
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
Pocketbook HD2 - Reference Fonts

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
Amalthia is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
360 Pocketbook touch HD2 frozen on cover of the last book Vaestor PocketBook 1 04-30-2021 04:34 PM
Book Title on Pocketbook Touch HD2 is wrong CC-Peter PocketBook 2 01-13-2018 06:10 AM
Content Is it possible to reference fonts with KF8? JSWolf Amazon Kindle 7 12-25-2014 08:21 AM
REFERENCE: List of Fonts that are available on a K5 twobob Kindle Developer's Corner 1 10-18-2012 07:57 AM
htc hd2 android hd2 caveking66 Android 1 09-08-2010 12:21 PM


All times are GMT -4. The time now is 05:06 PM.


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