【发布时间】:2020-04-22 11:33:46
【问题描述】:
我正在寻求帮助,以使用 strwidth 测量字符串的宽度(以英寸为单位)。我应该如何指定字体和字体大小? (例如 Times New Roman 中的“ABC%”或“ABIi%”,字体大小为 11)
strwidth("ABC%", family="Times New Roman", units="inches")
strwidth("ABIi%", family="Times New Roman", units="inches")
【问题讨论】:
-
欢迎您!请阅读stackoverflow.com/questions/5963269/…,了解如何提出可重复的问题。
-
我刚刚编辑了内容。我发现 strwidth() 可能会有所帮助。我需要帮助来指定字体和字体大小。