You are not logged in.

#1 2017-07-02 16:26:30

HextorBRX
Member
Registered: 2017-06-21
Posts: 18

change the default fonts in my browser

Hello

I cannot change the default fonts in my browsers (Chromium, Firefox, Opera) from the settings menu. (I did choose a different font but the changes do not take effect.)

I have not tried to edit ~/.config/fontconfig/fonts.conf because I only want to change my browsers fonts. 

Thanks for your help

Offline

#2 2017-07-02 16:35:41

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: change the default fonts in my browser

HextorBRX wrote:

(I did choose a different font but the changes do not take effect.)

How exactly did you attempt to change to your new font?

Can we see the output of:

grep font ~/{.gtkrc-2.0,.config/gtk-3.0/settings.ini}
HectorBRX wrote:

~/.config/fontconfig/fonts.conf

That file will only affect which font is used when the "sans", "serif" or "mono" aliases are specified in the GTK configuration files.

HectorBRX wrote:

I only want to change my browsers fonts

You can select custom fonts by clicking in the menu icon in Firefox (top-right in the panel, "hamburger" silhouette) and navigating to Preferences → Content → Fonts & Colors then click on the "Advanced" button to change the settings.

Offline

#3 2017-07-02 17:30:06

HextorBRX
Member
Registered: 2017-06-21
Posts: 18

Re: change the default fonts in my browser

Thanks for your reply.

https://image.noelshack.com/fichiers/20 … romium.png
https://image.noelshack.com/fichiers/20 … p-font.png

Preferences → Content → Fonts & Colors > This is exactly what I did.

Offline

#4 2017-07-02 17:35:50

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: change the default fonts in my browser

HextorBRX wrote:

Preferences → Content → Fonts & Colors > This is exactly what I did.

OK, great, please mark the thread [SOLVED] if you consider it so, thanks!

Offline

#5 2017-07-02 17:38:32

HextorBRX
Member
Registered: 2017-06-21
Posts: 18

Re: change the default fonts in my browser

I changed the fonts from my browser settings (Preferences → Content → Fonts & Colors) but the changes did not take effect.

I have not tried on other Linux distros as I only use BunsenLabs but it works on Windows 10.

P.S. This is a fresh install. I did not tweak anything.

Last edited by HextorBRX (2017-07-02 17:43:25)

Offline

#6 2017-07-02 17:49:20

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: change the default fonts in my browser

HextorBRX wrote:

I changed the fonts from my browser settings (Preferences → Content → Fonts & Colors) but the changes did not take effect.

For Firefox, you may have to un-check the "Allow pages to choose their own fonts" tickbox to show your fonts on all websites.

The forums.bunsenlabs.org site seems to use Sans & Monospace and so should obey the Ubuntu font if it is set, even without changing that option.

Offline

#7 2017-07-02 19:02:24

HextorBRX
Member
Registered: 2017-06-21
Posts: 18

Re: change the default fonts in my browser

For Firefox, you may have to un-check the "Allow pages to choose their own fonts" tickbox to show your fonts on all websites.

I simply forgot to tick this box so I assumed it had something to do with Linux. I can change fonts with Firefox (and I should not have wasted your time).

I will post a solution for Opera and Chromium as soon as I find one.

Last edited by HextorBRX (2017-07-02 19:03:44)

Offline

#8 2017-07-03 03:21:48

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,666
Website

Re: change the default fonts in my browser

Head_on_a_Stick wrote:
HectorBRX wrote:

~/.config/fontconfig/fonts.conf

That file will only affect which font is used when the "sans", "serif" or "mono" aliases are specified in the GTK configuration files.

That is how BunsenLabs is configured out of the box. sans/serif/mono are used everywhere in the system (GTK and application configs), and the actual font is specified in fonts.conf The idea is to allow the whole desktop fonts to be changed and remain consistent.

Of course individual application fonts can be changed if preferred, but I don't see anything to be gained by editing the GTK config files separately. Change the GTK settings away from sans etc, and all the individual applications will have to be adjusted to match. icon_rolleyes.gif

Last edited by johnraff (2017-07-03 03:24:48)


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#9 2017-07-03 06:35:19

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: change the default fonts in my browser

johnraff wrote:

Change the GTK settings away from sans etc, and all the individual applications will have to be adjusted to match

I've been meaning to bring this up — the standard font-setting tool for most new users would be lxappearance and that only offers the option to change away from "Sans".

~/.config/fontconfig/fonts.conf is a very neat way of setting the default fonts for the entire desktop but it is also entirely non-obvious for people unfamiliar with the intricacies of Unix-like font configuration.

Perhaps we should add a specific "Change Fonts" menu entry that opens fonts.conf in bl-text-editor?

Offline

#10 2017-07-03 07:47:23

Steve
Member
Registered: 2017-01-03
Posts: 642

Re: change the default fonts in my browser

I change my fonts via Openbox Config Manager in the appearances tab and Lxappearance, those two should change fonts system wide.

Id rather leave the fonts.conf config alone.

Offline

#11 2017-07-03 09:19:49

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,754

Re: change the default fonts in my browser

besides font.conf and
grep serif ~/{.gtkrc-2.0,.config/gtk-3.0/settings.ini}

are there any other places where serif/sans/mono are assigned to specific font?

Offline

#12 2017-07-03 09:35:42

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,666
Website

Re: change the default fonts in my browser

Head_on_a_Stick wrote:

~/.config/fontconfig/fonts.conf is a very neat way of setting the default fonts for the entire desktop but it is also entirely non-obvious for people unfamiliar with the intricacies of Unix-like font configuration.
Perhaps we should add a specific "Change Fonts" menu entry that opens fonts.conf in bl-text-editor?

