gpt4 book ai didi

iOS:Xcode 字体大小与 Adob​​e XD 字体大小

转载 作者:塔克拉玛干 更新时间:2023-11-02 10:21:57 25 4
gpt4 key购买 nike

字体大小单位:我正在搜索以下内容的答案,请帮助我找到它。

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

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

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

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

enter image description here

最佳答案

根据 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com