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!
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.
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With