Bold font with bold weight in iPhone

戏子无情 提交于 2019-12-11 07:03:35

问题


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"?

Is this possible?


回答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?




回答2:


I dont know if you can do it with the tools you have already but I do know that you can do it with FontLabel and your prepared "Bolder" Font.

So, you do a "special font" that is Helvetica in the bold level you want and embed it with FontLabel

Take a look: Font Label



来源:https://stackoverflow.com/questions/5931541/bold-font-with-bold-weight-in-iphone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!