0

I m developing mobile web application for Android OS. Here, my requirement is to use "Thoma" font, which is not default for desktop browsers and Android SDK webkit? Can you please help me how to use non-default font in web app in Mobile app, specifically in Android OS

Thanks in Advance - sri

1 Answer 1

2

Copy the font you want to /assets/fonts folder (create the folders if you don't have them, most probably you don't).

Use something like this in your activity:

Typeface tf = Typeface.createFromAsset(this.getAssets(), "fonts/ARLRDBD.TTF");
titleBarText.setTypeface(tf);

In my case the font is Arial Bold.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.