为什么macOS更倾向于使用PDF文件作为图标或用户界面元素?
运行 `find /System/Library/ -name "*.pdf"` 可以发现 macOS 使用了许多 .pdf 文件作为图标或用户界面元素。例如,菜单栏中的 VPN 连接动画似乎循环播放位于以下位置的一系列 .pdf 文件:
/System/Library/CoreServices/Menu Extras/VPN.menu/Contents/Resources/VPN[0-4].pdf
为什么选择 PDF 格式,而不是更传统的格式如 PNG 或 SVG?这是由于 Quartz/CoreGraphics 渲染的优势、矢量缩放的效率,还是其他原因?
查看原文
Running `find /System/Library/ -name "*.pdf"` reveals that macOS uses many .pdf files as icons or UI elements. For example, the VPN connection animation in the menu bar seems to cycle through a sequence of .pdf files located at:<p>/System/Library/CoreServices/Menu Extras/VPN.menu/Contents/Resources/VPN[0-4].pdf<p>Why PDF, instead of more traditional formats like PNG or SVG? Is this due to Quartz/CoreGraphics rendering benefits, vector scaling efficiency, or something else?