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

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 07-15-2010, 03:01 PM   #1
pedgarcia
Connoisseur
pedgarcia has a complete set of Star Wars action figures.pedgarcia has a complete set of Star Wars action figures.pedgarcia has a complete set of Star Wars action figures.
 
Posts: 63
Karma: 250
Join Date: Jul 2009
Device: PRS-505
Options to show programming source code in ePub

Hi,

I'm trying to get the best way to show C Source code in ePub, to read in my Sony 505.

My first attempt was create a CSS with a specific monospace font, which worked. The problem is that it can show only 40 characters per line, using Sony's small font.

I understand that the reader controls the font size, but I'm wondering if it is possible to set a font size relative to the standard one, let's say 60% of the reader size.

Other than that, any suggestions?

Thanks

Paulo Garcia
pedgarcia is offline   Reply With Quote
Old 07-15-2010, 11:14 PM   #2
eping
ePub Maker
eping began at the beginning.
 
eping's Avatar
 
Posts: 120
Karma: 16
Join Date: Dec 2009
Location: Mordor
Device: iPad,Kindle 3, Nook 2
You can just try 60%. like "font-size:60%;"

Or you can try one of "xx-small, x-small, small, medium, large, x-large, xx-large" , they are relative to browsers and devices, or "smaller,larger".
eping is offline   Reply With Quote
Advert
Old 07-21-2010, 10:41 AM   #3
CrystalEYE
ePub investigator
CrystalEYE began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Feb 2009
Location: Augsburg, Germany
Device: Sony PSR-505, Amazon Kindle 2, Apple iPad, iPhone (iBooks, stanza)
"font-size:0.6em;" works fine as well.
CrystalEYE 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
Programming language code snippets in ebooks? Connochaetes Writers' Corner 7 10-18-2010 02:43 PM
Let's create a source code repository for DR 800 related code? jraf iRex 3 03-11-2010 12:26 PM
Source code available AlfonsVH HanLin eBook 3 01-03-2009 02:30 PM
prflrf source code? daqi Sony Reader Dev Corner 5 04-22-2008 11:28 AM
source code?? joblack iRex 1 11-01-2006 12:16 PM


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


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