GNOME Bugzilla – Bug 93001
Option to use the same font to print as to display
Last modified: 2020-11-24 10:00:05 UTC
gEdit displays fonts as fixed width, but prints them as a variable width I've tried both courier, and Luxi Mono, and both display as fixed width, but print with variable width spacing. this makes ascii layout a PITA
The font used by the editor and the font used to print are not the same. You should be able to set the font used for printing using the Preferences dialog. BTW, it works well for me using Courier as print font (note that I normally print tables)
Which version of gedit are you using?
I'm using gedit2-2.1.0.0.200209080026-0.snap.ximian.1 However, I'm an idiot as it appears that the printing font is working just fine. Could I however suggest that the default font needs to be something that is fixed width. In reality, I would expect that gedit would use the same font to print that it uses to display, however the option to change this behavior would be nice, but you shouldn't need to change fonts in two places to get the expected outcome.
> Could I however suggest that the default font needs to be something > that is fixed width. The default font is Courier or Monospace (in CVS HEAD), so if your gnome-print fonts are configured in a sane way, it should already be a fixed width font. Actually, I have observed that gnome-print is not able to find Monospace font on my system so it fall back to Helvetica (the default font). But this is not a gedit fault. > I would expect that gedit would use the same font to print > that it uses to display, ATM, this is not possible due to technical problems (GnomePrint fonts and Pango fonts can be different) but in the future we should be able to implement this feature. Changing summary for clarity.
Maybe in the print font options a checkbox for 'use same font as display font'?
luis, that would be great. This would be consistent what I'm suggesting in bug #82710
AFAIK, the set of fonts used by gnome-print is a subset of the Pango one. So I don't think this feature can be implemented in a safe way. Chema: what do you think?
Yes it can, in the future. You will get your PangoContext from gnome-print, not pango. This pango context will only contain the list of fonts that are printable, from this context the user can safely select any font because we will know that it is both printable and disaplayable on the screen.
Mass-closing of all gedit bugzilla tickets. Special "code" to find again all those gedit bugzilla tickets that were open before the mass-closing: 2bfe1b0590a78457e1f1a6a90fb975f5878cb60064ccfe1d7db76ca0da52f0f3 By searching the above sha256sum in bugzilla, the gedit contributors can find again the tickets. We may be interested to do so when we work on a specific area of the code, to at least know the known problems and possible enhancements. We do this mass-closing because bugzilla.gnome.org is being replaced by gitlab.gnome.org.