1

I have an Android device and its language is Arabic. I want to replace its font with my own one (which is nicer!), but the default font for Arabic in Android is NotoNaskhArabicUI (which is a UI font; see this for example).

If I simply put my desired font in the action, in buttons, the text is clipped.

How can I convert a regular TTF font to a UI font so it has stricter vertical boundaries?

0

You can try the Font Squirrel webfont generator: https://www.fontsquirrel.com/tools/webfont-generator It converts your uloaded font into woff and woff2 format, which later can be used with @font-face in CSS like this:

@font-face {
    font-family: 'noto_sans_arabic_uiregular';
    src: url('notosansarabicui-regular-webfont.woff2') format('woff2'),
         url('notosansarabicui-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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