|07-15-2010, 04:01 PM||#1|
Join Date: Jul 2009
Options to show programming source code in ePub
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?
|07-16-2010, 12:14 AM||#2|
Join Date: Dec 2009
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".
|07-21-2010, 11:41 AM||#3|
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.
|Thread Tools||Search this Thread|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Programming language code snippets in ebooks?||Connochaetes||Writers' Corner||7||10-18-2010 03:43 PM|
|Let's create a source code repository for DR 800 related code?||jraf||iRex||3||03-11-2010 01:26 PM|
|Source code available||AlfonsVH||HanLin eBook||3||01-03-2009 03:30 PM|
|prflrf source code?||daqi||Sony Reader Dev Corner||5||04-22-2008 12:28 PM|
|source code??||joblack||iRex||1||11-01-2006 01:16 PM|