Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What kind of font I should use for TextView that can support all languages?

I have a textView that can display a Text in any languages ( End-users input the text).

I am wondering that what font I should use?

In this article: http://www.google.com/design/spec/style/typography.html#typography-roboto-noto

Google says:

To support all languages worldwide, Google recommends using Roboto for languages that use the Latin, Greek, and Cyrillic scripts and Noto for all other languages.

If I understand it correctly. There is no single font file (Roboto|Noto) can support all languages.

Anyone know what font I can use? Should default font (Android decides) be a choice?

Thanks!

like image 520
Loc Avatar asked Dec 05 '14 19:12

Loc


People also ask

What font works for all languages?

Helvetica World Hold on though, because Helvetica World could be the solution you're looking for. Designed by Linotype, this font is an updated version of Helvetica that supports a whopping 102 languages and writing systems from all over the globe.

How to change font of TextView in Android?

Adding fonts to a TextView To set a font for the TextView , do one of the following: In the layout XML file, set the fontFamily attribute to the font file you want to access. Open the Properties window to set the font for the TextView . Select a view to open the Properties window.

What is fontFamily in Android?

A font family is a set of font files along with its style and weight details. In Android, you can create a new font family as an XML resource and access it as a single unit, instead of referencing each style and weight as separate resources.

Where to put fonts in Android?

1 - Right-click the res folder and go to New > Android resource directory. The New Resource Directory window appears. 2 - In the Resource type list, select font, and then click OK. 3 - Add your font files in the font folder just by a simple copy and paste.


2 Answers

Android already does this for you. Read the paragraph before that cited paragraph:

Since the Ice Cream Sandwich release, Roboto has been the standard typeface on Android. Since Froyo, Noto has been the standard typeface on Android for all languages not covered by Roboto.

So don't change the font/typeface used and you will be fine.

Remember that, that design site is not only for android, but also for the web, Chrome os etc as well for Google's unified/cross platform design, hence the wording.

like image 158
Mattias Isegran Bergander Avatar answered Sep 20 '22 17:09

Mattias Isegran Bergander


If you are interested in trying different fonts than Roboto or Noto, http://en.wikipedia.org/wiki/Unicode_font#List_of_Unicode_fonts displays a list of some fonts along with a number for each category/language on characters it supports. The "GNU Unifont" font appears to be a good choice.

like image 40
mbomb007 Avatar answered Sep 22 '22 17:09

mbomb007