LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-21-2020, 01:26 PM   #1
przemo
Member
 
Registered: Feb 2016
Location: cork.ie
Distribution: Slackware-current
Posts: 162

Rep: Reputation: Disabled
gtk3 themes


I have problem with setting Bold font in
.config/gtk-3.0/settings.ini

i am a big fan of Terminus font but cannot get bold to work
i use dwm so settings from xfce4 do not work

Code:
cat /home/przemo/.config/gtk-3.0/settings.ini 
[Settings]
gtk-theme-name= Xface-flat
gtk-icon-theme-name= Adwaita
gtk-font-name= Terminus Bold 10
gtk-cursor-theme-name= Adwaita
gtk-cursor-theme-size= 0
gtk-toolbar-style= GTK_TOOLBAR_BOTH
gtk-toolbar-icon-size= GTK_ICON_SIZE_LARGE_TOOLBAR
gtk-button-images= 1
gtk-menu-images= 1
gtk-enable-event-sounds= 1
gtk-enable-input-feedback-sounds= 1
gtk-xft-antialias= 1
gtk-xft-hinting= 1
gtk-xft-hintstyle= hintfull
gtk-xft-rgba= rgb
 
Old 05-21-2020, 05:49 PM   #2
EdGr
Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 998

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
You cannot specify bold, italics, etc. in the font settings because the text that GTK draws is markup. Markup has its own use of bold and italics.
Ed
 
Old 05-21-2020, 11:51 PM   #3
przemo
Member
 
Registered: Feb 2016
Location: cork.ie
Distribution: Slackware-current
Posts: 162

Original Poster
Rep: Reputation: Disabled
how xfce4-apperance-settings handle it so it is possible ???
 
Old 05-22-2020, 03:54 AM   #4
EdGr
Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 998

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
That is different code.

I can set the default font to bold in vte-2.91 (for example), but then normal and boldface text appear identical. You probably don't want that.

The Terminus font is too light to be readable on my 4K monitor unless I go to larger-than-usual sizes. I suggest using a better font.
Ed
 
Old 05-22-2020, 05:14 AM   #5
przemo
Member
 
Registered: Feb 2016
Location: cork.ie
Distribution: Slackware-current
Posts: 162

Original Poster
Rep: Reputation: Disabled
true, Monospace looks good too.

Last edited by przemo; 05-22-2020 at 05:19 AM.
 
Old 06-01-2020, 07:58 AM   #6
Regnad Kcin
Member
 
Registered: Jan 2014
Location: Beijing
Distribution: Slackware 64 -current .
Posts: 663

Rep: Reputation: 460Reputation: 460Reputation: 460Reputation: 460Reputation: 460
The IBM Plex series of fonts is pretty snazzy IMHO and it is FOSS.
I first saw IBM Plex Mono Italic and I said "Wow. What font is that?"
I have since that time been using the IBM Plex fonts in my presentations
and I think they have a nice look.

Quote:
Version 1.0 of the font family had four typefaces, each with 8 weights (Thin, Extra Light, Light, Regular, Text, Medium, Semi-bold, Bold) and true italics to complement them.[2]

IBM Plex Sans – A grotesque sans-serif typeface with a design that was inspired by Franklin Gothic. Other sans-serif classifications were rejected on the basis of being too soft (humanist), inefficient (geometric) and overly perfected (neo-grotesque). Some of Franklin Gothic's features such as the angled terminals, a double-storey g and a horizontal line at the baseline of the 1 are used in IBM Plex Sans. On 7 April 2019, IBM Plex Sans Variable, a variable counterpart to IBM Plex Sans was released.
IBM Plex Sans Condensed – A condensed variant of IBM Plex Sans.
IBM Plex Mono – A monospaced typeface based on IBM Plex Sans. The italic design was inspired by the Italic 12 typeface used on the IBM Selectric typewriter; this is particularly evident with the italicised i, j, t and x letters.
IBM Plex Serif – A transitional serif typeface with a design that was inspired by Bodoni and Janson. Other serif classifications were rejected for being too humanist and outdated (old-style) and too clunky and unrefined for long text (slab-serif). Some of Bodoni's features such as ball terminals and rectangular serifs are used in IBM Plex Serif.
Downloads: https://github.com/IBM/plex/
website: https://www.ibm.com/plex/
 
3 members found this post helpful.
Old 06-02-2020, 10:18 PM   #7
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,753

Rep: Reputation: Disabled
@Regnad Kcin

This is a nice mono font, just went to check it out, I use a very similar droid sans mono and wanted to compare the two.
The image probably shows more than I could describe. It's barely visible, but the IBM has vertical lines too thin (for a regular variant).
What appears is that either droid regular is variant thick, or the IBM regular is variant thin. It's no real problem, just affects readability a bit.
Also, the height differs, even though they are both size 12.

Screenshot: droid top & IBM bottom compared 3 times, first low contrast, then regular (with AA), and last high contrast where the thin verticals really show.
Attached Thumbnails
Click image for larger version

Name:	mono.png
Views:	41
Size:	10.8 KB
ID:	33330  
 
1 members found this post helpful.
Old 06-03-2020, 02:02 AM   #8
Bindestreck
Member
 
Registered: Jul 2011
Location: Sweden
Distribution: Slackware
Posts: 820

Rep: Reputation: 440Reputation: 440Reputation: 440Reputation: 440Reputation: 440
Quote:
Originally Posted by przemo View Post
I have problem with setting Bold font in
.config/gtk-3.0/settings.ini

i am a big fan of Terminus font but cannot get bold to work
i use dwm so settings from xfce4 do not work

Code:
cat /home/przemo/.config/gtk-3.0/settings.ini 
[Settings]
gtk-theme-name= Xface-flat
gtk-icon-theme-name= Adwaita
gtk-font-name= Terminus Bold 10
gtk-cursor-theme-name= Adwaita
gtk-cursor-theme-size= 0
gtk-toolbar-style= GTK_TOOLBAR_BOTH
gtk-toolbar-icon-size= GTK_ICON_SIZE_LARGE_TOOLBAR
gtk-button-images= 1
gtk-menu-images= 1
gtk-enable-event-sounds= 1
gtk-enable-input-feedback-sounds= 1
gtk-xft-antialias= 1
gtk-xft-hinting= 1
gtk-xft-hintstyle= hintfull
gtk-xft-rgba= rgb
I think it is possible to do what you want if you change it inside the GTK3 theme code (CSS). Here is a template on what to change;

Code:
p.normal {
  font-weight: normal;
}

p.thick {
  font-weight: bold;
}

p.thicker {
  font-weight: 900;
}
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Making GTK3 themes – Part 2: The gtk.css and gtk-widgets.css file LXer Syndicated Linux News 0 07-24-2012 01:50 PM
LXer: Making GTK3 themes – Part 1: Basics LXer Syndicated Linux News 0 07-15-2012 03:21 AM
Creating gtk3 themes? anon109 Linux - General 4 06-14-2012 05:31 PM
loading gtk3 themes on a none gnome-3 based wm Drone4four Linux - Desktop 1 01-01-2012 12:29 AM
LXer: Bisigi Themes to be Ported to GTK3, First Preview Looks Stunning LXer Syndicated Linux News 0 12-06-2011 12:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration