Xamarin 有没有办法在WebVIEW中使用苹果旧金山?
我的CSS样式表似乎工作正常,但我无法将字体更改为与iOS 11中使用的系统字体非常匹配的字体。以下是我尝试过的:Xamarin 有没有办法在WebVIEW中使用苹果旧金山?,xamarin,xamarin.ios,xamarin.forms,ios11,Xamarin,Xamarin.ios,Xamarin.forms,Ios11,我的CSS样式表似乎工作正常,但我无法将字体更改为与iOS 11中使用的系统字体非常匹配的字体。以下是我尝试过的: body, html { color: red; font-family: 'San Francisco'; }; 字符颜色为红色,但字体不变 如何指定与我的Xamarin.Forms iOS中的Apple系统字体非常相似的字体?可以通过以下方式检索系统字体系列名称: UIFont.PreferredBody.FamilyName 在iOS 11上,它是: .S
body, html {
color: red;
font-family: 'San Francisco';
};
字符颜色为红色,但字体不变
如何指定与我的Xamarin.Forms iOS中的Apple系统字体非常相似的字体?可以通过以下方式检索系统字体系列名称:
UIFont.PreferredBody.FamilyName
在iOS 11上,它是:
.SF UI Text
老派:
<font face='.SF UI Text'>This is the iOS System Font: San Francisco</font>
<代码>这是IOS系统字体:旧金山
HTML/CSS:
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
body {
font-family: '.SF UI Text';
font-size: 60pt;
}
</style>
</head>
<body>
This is the iOS System Font: San Francisco
</body>
</html>
正文{
字体系列:'.SF UI Text';
字号:60pt;
}
这是iOS系统字体:旧金山
也许您必须将其视为自定义字体?看到精彩的答案@伍德斯托克很高兴它能帮上忙安卓呢?@shifaley?这是苹果公司版权所有的字体。。。有fft和oft与苹果的旧金山“很接近”,只是谷歌而已。