View Single Post
Old 03-13-2010, 06:01 PM   #39
Tirwal
Enthusiast
Tirwal has a complete set of Star Wars action figures.Tirwal has a complete set of Star Wars action figures.Tirwal has a complete set of Star Wars action figures.Tirwal has a complete set of Star Wars action figures.
 
Posts: 45
Karma: 369
Join Date: Dec 2009
Location: Spain
Device: BQ Cervantes 4
Quote:
Originally Posted by Dopedangel View Post
Hey Tirwal
I had an idea and was wondering can you implement in your firmware or is it even possible.
Using epub tweaker from here
https://www.mobileread.com/forums/showthread.php?t=70600
I can edit the css and add external font to my epub

Code:
@font-face {
  font-family: "Tirwal";
  font-weight: normal;
  font-style: normal;
  src: url(res:///abook/fonts/TIRWAL.TTF);
}
@font-face {
  font-family: "Tirwal";
  font-weight: bold;
  font-style: normal;
  src: url(res:///abook/fonts/TIRWALBD.TTF);
}
@font-face {
  font-family: "Tirwal";
  font-weight: normal;
  font-style: italic;
  src: url(res:///abook/fonts/TIRWALI.TTF);
}
@font-face {
  font-family: "Tirwal";
  font-weight: bold;
  font-style: italic;
  src: url(res:///abook/fonts/TIRWALBI.TTF);
}

body { font-family: "Tirwal", serif;}
So that should allow me to link to an external font in my epub

so I was wondering if you could write a software that would lets say overwrite the font with a font from a list of fonts available that should allow us to change fonts in epub
from inside the reader.
Hi:

I think it's possible to make some scripts that copy internal font to external font named tirwal or something. I'll try it. Thanks for your support.

Bye
Tirwal is offline   Reply With Quote