0

Hell0, I have a WordPress website which I have edited for urdu website. When opening this website on a computer it works well and there is no problem. But when you open this website through an android mobile and go to search bars and enter urdu words there, the words does not look clearly to us. This is the main problem which should be fixed. Check the website now for this issue at http://www.madaklasht-today.com.

I also used paddings, padding top, padding bottom, margin, margin top, margin bottom, height, line height etc for fully displaying the urdu text but each of theme did not work.

(Note): I am using Jameel Noori Nastaleeq font. Please fix the issue with the base of this font.

Thanks

1 Answer 1

0

you should use @font-face for including webfonts. src is not valid outside @font-face (https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/src) – nevertheless, there are a few very tolerant browsers.

Remove your styles from style.css line 45–52 and put the following on the top of the file:

@font-face {
    font-family: 'nafeesnastaleeq';
    src: url('fonts/nafees/nafeesnastaleeq.eot');
    src: url('fonts/nafees/nafeesnastaleeq.eot?#iefix') format('embedded-opentype'),
        url('fonts/nafees/nafeesnastaleeq.woff') format('woff'),
        url('fonts/nafees/nafeesnastaleeq.ttf') format('truetype'),
        url('fonts/nafees/nafeesnastaleeq.svg#nafeesnastaleeq') format('svg');
    font-weight: normal;
    font-style: normal;
}

now you can call your font in the body via

body {
    font-family: 'nafeesnastaleeq', sans-serif;
}
1
  • any news on this @Muhammad Yar?
    – s t
    Commented May 3, 2017 at 20:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.