View Single Post
Old 12-23-2014, 11:41 AM   #4
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 JSWolf View Post
The monospace font is overridden and I do not get a monopsace font. Would this work is the p was changed to a div?
As long as you've also taken steps (as per icallaci's link re: kobo_extra.css) to point the Kobo at a sideloaded monospace font the answer should be 'yes'. Similarly, this 2nd option should also work:
Code:
<p class="para-wlf"><span class="monospace">This is the paragraph.</span></p>
The root of the problem with the mono class being defined on the <p> tag is that the fw internal css override (userStyle.css) for the Adobe renderer contains this css code
Code:
body, p {font-family: -ua-default !important;}
where you can see that the <p> tag is being forcibly overridden. Consequently, a 3rd option is to use the Patcher to change it to
Code:
body    {font-family: -ua-default !important;}
For me, this is much less effort than changing the html in every epub, but whether it's a good solution for you will depend on how/where you allow font-family code in your epub css. For many people it may make things worse, but I'm happy to post the extra Patch for fw 3.12 if you think it will help.

Last edited by jackie_w; 12-23-2014 at 11:43 AM.
jackie_w is offline   Reply With Quote