I suggested that a while back, in fact: https://forums.bunsenlabs.org/viewtopic … 728#p35728
Would you be OK with adding such an item to the "Preferences" submenu?

steve wrote:

I change my fonts via Openbox Config Manager in the appearances tab and Lxappearance, those two should change fonts system wide.

Unfortunately, not quite. Those two change the GTK and OpenBox fonts, but not for individual applications like browsers or text editors.

brontosaurusrex wrote:

are there any other places where serif/sans/mono are assigned to specific font?

The only place where fonts are assigned to those aliases is fonts.conf (or the system-level equivalents). They are then referred to by the gtk files and various application configs.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#13 2017-07-03 09:42:33

Steve
Member
Registered: 2017-01-03
Posts: 642

Re: change the default fonts in my browser

I see, so if using say geany it would change the typing output when changing fonts.conf. That i like to leave as defaults from the fonts config. Id rather change programs fonts a case by case basis, sometimes you get really used to default fonts in some programs, like geany i couldnt use anything other than monospace, well i could but it is just a good font for that application imo.

Last edited by Steve (2017-07-03 09:44:38)

Offline

#14 2017-07-03 10:11:12

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,754

Re: change the default fonts in my browser

johnraff wrote:

The only place where fonts are assigned to those aliases is fonts.conf (or the system-level equivalents). They are then referred to by the gtk files and various application configs.

Right, there is all hell in /etc/fonts, ack sans:

ack sans
fonts.conf
45:  Accept alternate 'sans serif' spelling, replacing it with 'sans-serif'
49:			<string>sans serif</string>
52:			<string>sans-serif</string>
57:  Accept deprecated 'sans' alias, replacing it with 'sans-serif'
61:			<string>sans</string>
64:			<string>sans-serif</string>

conf.avail/20-unhint-small-dejavu-sans-mono.conf
4:  <!--  /etc/fonts/conf.d/20-unhint-small-dejavu-sans-mono.conf

conf.avail/20-unhint-small-dejavu-lgc-sans.conf
4:  <!--  /etc/fonts/conf.d/20-unhint-small-dejavu-lgc-sans.conf

conf.avail/57-dejavu-sans-mono.conf
3:<!-- /etc/fonts/conf.d/57-dejavu-sans-mono.conf

conf.avail/57-dejavu-sans.conf
3:<!-- /etc/fonts/conf.d/57-dejavu-sans.conf
77:      <family>sans-serif</family>
82:    <family>sans-serif</family>

conf.avail/69-droid-sans-fallback.conf
5:		<family>sans-serif</family>

conf.avail/58-dejavu-lgc-sans-mono.conf
3:<!-- /etc/fonts/conf.d/58-dejavu-lgc-sans-mono.conf

conf.avail/20-unhint-small-dejavu-sans.conf
4:  <!--  /etc/fonts/conf.d/20-unhint-small-dejavu-sans.conf

conf.avail/20-unhint-small-dejavu-lgc-sans-mono.conf
4:  <!--  /etc/fonts/conf.d/20-unhint-small-dejavu-lgc-sans-mono.conf

conf.avail/62-google-crosextra-carlito-fontconfig.conf
5:          <family>sans-serif</family>
13:              <family>sans-serif</family>

conf.avail/65-droid-sans-fallback.conf
5:		<family>sans-serif</family>

conf.avail/62-google-crosextra-caladea-fontconfig.conf
5:          <family>sans-serif</family>
13:              <family>sans-serif</family>

conf.avail/58-dejavu-lgc-sans.conf
3:<!-- /etc/fonts/conf.d/58-dejavu-lgc-sans.conf
77:      <family>sans-serif</family>
82:    <family>sans-serif</family>

Last edited by brontosaurusrex (2017-07-03 10:11:41)

Offline

#15 2017-07-03 16:47:50

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: change the default fonts in my browser

johnraff wrote:

I suggested that a while back, in fact: https://forums.bunsenlabs.org/viewtopic … 728#p35728

Ha! I forgot about that...

Would you be OK with adding such an item to the "Preferences" submenu?

Yes, I think so.

Do we need a help entry for it or something?

It is all rather arcane and fonts.conf will probably look intimidating to a newcomer.

Offline

#16 2017-07-04 03:21:32

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,666
Website

Re: change the default fonts in my browser

@brontosuarus yes the system works through an algorithm to choose what fonts to assign to sans/serif/mono and friends, but the user's fonts.conf will override that. (In fact sans-serif seems to be the standard now, and sans is aliased to it.)

@HoaS I guess a help file might not hurt. A dedicated fonts file in bunsen-docs, or a new file holding other tweaking info (like gtk scrollbars) as well? Then a help link next to the "Font settings" item?

Alternatively, add some comments to our fonts.conf? That might be enough...


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#17 2017-07-04 06:28:30

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: change the default fonts in my browser

johnraff wrote:

add some comments to our fonts.conf?

Ah yes, I do like me a good comment  smile

They are more likely to be read than help files anyway, I think.

Offline

#18 2017-07-04 06:54:15

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,666
Website

Re: change the default fonts in my browser

^sounds good. On the todo list for bunsen-configs.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#19 2017-07-04 08:25:46

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,666
Website

Re: change the default fonts in my browser

Steve wrote:

sometimes you get really used to default fonts in some programs, like geany i couldnt use anything other than monospace, well i could but it is just a good font for that application imo.

Don't forget, "monospace" isn't an actual font, it's an alias for whatever has been set in fonts.conf. In BunsenLabs Helium-dev that's set to Noto Sans Mono at the moment.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#20 2017-07-04 16:36:54

HextorBRX
Member
Registered: 2017-06-21
Posts: 18

Re: change the default fonts in my browser

We can add custom fonts to Chromium with the "force font" extension. As far as I know, there is no other way. Hope that helps.

Offline

Board footer

Powered by FluxBB