OGeek|极客世界-中国程序员成长平台

标题: iOS:Xcode 字体大小与 Adob​​e XD 字体大小 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-13 03:26
标题: iOS:Xcode 字体大小与 Adob​​e XD 字体大小

字体大小单位:我正在寻找以下问题的答案,请帮助我找到它。

1. Xcode 使用哪个单位来表示字体大小?我的意思是,它是像素还是点或其他术语?

我设计团队的一位成员指着我正在开发的 iOS 应用程序中的一个标签,询问该标签的字体大小。我应该说什么? 12Px 或 12Pt 或仅 12(说出没有单位的数字可能会导致混淆)

<强>2。我们可以在 Xcode 中为 UILabel 设置相同的 Adob​​e XD 字体大小吗?

我正在根据 Abode XD 中的设计开发 iOS 应用程序 UI。 Abode XD 使用哪个单位的字体大小? 我尝试在 Xcode 中放置相同的字体大小(80),但略有不同,附上截图。我们需要在这里转换吗?

enter image description here



Best Answer-推荐答案


根据this forum thread Adobe XD 使用像素:

XD currently uses a virtual pixel for most of its measurements (including font size), which should be the same unit of measure as a CSS pixel, or most measurements in iOS. It's roughly equal to 1 physical pixel on a 72 dpi monitor (and, incidentally, a point).

关于iOS:Xcode 字体大小与 Adob​​e XD 字体大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47468168/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://sqlite.in/) Powered by Discuz! X3.4