gpt4 book ai didi

iphone - Objective-C - 获取 CTFont 的名称?

转载 作者:搜寻专家 更新时间:2023-10-30 20:07:05 24 4
gpt4 key购买 nike

我有一个 CTFontRef,如何获取字符串形式的字体名称?

最佳答案

阅读此 http://developer.apple.com/library/mac/#documentation/Carbon/Reference/CTFontRef/Reference/reference.html

例如有定义的方法。

Getting Font Names
CTFontCopyPostScriptName
CTFontCopyFamilyName
CTFontCopyFullName
CTFontCopyDisplayName
CTFontCopyName
CTFontCopyLocalizedName

关于iphone - Objective-C - 获取 CTFont 的名称?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6658886/

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