View Single Post
Old 06-25-2013, 07:33 AM   #5
il_mix
Enthusiast
il_mix can self-interpret dreams as they happen.il_mix can self-interpret dreams as they happen.il_mix can self-interpret dreams as they happen.il_mix can self-interpret dreams as they happen.il_mix can self-interpret dreams as they happen.il_mix can self-interpret dreams as they happen.il_mix can self-interpret dreams as they happen.il_mix can self-interpret dreams as they happen.il_mix can self-interpret dreams as they happen.il_mix can self-interpret dreams as they happen.il_mix can self-interpret dreams as they happen.
 
Posts: 39
Karma: 20178
Join Date: Jun 2013
Device: Kobo Touch
Nope, I don't get it...

I've installed a monospace font (Dark Courier), and I can select it in my Kobo.
I tested this new code
Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Book title test</title>
<meta name="author" content="someone"/>
<style type="text/css">
body {
	font-family: Gothic;
}
pre {
 background: #eeeeee;
}
code {
	font-family: Dark Courier;
}
</style>
</head>

<body>
<h1><b>1 My chapter</b></h1>
<h2><b>1.1 Introduction</b></h2>
<p>Here is a line with <em>normal font</em>.</p>
<p>Here is another one.</p>
<pre><code>for(int i = 0; i < 100; i++) {
  printf("Why the hell it's not monospace?");
}</code></pre>
<p>That's all folks!</p>
</body>
</html>
But everything will still be displayed with the same font...
I didn't embed the font since it is already on the Kobo. By the way, if I embed it I get anything but the code in Dark Courier, again.

SIDE NOTE: I have the 2.6.1 firmware

Last edited by il_mix; 06-25-2013 at 07:41 AM.
il_mix is offline   Reply With Quote