在我的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 –