为什么他们使用“dp square”单位来测量与“图标”相关的基线网格,而使用“dp”单位与“类型”相关?

Why do they use “dp square” unit for measurements of baseline grid in relation to “icons”, but “dp” unit in relation to “type”?

在这个specification document for Material Design in Android里面写着,

All components align to an 8dp square baseline grid. Type aligns to a 4dp baseline grid. Iconography in toolbars align to a 4dp square baseline grid.

为什么他们使用 dp square 单位作为 UI 组件的基线网格iconography,但是 dp 单位用于 type?

当他们说“8dp 正方形”时,他们只是表示水平和垂直网格线都相距 8dp。在排版方面,实际上并没有对齐垂直网格线的概念,因为字体的字距调整参数决定了字母之间的间距。所以他们说 4dp 而不是 4dp 正方形。请注意,小部件的示例图像具有水平和垂直网格线,而排版图像只有水平线。就这么简单:小部件的垂直网格线;文本没有垂直网格线。