문제

  1. Is it technically possible to use two different font in the same DrawHTMLTextBox while using Debenu Quick PDF Library 10?

  2. Is it possible with any other libraries which can be used in a PHP project (Not preferred)?

도움이 되었습니까?

해결책

Currently it is not possible to use two different fonts in the string that you pass to the DrawHTMLTextBox function in Debenu Quick PDF Library. If you want to use a different font for different parts of the string you'll need to use DrawHTMLText instead and change the font using SetHTMLNormalFont prior to each section of the string being drawn.

Using this method you'll need to keep track of the width and height of the text you're drawing yourself but you can do that using the GetHTMLTextHeight, GetHTMLTextWidth and GetHTMLTextLineCount.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top