Search code examples
cssasp.net-mvcfont-facemultilingualpersian

English numbers are shown Persian in asp website


Hi I have a multi language website (English and Persian). I used font face for display different fonts for different languages. If I add a persian font to my font face all numbers including English numbers in english pages shown as persian numbers and if I just use english font-face all numbers are shown in english. What should I do?

@font-face {
font-family: 'myNazanin';
    src: 
    local('B Nazanin'),
    url('../fonts/BNazanin.eot') format('eot'),  /* IE6–8 */
    url('../fonts/BNazanin.woff') format('woff'),  /* FF3.6+, IE9, Chrome6+, 
    Saf5.1+*/
    url('../fonts/BNazanin.ttf') format('truetype');
 }
 @font-face {
   font-family: 'my New Roman';
     src: 
    local('Times New Roman'),

 }
 body{

   font-family:myNazanin,'my New Roman';
 }

Solution

  • It solved! My Persian font wasn't standard font for web! I changed it to an standard font and now everything is working just fine!