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.
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
On Fri, Jun 10, 2022 at 05:51:05AM -0700, stan via users wrote:
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 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.
I think gfn is guifont. Perhaps printfont is what needs to be checked with:
:set printfont?
jl
On Fri, 10 Jun 2022 23:26:09 -0400 Jon LaBadie jonfu@jgcomp.com wrote:
On Fri, Jun 10, 2022 at 05:51:05AM -0700, stan via users wrote:
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 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.
I think gfn is guifont. Perhaps printfont is what needs to be checked with:
:set printfont?
Yeah, I made an assumption. I assumed that in the absence of a specific print font it would just default to the font from the screen interface. The config command for that is, for example, set pfn=courier but it is commented out in my .gvimrc
Thanks folks. Now I know how to change gvim's font.
I can find gedit's screen font, but not its printing font.
I'm not wedded to copying gedit's printing font. lp's font is also good. I'm not sure how to find that either.
On Sun, 12 Jun 2022, Michael Hennebry wrote:
Thanks folks. Now I know how to change gvim's font.
I can find gedit's screen font, but not its printing font.
From gedit's printing dialogue, Monospace 9 seems to be what I want. Do not know where to find it. find /usr -name '*onospace*' didn't.
On 6/12/22 09:01, Michael Hennebry wrote:
On Sun, 12 Jun 2022, Michael Hennebry wrote:
Thanks folks. Now I know how to change gvim's font.
I can find gedit's screen font, but not its printing font.
From gedit's printing dialogue, Monospace 9 seems to be what I want. Do not know where to find it. find /usr -name '*onospace*' didn't.
That probably means to use the system default monospace font at 9 points.
On 6/10/22 6:51 AM, stan via users wrote:
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
I've been wanting to change the display font in gvim for some time, though it was not a priority. Though this thread is about the print font rather than the display font, it did help me to finally get the display font changed. Thank-you!
On Sun, 12 Jun 2022 11:01:59 -0500 (CDT) Michael Hennebry hennebry@web.cs.ndsu.nodak.edu wrote:
On Sun, 12 Jun 2022, Michael Hennebry wrote:
Thanks folks. Now I know how to change gvim's font.
I can find gedit's screen font, but not its printing font.
From gedit's printing dialogue, Monospace 9 seems to be what I want. Do not know where to find it. find /usr -name '*onospace*' didn't.
I found this link to a png of a settings page, https://live.staticflickr.com/65535/50670166491_998f47ac24_o.png that seems to say that monospace text is "source code pro regular". I think that is the gnome tweaks page, but it is a couple of years old, so it may have changed.
There is also this page about a change of fonts in f36. It might be relevant to your problem.
https://www.phoronix.com/scan.php?page=news_item&px=Fedora-36-Default-Fo...
On Sun, Jun 12, 2022 at 1:02 PM Michael Hennebry < hennebry@web.cs.ndsu.nodak.edu> wrote:
On Sun, 12 Jun 2022, Michael Hennebry wrote:
Thanks folks. Now I know how to change gvim's font.
I can find gedit's screen font, but not its printing font.
From gedit's printing dialogue, Monospace 9 seems to be what I want. Do not know where to find it. find /usr -name '*onospace*' didn't.
Use fontconfig's fc-match to check system defaults (which may depend on the language)
Fedora 35: fc-match monospace:en DejaVuSansMono.ttf: "DejaVu Sans Mono" "Regular"
Fedora 36: % ssh fc-match monospace:en NotoSansMono-VF.ttf: "Noto Sans Mono" "Regular"
On Mon, 13 Jun 2022, George N. White III wrote:
Use fontconfig's fc-match to check system defaults (which may depend on the language)
Fedora 35: fc-match monospace:en DejaVuSansMono.ttf: "DejaVu Sans Mono" "Regular"
Looks like it might be the answer. No time to try it right now.
Thanks.
Fedora 36: % ssh fc-match monospace:en NotoSansMono-VF.ttf: "Noto Sans Mono" "Regular"
On Mon, 13 Jun 2022, Michael Hennebry wrote:
On Mon, 13 Jun 2022, George N. White III wrote:
Use fontconfig's fc-match to check system defaults (which may depend on the language)
Fedora 35: fc-match monospace:en DejaVuSansMono.ttf: "DejaVu Sans Mono" "Regular"
Looks like it might be the answer. No time to try it right now.
Possibly not. Changing pfn seems to have no effect. Setting gfn does have an effect. No spelling of DejaVu Sans Mono seems to have any effect, whether with 0, 2 or 3 escaped spaces. :set gfn=Helvectica does have an effect. :set pfn=Helvectica does have an effect. From print-to-file, Helvetica seems to be gedit's print font.
BTW where is Helvetica stored? It seems not to be under /usr/share/fonts . find /usr -name '*vetica*' doesn't.
Has anyone managed to change gvim's printer font? I've read documentation that says pfn works. I've read a statement that it does not, but at least its documented.
On Tue, Jun 14, 2022 at 12:40 PM Michael Hennebry < hennebry@web.cs.ndsu.nodak.edu> wrote:
On Mon, 13 Jun 2022, Michael Hennebry wrote:
On Mon, 13 Jun 2022, George N. White III wrote:
Use fontconfig's fc-match to check system defaults (which may depend on the language)
Fedora 35: fc-match monospace:en DejaVuSansMono.ttf: "DejaVu Sans Mono" "Regular"
Looks like it might be the answer. No time to try it right now.
Possibly not. Changing pfn seems to have no effect. Setting gfn does have an effect. No spelling of DejaVu Sans Mono seems to have any effect, whether with 0, 2 or 3 escaped spaces. :set gfn=Helvectica does have an effect. :set pfn=Helvectica does have an effect. From print-to-file, Helvetica seems to be gedit's print font.
BTW where is Helvetica stored?
on both Fedora 35 and 36:
% fc-match Helvetica:en NimbusSans-Regular.otf: "Nimbus Sans" "Regular"
It seems not to be under /usr/share/fonts . find /usr -name '*vetica*' doesn't.
You can't rely on legacy font names as there have been multiple "clones", often supporting additional languages (hence the need to specify a language). The fontconfig system provides aliases for the legacy Adobe names.
On Tue, 14 Jun 2022, George N. White III wrote:
On Tue, Jun 14, 2022 at 12:40 PM Michael Hennebry <
BTW where is Helvetica stored?
on both Fedora 35 and 36:
% fc-match Helvetica:en NimbusSans-Regular.otf: "Nimbus Sans" "Regular"
It seems not to be under /usr/share/fonts . find /usr -name '*vetica*' doesn't.
You can't rely on legacy font names as there have been multiple "clones", often supporting additional languages (hence the need to specify a language). The fontconfig system provides aliases for the legacy Adobe names.
Thanks. I expect a database somewhere connects Helvetica with NimbusSans-Regular.otf .
That still leaves the question of whether gvim's printing font can be changed.
On Tue, 2022-06-14 at 13:43 -0500, Michael Hennebry wrote:
That still leaves the question of whether gvim's printing font can be changed.
Is it just sending raw text to LPR? Perhaps a default font needs choosing in the print manager.
On Wed, 15 Jun 2022, Tim via users wrote:
On Tue, 2022-06-14 at 13:43 -0500, Michael Hennebry wrote:
That still leaves the question of whether gvim's printing font can be changed.
Is it just sending raw text to LPR? Perhaps a default font needs choosing in the print manager.
gvim uses at least two fonts for printing, one each for header and body. The header is adequate.