如何在手表上测试不同的字体大小(动态类型)? [英] How to test different font sizes (dynamic type) on the watch?

查看:26
本文介绍了如何在手表上测试不同的字体大小(动态类型)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Apple watch 支持动态类型 (例如,通过使用正文或脚注等文本样式).假设我有使用这些自定义文本样式的标签,我如何在模拟器上测试它们的行为?

Apple watch supports Dynamic Type (e.g. by using text styles such as body or footnote). Assuming I have labels that use these custom text styles, how can I test their behavior on the simulator?

在 iPhone 模拟器上,我可以启动 Settings > General > Larger Text 并调整滑块以查看我的应用程序根据不同字体大小的外观.

On an iPhone simulator, I can launch Settings > General > Larger Text and adjust the slider to see how my app looks depending on different font sizes.

如何为在模拟器上运行的 Apple Watch 应用执行等效操作?

How can I do the equivalent for my Apple Watch app running on the simulator?

推荐答案

尚无可能.只需将其设置为粗体并在故事板中放大一些点即可进行测试.

No possibility yet. Just set it to bold and some points larger in your storyboard to test it.

对不起,伙计...

我刚跑过这个:https://developer.apple.com/watchkit/

在那里下载 Apple Watch Design Resources 并查看指南 > 指南类型.在那里,您将拥有适用于 Dynamic Type 的正确字体大小和粗细.

Download the Apple Watch Design Resources there and have a look at Guides > Guide-Type. There you will have the right font sizes and weights for Dynamic Type.

这篇关于如何在手表上测试不同的字体大小(动态类型)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