TurboPack / SynEdit

SynEdit is a syntax highlighting edit control, not based on the Windows common controls.
216 stars 72 forks source link

Printing as graphics #233

Open BorisU7 opened 1 year ago

BorisU7 commented 1 year ago

While tweaking printing in my program I found out that SynEdit actually output text as graphics for printing. It is not a big problem for real printing, but I tried printing to pdf and got 700+ kilobytes output for a single page with a dozen of lines. Also the quality of rendering is not so good :(

I suppose that this due to introduction of DirectWrite and usage of it for printing.

Is it possible to revert printing to GDI?

pyscripter commented 1 year ago

Needs to be done like in this sample:

https://github.com/microsoft/Windows-classic-samples/tree/main/Samples/D2DPrintingFromDesktopApps