如何在 android 应用程序中使用 'apple system font'

How to use 'apple system font' in android application

我们在 IOS 中使用 'apple-system-font' 开发了一个应用程序,我们喜欢这种字体,因此我们希望对 android 应用程序中的所有 TextView 使用相同的字体。 那么有没有什么方法可以像下面这样在 android 应用程序中使用 'apple-system-font':

<TextView
    ...
    android:fontFamily="-apple-system-font" />

最新iOS使用'Helvetica Neue'作为系统字体。您需要下载字体文件,然后将其添加到您的资源中。 this Whosebug question.

中解释了此过程

请注意,随着时间的推移,Apple 可能会选择更改此字体。此外,即使字体清晰易读,Android 设备上的用户可能不习惯看到它。这可能会给他们带来 'different' 体验。在生产应用程序中添加该功能之前,请确保您进行了适当的用户测试。