【问题标题】:How to calculate the width of a string in justified JRTemplatePrintText?如何计算对齐的 JRTemplatePrintText 中字符串的宽度?
【发布时间】:2018-11-28 13:57:26
【问题描述】:

是否可以计算JRTemplatePrintText 中字符串的宽度,对齐方式“合理”?

我已经尝试使用 AWT 的 FontRenderContext 但这仅适用于左对齐文本。

【问题讨论】:

    标签: java jasper-reports awt justify


    【解决方案1】:

    您无法计算此类文本的确切宽度,因为宽度取决于文本的导出方式。

    【讨论】:

      猜你喜欢
      • 2010-12-04
      • 1970-01-01
      • 1970-01-01
      • 2012-10-12
      • 1970-01-01
      • 2019-04-08
      • 1970-01-01
      • 2011-07-19
      • 1970-01-01
      相关资源
      最近更新 更多