View Single Post
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: 47,105
Karma: 169815798
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