After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 93001 - Option to use the same font to print as to display
Option to use the same font to print as to display
Status: RESOLVED OBSOLETE
Product: gedit
Classification: Applications
Component: printing
git master
Other Linux
: Normal enhancement
: ---
Assigned To: Gedit maintainers
gedit QA volunteers
Depends on:
Blocks:
 
 
Reported: 2002-09-11 05:51 UTC by Rodd Clarkson
Modified: 2020-11-24 10:00 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description Rodd Clarkson 2002-09-11 05:51:02 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
Comment 1 Paolo Maggi 2002-09-11 07:54:26 UTC
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)
Comment 2 Paolo Maggi 2002-09-11 07:58:06 UTC
Which version of gedit are you using?
Comment 3 Rodd Clarkson 2002-09-11 23:28:14 UTC
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.



Comment 4 Paolo Maggi 2002-09-12 06:31:00 UTC
> 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.
Comment 5 Luis Villa 2002-09-12 17:45:29 UTC
Maybe in the print font options a checkbox for 'use same font as
display font'?
Comment 6 Rodd Clarkson 2002-09-12 23:04:31 UTC
luis, that would be great.

This would be consistent what I'm suggesting in bug #82710
Comment 7 Paolo Maggi 2002-12-30 14:17:20 UTC
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?
Comment 8 Chema Celorio 2002-12-30 18:54:22 UTC
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.
Comment 9 Sébastien Wilmet 2020-11-24 10:00:05 UTC
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.