[英]How to reuse fonts in Swift?
Imagine I have this custom font font.ttf 假设我有此自定义字体font.ttf
And I have two projects. 我有两个项目。 Project A in
/projects/A
and project B in /projects/B
/projects/A
A中的/projects/A
和/projects/B
I don't want to copy paste this font among projects. 我不想在项目之间复制粘贴此字体。
I created a cocoa touch framework and added the font.ttf
to that. 我创建了一个可可触摸框架,并在其中添加了
font.ttf
。 Then reused that framework in projects A and B. But it doesn't work. 然后在项目A和B中重用该框架。但是它不起作用。 Is it possible?
可能吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.