Add a print backend for the hardcopy feature that uses Pango and Cairo for rendering text. The benefit of this is that unicode is properly supported and probably other stuff, as now Pango handles all the dirty work. Postscript is outputted using the cairo postscript backend, so there shouldn't be anything missing compared to the existing postscript code.
This feature is enabled by default for Vim compiled with GTK GUI (in both terminal and GUI), because GTK requires Pango and Cairo anways. However it is disabled by default when not compiled with GTK GUI, instead it must be enabled with --enable-print-pango, because I'm not sure if adding two dependencies (that are pretty big) would be very welcomed.
Additionally, replace the existing GTK4 native print dialog code to instead use this, and now use GtkPrintDialog (GTK 4.14+) to get print settings via a graphical dialog like Windows. TODO
Left: Pango + Cairo backend, Right: existing postscript code
image.png (view on web)
https://github.com/vim/vim/pull/20648
(14 files)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()