uifontdescriptor

    0热度

    1回答

    我有以下代码: UIFontDescriptor *fd = [UIFont fontWithDescriptor:[[UIFont systemFontOfSize:[UIFont systemFontSize]].fontDescriptor fontDescriptorWithSymbolicTraits:UIFontDescriptorTraitBold|UIFontDescriptorT

    1热度

    2回答

    我的应用程序只使用系统字体,但我是函数创建它们 - + (UIFont * _Nonnull)systemFontOfSize:(CGFloat)fontSize weight:(CGFloat)weight 我怎么可以让系统字体斜体,重量UIFontWeightThin? 我不能使用特定族字体的调用(fontWithName :),因为我只希望它是系统字体。 谢谢:)

    0热度

    1回答

    即使相应的代码在Swift中工作,我也无法在Objective C中显示分数。我必须失去一些非常明显的东西? Swift代码: override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) //: Playground - noun: a place where people c

    4热度

    2回答

    我试图用一个字体系列名称来获得大胆面对的iOS UIFont的方法似乎只适用于某些字体。例如: UIFont* font = [UIFont fontWithName:@"TimesNewRomanPS-BoldMT" size:12]; NSLog(@"A: Font name: %@", [font fontName]); // desired method works for Helv

    0热度

    2回答

    在iOS系统中8,以获得Helvetica Neue字体在薄的变化下面的代码将工作 UIFont.systemFontOfSize(50, weight: UIFontWeightThin) 在iOS系统9的系统字体改为旧金山,所以我不能再这样继续下去。我绝对必须在这个应用程序中使用Helvetia,并且无法弄清楚如何设置字体重量。这是我目前使用的代码。 timeSelectedLabel.f

    2热度

    1回答

    iOS 9中新的旧金山字体针对其使用的尺寸进行了优化,方法是调整SF Display和SF Text之间的跟踪并动态切换。它在WWDC会议#指出804开发者不应该通过尝试使用旧金山UIFont使用fontWithName来初始化,例如: UIFont *originalFont = [UIFont systemFontOfSize:11]; UIFont *newFont = [UIFont f