有没有办法在 WebView 中使用 Apple San Francisco?
Is there a way I can use the Apple San Francisco in a WebView?
我的 CSS 样式 sheet 似乎工作正常,但我无法将字体更改为与 iOS 11 中使用的系统字体非常匹配的字体。这里是我试过的:
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>
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>
我的 CSS 样式 sheet 似乎工作正常,但我无法将字体更改为与 iOS 11 中使用的系统字体非常匹配的字体。这里是我试过的:
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>
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>