gpt4 book ai didi

ios - Pixate Freestyle 是否支持自定义字体?

转载 作者:行者123 更新时间:2023-11-29 02:50:25 25 4
gpt4 key购买 nike

我已经在我的 iOS 应用程序中添加了一些自定义字体,并尝试使用 Freestyle CSS 来应用它们

label {
font-family : "Niconne-Regular";
color : #446620;
}

但它不起作用(确实应用了颜色属性)。我能够使用 UIFont fontWithName 设置新字体,所以只有 Freestyle 不能使用新字体(同样,相同的 CSS 使用内置字体,如“Courier”)。

最佳答案

你的怀疑是完全正确的。您必须在 Pixate CSS 中使用根字体名称,然后使用 font-weight 属性指定字体变体。

Pixate 的这篇文章将向您介绍如何做到这一点:https://github.com/Pixate/pixate-freestyle-ios/wiki/Embedding-and-Selecting-Fonts

如果您在使用它时遇到任何其他问题,请告诉我。

关于ios - Pixate Freestyle 是否支持自定义字体?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24603880/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com