Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 02-08-2013, 06:06 PM   #16
JimmyR
Ebook Enthusiast
JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.
 
Posts: 212
Karma: 839738
Join Date: Jun 2011
Device: Kindle Keyboard, Touch, PW
Quote:
Originally Posted by cubemike99 View Post
is it possible to remove the other fonts (not the 6 default and not user added)
Yes, but it requires usbnetwork:

http://www.mobileread.com/forums/sho...24#post2358224

^ That actually hides the fonts. Not sure if removing them is advisable.
JimmyR is offline   Reply With Quote
Old 02-08-2013, 06:09 PM   #17
cubemike99
Enthusiast
cubemike99 ought to be getting tired of karma fortunes by now.cubemike99 ought to be getting tired of karma fortunes by now.cubemike99 ought to be getting tired of karma fortunes by now.cubemike99 ought to be getting tired of karma fortunes by now.cubemike99 ought to be getting tired of karma fortunes by now.cubemike99 ought to be getting tired of karma fortunes by now.cubemike99 ought to be getting tired of karma fortunes by now.cubemike99 ought to be getting tired of karma fortunes by now.cubemike99 ought to be getting tired of karma fortunes by now.cubemike99 ought to be getting tired of karma fortunes by now.cubemike99 ought to be getting tired of karma fortunes by now.
 
Posts: 36
Karma: 260446
Join Date: Feb 2013
Device: Kindle Paperwhite
Much obliged. Now if could only get those monospace fonts for my programming books...
cubemike99 is offline   Reply With Quote
Old 02-10-2013, 12:14 AM   #18
DuckieTigger
Wizard
DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.
 
DuckieTigger's Avatar
 
Posts: 1,880
Karma: 33147542
Join Date: Dec 2011
Device: PW1, Galaxy S5, Galaxy Note 4, Nexus 7 (2013), Nexus 10
Quote:
Originally Posted by cubemike99 View Post
Much obliged. Now if could only get those monospace fonts for my programming books...
Depends on what you want to do. The PW comes with a mono-spaced font built in. No need to even install any fonts.

All you need to do is put the monospaced sections into <code> .. </code> blocks in your html inside the book. That can be inside epub, kf8, or plain html. Convert that epub/html into mobi or azw3, or tweak a azw3 in calibre. If you need more fancy things / different fonts, you need to use css stylesheets and call for a specific font by name that you already installed or embed into the book.

This html:
Code:
<html><head><title>Test</title></head><body>
<h1 align=center>Testing &lt;code&gt;</h1>
<p align=justify>Normal font: <code>monospaced</code>. Normal again.</p>
<p align=left><code> 0123456789 ABCDEFGHIJ this is all monospaced<br>new line.</code></p>
</body></html>
Drag that into into calibre, it will create a book of type zip. Convert that book from zip to mobi (I chose old mobi), and send it to your PW. It will come out like this (click on image to enlarge screenshot from PW):

Click image for larger version

Name:	monospace.png
Views:	60
Size:	12.6 KB
ID:	101010
DuckieTigger is offline   Reply With Quote
Old 02-10-2013, 09:26 AM   #19
PoP
Antonín ♯♭♪♮♫ ᵖʸᶠᵍᶜʳˡ
PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.
 
PoP's Avatar
 
Posts: 519
Karma: 7391817
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3.₄, PRS-350, SGS3, Rπ, iPad Air
Quote:
Originally Posted by DuckieTigger View Post
...The PW comes with a mono-spaced font built in. No need to even install any fonts.

All you need to do is put the monospaced sections into <code> .. </code> blocks in your html inside the book. ...
K to you DuckieTigger.

This also works nicely on a Kindle Keyboard. With the Droid_Sans Mono font installed in the font hack it gives:
Click image for larger version

Name:	Droid_Sans_Mono screen_shot-20245.gif
Views:	94
Size:	9.9 KB
ID:	101019
PoP is offline   Reply With Quote
Old 02-10-2013, 11:34 AM   #20
DuckieTigger
Wizard
DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.
 
DuckieTigger's Avatar
 
Posts: 1,880
Karma: 33147542
Join Date: Dec 2011
Device: PW1, Galaxy S5, Galaxy Note 4, Nexus 7 (2013), Nexus 10
Quote:
Originally Posted by PoP View Post
K to you DuckieTigger.

This also works nicely on a Kindle Keyboard. With the Droid_Sans Mono font installed in the font hack it gives:
Attachment 101019
Now that is interesting. That is definitely a different mono font. I assume it does not work without having Droid Sans Mono on the KK? I will have a look at the fonts that are on the PW. Changing my sample book to use Droid Sans Mono did only change the "normal" part of it - the monospaced part is still the fall-back font for mono.

