-8

I want to use the same font in my Android app, which I use in my iOS app.

In my iOS app I only use the system font with.

textField.font = UIFont.systemfontOfSize(12)

Which Android font is the closest to iOS default System Font?

Eric Aya
  • 69,473
  • 35
  • 181
  • 253
Michael
  • 32,527
  • 49
  • 210
  • 370
  • Helvetica font family. Though I think this question is not fit for SO, as it asks us to recommend and not solve a problem. – Skynet Sep 23 '15 at 13:22
  • 4
    What does "Android font" mean? Beyond that, which "iOS default System Font" interests you? I don't even *use* iOS, and in 10 seconds' of searching, I can find that there are [several "iOS default System Font" variants, depending on iOS version](http://stackoverflow.com/a/3838662/115145). What does "the closest" mean? – CommonsWare Sep 23 '15 at 13:24
  • ^ Upvote for not using iOS! – Skynet Sep 23 '15 at 13:25
  • Helvetica is the system font for iOS6 and iOS7..closest means to use Helvetica family – Bhavin Bhadani Sep 23 '15 at 13:31
  • helvetica font is for default font of iOS , and for using it in your android application you can simply download the font and by using this [library](https://github.com/soroushjavdan/CustomFontWidgets) make your custom font views . – Soroush Sep 24 '15 at 21:07

1 Answers1

1

I'm not sure why you'd want to do that. You probably shouldn't be doing whatever you're trying to do..

But, it's worth noting that you can package a font within your apk. In other words, it doesn't matter if androids fonts don't cut it for you, you can just put IOS's font into your app (I am not a lawyer).

Put it in your recourses and use it with something like:

Typeface typeFace= Typeface.createFromAsset(getAssets(), "font/font1.ttf");

TextView.setTypeface(typeFace);
BooleanCheese
  • 615
  • 12
  • 34