html - Showing English and Gujarati text on the same page | Font issue -


i have application, text in english , gujarati language. english , gujarati text there on same page. like:

name/નામ 

now problem if have verdana or other font in body tag applied through css, font applied on gujarati text , text not visible correctly, application uses absolute positioning (and texts in div).

if use shruti font, english text not displayed correctly.

applying verdana in name , shruti in નામ not feasible have change application lot that.

please let me know alternative/solution.

a simple solution surround gujarati content span has language-specific class assigned it.

<span class="gujarati">...</span> 

you can set css verdana applied elements elements gujarati class name.

body { font-family: verdana; } .gujarati { font-family: shruti; } 

this way not have modify content, gujarati part.


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -