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 02-10-2010, 06:15 PM   #1
vidgej
Member
vidgej began at the beginning.
 
vidgej's Avatar
 
Posts: 23
Karma: 10
Join Date: Jan 2010
Device: Kindle 3
Pocket Pro epub font change problem

I have a Pocket Pro and I really need to change the epub font of my books cuz the epub font output from Calibre is not black enough. So I tried this:

@font-face {
font-family: "Freestyle Script";
src:url(res:///Data/FONT/FREESCPT.TTF);
}
in the CSS and put your font at FONT/FREESCPT.TTF of internal storage.

but it didnt work. Somebody please give me the detailed step by step procedure. Thanks.

If you could also give me the instructions on how to change epub to BOLDface, that will be very much appreciated. Thanks again!
vidgej is offline   Reply With Quote
Old 02-10-2010, 07:38 PM   #2
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
See Fonts and Epub - What works on Sony, Works for Pocket Pro too!

Replace DATA/FONT with abook/fonts and put the fonts in the "fonts" folder on the SD card. To use bold, add the following:
Code:
body {
    font-family: "Freestyle Script";
	font-weight: bold;
}
Note that you need to add the bold variant of the font as a font face for this to work as you would expect.
wallcraft is offline   Reply With Quote
Advert
Old 02-10-2010, 09:34 PM   #3
vidgej
Member
vidgej began at the beginning.
 
vidgej's Avatar
 
Posts: 23
Karma: 10
Join Date: Jan 2010
Device: Kindle 3
Quote:
Originally Posted by wallcraft View Post
See Fonts and Epub - What works on Sony, Works for Pocket Pro too!

Replace DATA/FONT with abook/fonts and put the fonts in the "fonts" folder on the SD card. To use bold, add the following:
Code:
body {
    font-family: "Freestyle Script";
	font-weight: bold;
}
Note that you need to add the bold variant of the font as a font face for this to work as you would expect.
Thank you very much! I haven't tried it yet cuz im still at work right now. But im pretty sure it will work! You have no idea how life-changing your reply will be. I've only been a member of MobileRead for a month but i've already learned a lot. Thanks so much again!
vidgej is offline   Reply With Quote
Old 02-11-2010, 08:51 PM   #4
vidgej
Member
vidgej began at the beginning.
 
vidgej's Avatar
 
Posts: 23
Karma: 10
Join Date: Jan 2010
Device: Kindle 3
Quote:
Originally Posted by wallcraft View Post
See Fonts and Epub - What works on Sony, Works for Pocket Pro too!

Replace DATA/FONT with abook/fonts and put the fonts in the "fonts" folder on the SD card. To use bold, add the following:
Code:
body {
    font-family: "Freestyle Script";
	font-weight: bold;
}
Note that you need to add the bold variant of the font as a font face for this to work as you would expect.
It worked! But it didnt work with some bold fonts, like tahoma bold and verdana bold. i put the

body {
font-family: "Freestyle Script";
font-weight: bold;
}

the font turned bold but the font style i wanted didnt take effect. i followed the procedure. Although i like the original font output of Calibre in bold, it would be nicer if i could use other bold fonts.
vidgej is offline   Reply With Quote
Old 02-11-2010, 09:13 PM   #5
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
Quote:
Originally Posted by vidgej View Post
it would be nicer if i could use other bold fonts.
An approach I favor is to redefine serif (and san-serif if you want, but serif is the default) to be your input font. That way there is no need to override the "default" font:

Code:
@font-face {
  font-family: "Constantia", serif, sans-serif;
  font-weight: normal;
  font-style: normal;
  src: url(res:///abook/fonts/CONSTAN.TTF);
}
@font-face {
  font-family: "Constantia", serif, sans-serif;
  font-weight: bold;
  font-style: normal;
  src: url(res:///abook/fonts/CONSTANBD.TTF);
}
@font-face {
  font-family: "Constantia", serif, sans-serif;
  font-weight: normal;
  font-style: italic;
  src: url(res:///abook/fonts/CONSTANI.TTF);
}
@font-face {
  font-family: "Constantia", serif, sans-serif;
  font-weight: bold;
  font-style: italic;
  src: url(res:///abook/fonts/CONSTANBI.TTF);
}

body {
	font-weight: bold;
}
wallcraft is offline   Reply With Quote
Advert
Old 02-12-2010, 08:09 AM   #6
vidgej
Member
vidgej began at the beginning.
 
vidgej's Avatar
 
Posts: 23
Karma: 10
Join Date: Jan 2010
Device: Kindle 3
Quote:
Originally Posted by wallcraft View Post
An approach I favor is to redefine serif (and san-serif if you want, but serif is the default) to be your input font. That way there is no need to override the "default" font:

Code:
@font-face {
  font-family: "Constantia", serif, sans-serif;
  font-weight: normal;
  font-style: normal;
  src: url(res:///abook/fonts/CONSTAN.TTF);
}
@font-face {
  font-family: "Constantia", serif, sans-serif;
  font-weight: bold;
  font-style: normal;
  src: url(res:///abook/fonts/CONSTANBD.TTF);
}
@font-face {
  font-family: "Constantia", serif, sans-serif;
  font-weight: normal;
  font-style: italic;
  src: url(res:///abook/fonts/CONSTANI.TTF);
}
@font-face {
  font-family: "Constantia", serif, sans-serif;
  font-weight: bold;
  font-style: italic;
  src: url(res:///abook/fonts/CONSTANBI.TTF);
}

body {
	font-weight: bold;
}
Thanks so much!
vidgej is offline   Reply With Quote
Old 02-12-2010, 09:32 AM   #7
93terp
Fear The Turtle!
93terp ought to be getting tired of karma fortunes by now.93terp ought to be getting tired of karma fortunes by now.93terp ought to be getting tired of karma fortunes by now.93terp ought to be getting tired of karma fortunes by now.93terp ought to be getting tired of karma fortunes by now.93terp ought to be getting tired of karma fortunes by now.93terp ought to be getting tired of karma fortunes by now.93terp ought to be getting tired of karma fortunes by now.93terp ought to be getting tired of karma fortunes by now.93terp ought to be getting tired of karma fortunes by now.93terp ought to be getting tired of karma fortunes by now.
 
93terp's Avatar
 
Posts: 866
Karma: 4035032
Join Date: Sep 2009
Location: Margaritaville
Device: KV, Kobo Forma, Kobo A1LE, KO3, K3
For the font changes via CSS, is there a parallel way to do this via the Calibre GUI instead? I'm not a CSS expert by any stretch of the imagination, but would love to have darker fonts as well as the OP.

Thanks!
93terp is offline   Reply With Quote
Old 02-12-2010, 11:19 AM   #8
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
Quote:
Originally Posted by 93terp View Post
For the font changes via CSS, is there a parallel way to do this via the Calibre GUI instead?
Yes, this is Extra CSS under Look & Feel.
wallcraft is offline   Reply With Quote
Old 02-12-2010, 12:30 PM   #9
93terp
Fear The Turtle!
93terp ought to be getting tired of karma fortunes by now.93terp ought to be getting tired of karma fortunes by now.93terp ought to be getting tired of karma fortunes by now.93terp ought to be getting tired of karma fortunes by now.93terp ought to be getting tired of karma fortunes by now.93terp ought to be getting tired of karma fortunes by now.93terp ought to be getting tired of karma fortunes by now.93terp ought to be getting tired of karma fortunes by now.93terp ought to be getting tired of karma fortunes by now.93terp ought to be getting tired of karma fortunes by now.93terp ought to be getting tired of karma fortunes by now.
 
93terp's Avatar
 
Posts: 866
Karma: 4035032
Join Date: Sep 2009
Location: Margaritaville
Device: KV, Kobo Forma, Kobo A1LE, KO3, K3
Quote:
Originally Posted by wallcraft View Post
Yes, this is Extra CSS under Look & Feel.
Thanks Wallcraft!
93terp 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
Pocket Pro Screen Problem hapmas77 Astak EZReader 13 05-07-2010 02:45 PM
Big problem with my Pocket Pro Laura81 Astak EZReader 38 03-03-2010 10:34 AM
Font Sizes on Pocket Pro misterken Astak EZReader 7 12-09-2009 12:14 AM
Pocket Pro battery problem solved??? ekaser Astak EZReader 35 11-03-2009 03:08 AM
pdf converted to epub file not working on my EZ Pocket Pro Pro luvshihtzu Astak EZReader 2 10-20-2009 07:30 PM


All times are GMT -4. The time now is 03:52 AM.


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