tim.lian
tim.lian

Reputation: 1

Customize Android Fonts

Now, I'm developing an android application, which needs to show some special characters. I need this font "Arial Unicode MS" to show the characters correctly. And I add the following code in my main activity:

EditText editText = (EditText) findViewById(R.id.flipped_window);
Typeface font = Typeface.createFromAsset(getAssets(),"ARIALUNI.TTF");
editText.setTypeface(font);

It does work. However, the size of this font file is too big, it's 22,731 kb.

Is there better solution for this problem? Thanks.

Upvotes: 0

Views: 1051

Answers (3)

Milad gh
Milad gh

Reputation: 211

buddy, you can decrease font size with Font creator software with elimination unused characters in font. you can decrease it to 50,60kb also :-)

password download link : www.downloadsoftware.ir

Upvotes: 0

Andrew Scagnelli
Andrew Scagnelli

Reputation: 1604

As Craig mentioned, you're illegally redistributing a copyrighted font.

My best guess would be to first look at all the glyphs available in Droid Sans; in my experience, it should be good enough unless you're looking to use it for formatting.

If you can't do that, create the symbols you need as PNG or GIF images and insert them inline. (GIFs will be substantially smaller for black & white).

Upvotes: 2

Craig
Craig

Reputation: 3297

Your real problem is redistributing a copyrighted font. :-)

Upvotes: 4

Related Questions