如何实现这种字体外观?

发布于 2024-10-08 06:12:35 字数 148 浏览 0 评论 0原文

我怎样才能实现这样的字体?

alt text

iOS 平台图标下方的名称。是 Helvetica 吗?我怎样才能在代码中实现它的软阴影?提前致谢!

How can I acheive a font like this?

alt text

It's the name below icons on the iOS platform. Is it Helvetica, and how can I achieve the soft shadow that it has in code? Thanks in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

伴我老 2024-10-15 06:12:35

根据要求在此处重新发布我的评论:

这个答案可能会有所帮助。

正如评论中所讨论的,该字体确实是 Helvetica,至少在标准分辨率设备上。我不太确定它是否是 Retina 显示设备上的 Neue Helvetica。

Reposting my comment here as requested:

This answer may help.

As discussed in the comments, that font is indeed Helvetica, at least on standard-resolution devices. I'm not too sure if it's Neue Helvetica on retina display devices.

倾其所爱 2024-10-15 06:12:35

你可以使用 Quartz 2D 来完成。

影子是画出来的图像
在 a 下方并与其偏移
图形对象,使得阴影
模仿光源的效果
投射到图形对象上,如图所示
如图 7-1 所示。 文字也可以
阴影。阴影可以形成图像
看起来是三维的或者好像是
浮动。


看这里:

http://developer.apple.com/library/mac/#documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/dq_shadows/dq_shadows.html%23//apple_ref/doc/uid/TP30001066-CH208- TPXREF101

祝你好运

you can do it using Quartz 2D.

A shadow is an image painted
underneath, and offset from, a
graphics object such that the shadow
mimics the effect of a light source
cast on the graphics object, as shown
in Figure 7-1. Text can also be
shadowed
. Shadows can make an image
appear three dimensional or as if it’s
floating.

look here:

http://developer.apple.com/library/mac/#documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/dq_shadows/dq_shadows.html%23//apple_ref/doc/uid/TP30001066-CH208-TPXREF101

good luck

久伴你 2024-10-15 06:12:35

编辑

BoltClock 已经在评论中回答了。按照他的链接。

(我刚刚发现他说了同样的话,但我想引起人们的注意,所以我会留下这个答案——只是不要检查它,或者 BoltClock,将其添加为答案。)


这个对之前类似问题的回答解释了如何做到这一点。事实证明这很简单。

EDIT

BoltClock answered it already in a comment. Follow his link.

(I just discovered he said the same thing, but I want to draw attention to it so I'll leave this answer -- just don't check it, or BoltClock, add it as answer.)


This answer to a previous similar question explains how to do it. Turns out it's pretty simple.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文