JSPDF大胆,正常和正当
我正在使用JSPDF从API响应中创建我的PDF。我还以同一行实现了大胆和普通的单词。此逻辑从下面的链接复制。现在,我想将文本“正当”做。我该怎么做。以下是参考的快照,
[https://codepen.io/andrekelling/pen/baolwao] [1]
下面突出显示了两者之间的大胆单词,因此我无法将其正当应用于文本。但是其他没有任何粗体字的段落是正确的。
我如何使用粗体和普通文本混合以及文本样式合理和自定义字体。我是 为此使用JSPDF?任何帮助将不胜感激。
I am using JsPdf to create my pdf from the API response. I have also implemented the bold and normal word in same line. This logic is copied from below link. Now I want to make the text "justify". How can I do that. Below is the snapshot for the reference,
[https://codepen.io/AndreKelling/pen/BaoLWao][1]
The below highlighted having bold word in between, so I am not able apply the justify on the text. But other paragraph which do not have any bold word is correctly justify.
How Can I use both bold and normal text mix along with text style justify and custom font. I am
using jspdf for this? Any help would be highly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我基于您共享的代码蛋白,并进行了修改,以便以多行格式为文本是合理的,请检查下面的代码。
https://codepen.io/cat_io/cat_developer/pen/pen/pen/mdxgym
i have based on the codepen that you shared, and I have made the modifications so that the text is justified in the multiline format, please check the code below.
https://codepen.io/cat_developer/pen/mdxGYvM