can we use css font-feature-settings in text View? add friction like 1/2 and other properties of font-feature-settings.
1 Answer
A good example and explanation found here.sorry for bad english. http://blog.sqisland.com/2014/11/android-stacked-fractions.html?utm_source=Android+Weekly&utm_campaign=22c3800806-Android_Weekly_130&utm_medium=email&utm_term=0_4eb677ad19-22c3800806-337885537
Typeface typeface = Typeface.createFromAsset(
getAssets(), "Nutso2.otf");
textView.setTypeface(typeface);
textView.setText("1/2 2/5");
textView.setFontFeatureSettings("afrc");
2 Comments
Suragch
This looks promising. Can you answer this question: stackoverflow.com/questions/27539237/…
Milos Simic Simo
This is working example! Thank you.