And just extracted all the fonts from PW to take a look, and it uses: KindleBlackboxRegular.ttf


Have to keep looking on how to change the default mono font. But then the one on the PW does look quite nice, and comes in regular, bold, italic and bold-italic.
DuckieTigger is offline   Reply With Quote
Old 02-10-2013, 01:46 PM   #21
PoP
Antonín ♯♭♪♮♫ ᵖʸᶠᵍᶜʳˡ
PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.
 
PoP's Avatar
 
Posts: 519
Karma: 7391817
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3.₄, PRS-350, SGS3, Rπ, iPad Air
Quote:
Originally Posted by DuckieTigger View Post
... I assume it does not work without having Droid Sans Mono on the KK?...
It still works. I did not try on my device but at least in Click image for larger version

Name:	v2.751.jpg
Views:	50
Size:	15.1 KB
ID:	101025 it gives:
Click image for larger version

Name:	Kindle Previewer 2.751.jpg
Views:	50
Size:	46.3 KB
ID:	101024

Last edited by PoP; 02-10-2013 at 04:24 PM.
PoP is offline   Reply With Quote
Old 02-10-2013, 05:15 PM   #22
cubemike99
Enthusiast
cubemike99 ought to be getting tired of karma fortunes by now.cubemike99 ought to be getting tired of karma fortunes by now.cubemike99 ought to be getting tired of karma fortunes by now.cubemike99 ought to be getting tired of karma fortunes by now.cubemike99 ought to be getting tired of karma fortunes by now.cubemike99 ought to be getting tired of karma fortunes by now.cubemike99 ought to be getting tired of karma fortunes by now.cubemike99 ought to be getting tired of karma fortunes by now.cubemike99 ought to be getting tired of karma fortunes by now.cubemike99 ought to be getting tired of karma fortunes by now.cubemike99 ought to be getting tired of karma fortunes by now.
 
Posts: 36
Karma: 260446
Join Date: Feb 2013
Device: Kindle Paperwhite
Oh guys, I think you misunderstood me. I have monospaced font wherever I need it. The question was whether I'm able to change the default monospace font with he USE_ALT_FONTS hack.
cubemike99 is offline   Reply With Quote
Old 02-10-2013, 08:42 PM   #23
DuckieTigger
Wizard
DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.
 
DuckieTigger's Avatar
 
Posts: 1,880
Karma: 33147542
Join Date: Dec 2011
Device: PW1, Galaxy S5, Galaxy Note 4, Nexus 7 (2013), Nexus 10
Quote:
Originally Posted by cubemike99 View Post
Oh guys, I think you misunderstood me. I have monospaced font wherever I need it. The question was whether I'm able to change the default monospace font with he USE_ALT_FONTS hack.
Aehm, no. I tried a few things to no avail. That leaves only to install your monospaced font via USE_ALT_FONTS and calling it directly by name, rather than font-family. But that would require of editing your books, possibly only the stylesheets in them.
DuckieTigger is offline   Reply With Quote
Old 02-21-2013, 05:26 PM   #24
JimmyR
Ebook Enthusiast
JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.
 
Posts: 212
Karma: 839738
Join Date: Jun 2011
Device: Kindle Keyboard, Touch, PW
Quote:
Originally Posted by cubemike99 View Post
Oh guys, I think you misunderstood me. I have monospaced font wherever I need it. The question was whether I'm able to change the default monospace font with he USE_ALT_FONTS hack.
I was able to change the default monospace font- KindleBlackboxC- to another- DejaVu Sans Mono. If you're using /etc/fonts/local.conf, try adding this:
Code:
  <match target="pattern">
    <test qual="any" name="family"><string>KindleBlackboxC</string></test>
    <edit name="family" mode="assign"><string>DejaVu Sans Mono</string></edit>
  </match>
Replace DejaVu Sans Mono with your preferred monospace font.

Last edited by JimmyR; 02-21-2013 at 05:31 PM.
JimmyR is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
K3 the question of downgrading from 3.4 to 3.3 bruce1203 Kindle Developer's Corner 8 10-29-2012 12:03 AM
Touch Downgrading to 1.9.4 actiss Kobo Reader 4 07-09-2011 02:51 PM
JB5: downgrading FW->possible ? smallhagrid Ectaco jetBook 5 08-19-2010 04:10 PM
Classic Downgrading nook? jjjason1 Barnes & Noble NOOK 5 02-06-2010 11:00 PM
Downgrading K2 firmware hmemcpy Amazon Kindle 7 05-17-2009 10:36 PM


All times are GMT -4. The time now is 02:13 PM.


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