fsBold in unit fpTTF is declared as
TTrueTypeFontStyle = (fsRegular, fsItalic, fsBold, fsCondensed, fsExtraLight, fsLight, fsSemibold, fsMedium, fsBlack, fsFixedWidth);
the standard declaration of fsBold in unit Graphcs is
TFontStyle = (fsBold, fsItalic, fsUnderline, fsStrikeOut);This causes errors at compile time like:
Printer.Canvas.Font.Style := [fsBold];
Error: Incompatible type for arg no. 1: Got "{Array Of Const/Constant Open} Array of TTrueTypeFontStyle", expected "TFontStyles"
It becomes impossible to use TPrinter and TPDFDocument in the same unit.
HTH
Peppe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20251102/2d5bc64a/attachment.htm>
