Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 12-23-2014, 08:36 PM   #16
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,730
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by jackie_w View Post
You can do this if you want, but why is it necessary? I've never needed to embed any fonts (monospace, small-caps, fancy initials etc.) to access them.
Is it still embedding if you access fonts outside of the eBook?
JSWolf is offline   Reply With Quote
Old 12-23-2014, 08:40 PM   #17
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,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by JSWolf View Post
Is it still embedding if you access fonts outside of the eBook?
I'd call that 'referencing', whereas 'embedding' means actually inserting the fonts into each epub. Just a confusion of terms then.
jackie_w is offline   Reply With Quote
Advert
Old 12-23-2014, 08:45 PM   #18
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,730
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by jackie_w View Post
I'd call that 'referencing', whereas 'embedding' means actually inserting the fonts into each epub. Just a confusion of terms then.
Yes. Just a confusion of terms. I've called it embedding if you have an @font-face in the CSS even if it references an external font.
JSWolf is offline   Reply With Quote
Old 12-24-2014, 06:03 PM   #19
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,133
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by JSWolf View Post
The book I am trying to fix is The Martian by Andy Weir. The problem is that the embedded fonts are some sort of free serif, freemono, and freesans. They are way too light for eInk and I did replace the main font and that worked fine. The sans-serif font is tolerable but the default sans-serif font is better. The mono font is lousy. It's very light. When using an external light source, I can read it. But using the front light, it's barely readable. Dark Courier is so much better.

I tried monospace with a div and that did not work. I tried the patch that jackie_w posted and that did not work. I'm beginning to think there is no monospace font.
With the same book, I used the HP's Courier Dark font OI'd added to my fonts directory on the Kobo -- as you oncluded, I could find no accessible monospace font on the Kobo. Then I used the following in the stylesheet using the wrapping monospace text in code tags:

Code:
@font-face {
    font-family: monospace;
    font-weight: normal;
    font-style: normal;
    src: url('res:///fonts/normal/Dark Courier');
    } 
@font-face {
    font-family: monospace;
    font-weight: normal;
    font-style: italic;
    src: url('res:///fonts/italic/Dark Courier');
    } 
@font-face {
    font-family: monospace;
    font-weight: bold;
    font-style: normal;
    src: url('res:///fonts/bold/Dark Courier');
    } 
@font-face {
    font-family: monospace;
    font-weight: bold;
    font-style: italic;
    src: url('res:///fonts/bolditalic/Dark Courier');
    }

code {
    font-family : "Dark Courier", monospace;
    }
and a sample from the text:

Code:
  <p class="paranon bold"><code>PATHFINDER LOG: SOL 0</code></p>

  <p class="para"><code>BOOT SEQUENCE INITIATED</code></p>

  <p class="para"><code>TIME 00:00:00</code></p>

  <p class="para"><code>LOSS OF POWER DETECTED, TIME/DATE UNRELIABLE</code></p>

  <p class="para"><code>LOADING OS...</code></p>

  <p class="parabreak">&nbsp;</p>

  <p class="para"><code>VXWARE OPERATING SYSTEM (C) WIND RIVER SYSTEMS</code></p>

  <p class="para"><code>PERFORMING HARDWARE CHECK:</code></p>

  <p class="para"><code>INT. TEMPERATURE: -34C</code></p>

  <p class="para"><code>EXT. TEMPERATURE: NONFUNCTIONAL</code></p>

  <p class="para"><code>BATTERY: FULL</code></p>

  <p class="para"><code>HIGAIN: OK</code></p>

  <p class="para"><code>LOGAIN: OK</code></p>

  <p class="para"><code>WIND SENSOR: NONFUNCTIONAL</code></p>

  <p class="para"><code>METEOROLOGY: NONFUNCTIONAL</code></p>

  <p class="para"><code>ASI: NONFUNCTIONAL</code></p>

  <p class="para"><code>IMAGER: OK</code></p>

  <p class="para"><code>ROVER RAMP: NONFUNCTIONAL</code></p>

  <p class="para"><code>SOLAR A: NONFUNCTIONAL</code></p>

  <p class="para"><code>SOLAR B: NONFUNCTIONAL</code></p>

  <p class="para"><code>SOLAR C: NONFUNCTIONAL</code></p>

  <p class="para"><code>HARDWARE CHECK COMPLETE</code></p>

  <p class="parabreak">&nbsp;</p>

  <p class="para"><code>BROADCASTING STATUS</code></p>

  <p class="para"><code>LISTENING FOR TELEMETRY SIGNAL...</code></p>

  <p class="para"><code>LISTENING FOR TELEMETRY SIGNAL...</code></p>

  <p class="para"><code>LISTENING FOR TELEMETRY SIGNAL...</code></p>

  <p class="para"><code>SIGNAL ACQUIRED</code></p>
which gives the Teletype text look I was looking for though it does make it specific to a Kobo with the Dark Courier font installed.

Last edited by DNSB; 12-24-2014 at 06:08 PM.
DNSB is offline   Reply With Quote
Old 12-24-2014, 07:42 PM   #20
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,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by DNSB View Post
... though it does make it specific to a Kobo with the Dark Courier font installed.
... which is why it's better, IMO, to add those Kobo-specific @font-faces to the kobo_extra.css file. That way the epub will get the Kobo-specific code added only during send-to-device to a Kobo. If sending to any other device (Sony, Android, Nook etc) it will get the 'plain vanilla' epub from the calibre library.
jackie_w is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fonts and font families troll05 General Discussions 3 05-06-2013 07:53 PM
Font-families and justified alignment ElMiko Sigil 46 03-04-2013 02:27 AM
More on working around the font-size issue billingd Kobo Reader 13 06-25-2010 08:49 PM
Multiple Font Families in one Ebook (K2) delphidb96 Amazon Kindle 1 12-13-2009 11:11 PM
505 vs. different font families in LRF pepak Sony Reader 8 09-29-2009 01:03 PM


All times are GMT -4. The time now is 02:44 AM.


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