"Dot" 出现在 "i" 中未显示在 TextView 中

"Dot" present in "i" is not showing in TextView

我有一个 TextView,因为我需要显示 "Stay away from the fire."。在这句话中,“dot”没有显示在 "i" 上面。添加截图以供参考。

并非所有 android 设备都存在此行为

我该如何解决这个问题?

试试这个对我有用

添加xml:

<TextView 
android:id="@+id/textview"
android:maxLines="1" // or any number of lines you want
android:ellipsize="end" />

通过向 TextView 添加 android:fontFeatureSettings="liga 0" 解决了这个问题

参考 Link : Text with "f" following "i", cannot see the dot on the "i", sans font