Make text BOLD and ITALIC or BOTH when creating PDF #3956
-
My finds on it: For me I have fixed repository of font files. I can keep multiple version of a Base Font. Like one for Calibri regular, then italic, bold, semi bold and so on I cant get to find anything that I can use with insert_text. I am still searching more on insert_html, but looking for something straight forward |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
To start with
In addition to the previous, Finally, you can use the Here is an example script for some of these things. |
Beta Was this translation helpful? Give feedback.
To start with
insert_htmlbox
:<b>bold text</b>
. The MuPDF Story behind the method will locate a suitable / available font. Same is true for semi-bold etc.: use CSS syntax to define a@font-face
.In addition to the previous,
Page.insert_text()
/Page.insert_textbox()
als…