View Single Post
Old 01-05-2014, 03:22 PM   #12
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by AlexBell View Post
... but am a little miffed that the sans fonts show italics and numbers in serif. I want to know how to install my own font families with all the variants.
I've noticed that the problem is actually worse than this. If you select a custom serif font family in your Mantano theme, all 4 variants work properly as long as your epub only needs serif. However, if your epub has some css containing font-family:sans-serif and/or font-family:monospace then only the regular variant is correctly displayed. The italic/bold/bolditalic variants of sans-serif/monospace display in the serif variant instead. So nice try, Mantano, but could do better (although most people probably won't notice or care).

As a result, I've gone back to my earlier method of font customisation in Mantano, which I've been using for 2 years. I'm happy to share this with you, BUT, it does require a minor one-line edit to every epub (or at least all those which need all 4 variants of serif/sans/mono to work properly) and so may be regarded as too much like hard work.

A brief outline of the solution is:
  1. Create a small css file (e.g. mantano.css) full of the necessary @font-faces for serif/sans-serif/monospace and store it somewhere on the android device.
  2. Make sure the Mantano theme you're using has Font Family set to Default.
  3. Insert a one-line @import statement in each css file in the epub, which points to your mantano.css file.

Items 1 & 2 are simple one-off exercises. Item 3 is trivial but possibly too tedious to comtemplate. If you'd like to try it anyway, let me know and I'll try and walk you through it in more detail.
jackie_w is offline   Reply With Quote