hi all, I need some font equivalence in ios and android (at least that's what is customer's requirement)
I use following code to decide a font size for ios. UIFontDescriptor *bigDescriptor = [UIFontDescriptor preferredFontDescriptorWithTextStyle:UIFontTextStyleHeadline]; UIFont *aFont = [UIFont fontWithDescriptor:bigDescriptor size:0]; CGFloat pointSize = fminf(fmaxf((aFont.pointSize * 1.1), 11), 56); // 12 returnFont = [UIFont fontWithName:@"Avenir-roman" size:pointSize]; I also use same font in android the list item label font is "Avenir-roman" 20dp now how is iphones pointwidth and androids dpi compared, is there any comparision available ? To give an example, in the above code I dont nderstand what the calculation line is intended for, as i inherited the code from somebody who is not traceable. But i figured out that pointSize comes as 17 in iphone or ipad and it is multiplied by 1.1 and a value of 18.7 is passed. the problem is, this looks bolder and wider than 20dp in android. pfa screen hsot for those who have an eye for detail. what can i do to match the fonts to make them near-exact Another related issue is quite strange. I use same font in html part of my ui in the application. in Android, native font does not change in size when size is changed from accessibility settings, but html view changes font size. In ios, it is reverse, native code font changes size with accessibility settings change, but html does not . I am perplexed how accesibility is defined ! thanks in advance -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.