How to show persian twitts in Tahoma font?
![]() ![]() |
Hi
I want your help. I want this style to show persian (only persian, not english) texts (twitts) in Tahoma font with 12 pixel size.
but it affects english twitts, too. I want it to affect only on persian twitts. What i must add to the code? Thanks for yur helping!
|
![]() ![]() |
Oh god !
|
![]() ![]() |
Hi Alireza!
I didn't quite understand whether you're happy with your solution right now. I'm not aware of a way to really apply language-specific styles without explicitly marking the language, using the A simple workaround would be to change the style of each tweet which is changed to RTL, i.e adding:
tweets[i].style.fontFamily="tahoma"; tweets[i].style.fontSize="12px"; right after the tweets[i].style.display="block"; line (in the same block). This, however, will change the style of all characters in this tweet (including English ones).
Using Firefox's preferences window (Edit -> Preferences -> Content -> Fonts and Colors -> Advances) you can also define language specific font families and sizes, and prevent web pages from changing those selections. However, these settings apply for all websites, not just twitter. I hope that helps, somehow... :) |


