简体   繁体   English

在Android中像在iOS中一样自定义字体

[英]Custom font in Android like in iOS

I am writing an iOS based on a WebView. 我正在编写基于WebView的iOS。 In iOS you can load custom font and set them in the app plist. 在iOS中,您可以加载自定义字体并将其设置在应用程序plist中。 In this way you can load them just by referencing the font name. 这样,您可以仅通过引用字体名称来加载它们。 I was wondering if there is something similar to Android that would let me reuse some of the web code used in the ios app and avoid to differentiate the font loading in the code. 我想知道是否有类似于Android的东西可以让我重用ios应用程序中使用的某些网络代码,并避免区分代码中的字体加载。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM