如何在每行中添加连字符的地方留有空白

问题描述

我只想使用word / PHPword在每个空格中创建“连字符”。

示例:

This is just example and imagine this is the last of the line
and this is the second line. --------------------------------

This is paragraph two and this is the example too without ---
left blank space in every line ------------------------------

我尝试过的解决方案:

  • 我正在使用字体行“ Courier”,所以我可以计算一行中有多少个字符
  • 使用文字扭曲
  • 数组中的每个数据我都计算左字符,并重复符号'-'
  • 那就是我解决的方式

问题所在,现在我使用的字体不像“信使”,而忘记了像“信使”那样的字体。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)