在基于 Apple tvOS TVML
的应用中是否有使用自定义字体的方法?我已尝试使用 @font-face
规则,但无效。
<document>
<head>
<style>
@font-face {
font-family: 'My Awesome Font';
font-weight: 600;
src: url("${this.BASEURL}/resources/fonts/awesome-font-bold.otf");
}
</style>
</head>
...
</document>