This might seem like an odd request but it appears after reading the forum and looking at the examples there is little to no real examples of changing the font on a single line.
“For example: Single Line Font Change.”
The above example is a single line where there is bold and following on the same line with regular text.
I’m not exactly sure what you’re asking.
Nevertheless, here is how you can create a paragraph with some text that has different fonts:
Dim document = New DocumentModel()
Dim section = New Section(document)
Dim paragraph = New Paragraph(document)
Dim run1 = New Run(document, "First text, ")
run1.CharacterFormat.FontName = "Arial"
run1.CharacterFormat.Size = 10
Dim run2 = New Run(document, "second text.")
run2.CharacterFormat.FontName = "Segoe UI"
run2.CharacterFormat.Size = 18
That would work!
Thank you Mario