You are not logged in.
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
(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}
~/.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.
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
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
Preferences → Content → Fonts & Colors > This is exactly what I did.
OK, great, please mark the thread [SOLVED] if you consider it so, thanks!
Offline
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
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
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
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.
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 )
Offline
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
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
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
~/.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?
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.
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 )
Offline
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
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
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
@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 )
Offline
add some comments to our fonts.conf?
Ah yes, I do like me a good comment
They are more likely to be read than help files anyway, I think.
Offline
^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 )
Offline
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 )
Offline
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