在我的TVML应用程序中,我可以使用tv-text-style:none设置字体样式属性,例如font-size和font-weight,但是我无法设置font-family属性,这似乎被忽略:在TVML中设置字体家族
var Template = function() { return `<?xml version="1.0" encoding="UTF-8" ?>
<document>
<head>
<style>
.customText {
tv-text-style: none;
tv-position: center;
color: white;
font-size: 40px;
font-weight: bold;
font-family: Courier;
}
</style>
</head>
<paradeTemplate>
...
<listItemLockup>
<title>Title</title>
<relatedContent>
<divTemplate>
<title class="customText">abcABC</title>
</divTemplate>
</relatedContent>
</listItemLockup>
...
我可以设置一个不同于系统字体家族的字体家族吗?
感谢您的帮助,
卢卡
有没有你认为这应该是可能的一个原因?我在https://developer.apple.com/library/prerelease/tvos/documentation/LanguagesUtilities/Conceptual/ATV_Template_Guide/ITMLStyles.html#//apple_ref/doc/uid/TP40015064-CH11-SW1中看不到任何内容你可以控制使用的实际字体。 –
'font-family'列在文档中https://developer.apple.com/library/content/documentation/LanguagesUtilities/Conceptual/ATV_Template_Guide/ITMLStyles.html#//apple_ref/doc/uid/TP40015064-CH11-SW1 –