View Full Version : Options to show programming source code in ePub

07-15-2010, 04:01 PM

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?


Paulo Garcia

07-16-2010, 12:14 AM
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
"font-size:0.6em;" works fine as well.