Hi!
AlainM wrote:
But the current XFontStyle enum seems to only allow bold and italic at the same time.
No, that enum uses the magic keyword "[Flags]" and you can use the magic operator "|" to combine values to get what you want.
Two lines from the current PDFsharp version:
Code:
var fontAnsi = new XFont("Arial", 15, XFontStyleEx.Regular | XFontStyleEx.Underline, XPdfFontOptions.WinAnsiDefault);
var fontAnsiBold = new XFont("Arial", 15, XFontStyleEx.Bold | XFontStyleEx.Underline, XPdfFontOptions.WinAnsiDefault);
Note that "XFontStyle" was renamed to "XFontStyleEx".
With PDFsharp 1.50, you miss out all the bug fixes from the last 5 and a half years.