View Single Post
Old 01-04-2013, 05:45 AM   #23
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
@jackie_w,

Thank you for the answer! I do not know why Sanskrit 2003 has this effect but we can use it for our purpose.

css
Code:
body {margin-left:0;
    margin-right:0;
    margin-top:0;
    margin-bottom:0;
    font-family:"mynormalfontname";}

.code {font-family:"mymonospacefontname";}
p.code {margin-left:2%;
    margin-right:2%;
    margin-top:2%;
    margin-bottom:2%;
    font-family:"mymonospacefontname";}
body
Code:
<p>This is <span class="code">some code</span> follow by normal text.
</p>

<p class ="code">This is a block of code.
</p>
If we then select Sanskrit 2003 the reader should use the fonts specified in the css without displaying a single char in Sanskrit 2003.
tshering is offline   Reply With Quote