View Single Post
Old 03-02-2010, 07:48 AM   #35
Dopedangel
Wizard
Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.
 
Dopedangel's Avatar
 
Posts: 1,794
Karma: 30548723
Join Date: Dec 2006
Location: Singapore
Device: Boyue
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.
Dopedangel is offline   Reply With Quote