On Thu, 9 Jun 2022 21:16:41 -0500 (CDT) Michael Hennebry hennebry@web.cs.ndsu.nodak.edu wrote:
The font gvim uses when printing is annoyingly faint. The font gedit uses works for me.
How do I find out what font gedit is using and tell gvim to use that font?
I'm running F35.
In gedit, one help page for font is at /usr/share/help/en_GB/gedit/gedit-change-default-font.page In there, it give instruction about how to use gedit itself to select a new font. <title>Change the default font</title>
<p><app>gedit</app> will use the system fixed-width font by default, but you can change the default <app>gedit</app> font to suit your preferences.</p>
<steps> <title>To change the default font in <app>gedit</app>:</title>
<item><p>Press the menu button in the top-right corner of the window and select <guiseq><gui style="menuitem">Preferences</gui><gui>Font & Colours</gui></guiseq>.</p></item> <item><p>Uncheck the box next to the phrase, "Use the system fixed width font."</p></item> <item><p>Click on the current font name. <app>gedit</app> will open a font-chooser window, allowing you to see available fonts and choose the one that you prefer.</p></item> <item><p>After you have chosen a new font, use the <gui>slider</gui> under the list of fonts to set the default font size.</p></item> <item><p>Click <gui>Select</gui>, and then close the dialog.</p>
It will be prettier if you view it in a browser.
In gvim, the font is selected in .gvimrc, the configuration file. Something like set gfn=Terminus\ Bold\ 14
So, find the font name in gedit, and add it to the .gvimrc file.
You can find the files contained in a package, say gedit, by rpm -q --filesbypkg gedit