iPhone中粗体粗体的粗体 [英] Bold font with bold weight in iPhone

查看:63
本文介绍了iPhone中粗体粗体的粗体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用Helvetica-Bold字体且粗体为粗体的设计:我正在尝试说明自己:一种粗体字体,也可以将其设置为粗体.但是在iOS中,我一遍又一遍地尝试使字体变为粗体,我发现答案只是使用给定族的粗体字体.我想再次将该字体重新设为粗体,以便成为粗体"?

I have a design that uses Helvetica-Bold font with a weight of bold: i'm trying to explain myself: a bold font, which can be set also to bold. But in iOS, trying to make a font bold, over and over again i found as answer to just use the bold font from a given family. And i want to put that font to bold again, to be... "bolder"?

这可能吗?

推荐答案

如果您使用的是 -drawAtPoint:withFont:,这也许是最简单的解决方案,只需使用第二次调用时,x位置偏移了1个像素.它不是完美的(间距可能会有些混乱),但是如果您不做任何过于严格的操作,对您来说可能就足够了?

Perhaps the simplest solution for you, if you're using -drawAtPoint:withFont: is to just call the method twice with the x-position offset by 1 pixel on the second call. It won't be perfect (the spacing might be a bit messed up) but maybe it's good enough for you if you're not doing anything too exacting?

这篇关于iPhone中粗体粗体的粗体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