如何计算对齐的 JRTemplatePrintText 中字符串的宽度?
How to calculate the width of a string in justified JRTemplatePrintText?
是否可以使用 "justified" 对齐方式计算 JRTemplatePrintText 中字符串的宽度?
我已经尝试使用 FontRenderContext
的 AWT,但这只适用于左对齐文本。
您无法计算此类文本的确切宽度,因为宽度取决于文本的导出方式。
是否可以使用 "justified" 对齐方式计算 JRTemplatePrintText 中字符串的宽度?
我已经尝试使用 FontRenderContext
的 AWT,但这只适用于左对齐文本。
您无法计算此类文本的确切宽度,因为宽度取决于文本的导出方式。