Sponsored Content
Top Forums Shell Programming and Scripting Perl::Gtk2 on Linux --- How to Find the Default Font Being Used? Post 302848511 by mrm5102 on Thursday 29th of August 2013 12:58:51 PM
Old 08-29-2013
Hey Jim, thanks for the "Cleanup".
I was kinda in a rush when I posted my question...


If "Sans" is showing in the FontSelectionDialog as the default selected font, how come I can't seem to find it?

I've checked this location, including all subdirs:
Code:
> ls -l /usr/share/fonts
total 232
drwxr-xr-x 2 root root 90112 May 11  2011 100dpi
drwxr-xr-x 2 root root 94208 May 11  2011 75dpi
drwxr-xr-x 2 root root  4096 May 11  2011 cyrillic
drwxr-xr-x 3 root root  4096 May 11  2011 encodings
drwxr-xr-x 2 root root 20480 May 11  2011 misc
drwxr-xr-x 2 root root  4096 May 11  2011 Speedo
drwxr-xr-x 2 root root  4096 Jul 24 15:55 truetype
drwxr-xr-x 2 root root  4096 May 11  2011 Type1
lrwxrwxrwx 1 root root    20 Oct  4  2012 URW -> ../ghostscript/fonts
drwxr-xr-x 2 root root  4096 May 11  2011 util

There are plenty of fonts with 'Sans' in their title but nothing that's called just "Sans"... Any ideas?


EDIT:
Ok, so I just found this in my Gtk2 documentation:
Code:
The "font-name" property

   "font-name"                gchar*                : Read / Write The string that represents this font.
 Default value: "Sans 10"

As you can see it says the Default value is "Sans 10" but I can't find that anywhere....?

Thanks,
Matt
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Hw to change the font of output in perl

Hw to change the font color and size of output in perl (2 Replies)
Discussion started by: trupti_rinku
2 Replies

2. Linux

Need gtk2 for linux es3

I need to have the ability to read acrobat files on my Red hat linux boxes (enterprise level 3) . however acroread will not install saying i do not have gtk2 (gimp toolkit). Does anyone know where i can either get gtk2 for this linux or where i can get an acrobat reader for this flavour of linux. (1 Reply)
Discussion started by: frankkahle
1 Replies

3. UNIX Desktop Questions & Answers

gtk2-perl load error help

I write this code. It show the first dialog correctly. but, no matter i modify the code(load module by use or require, or something i think maybe error) it can't pop-up anymore. and show this warning. Thanks. (I'm sorry for my English.) Tue Mar 16 17:24:36 2010 ... (0 Replies)
Discussion started by: snyh
0 Replies

4. Programming

perl/Gtk2: issue with initializing Gtk2

hi everybody, currently i'm playing with perl and Gtk2. i've found a fairly old but nice looking example of a client/server application which is written in perl and Gtk2. the server part works perfect but i can't start the client part and keep getting following error message: $ ./client-gui.pl... (1 Reply)
Discussion started by: pseudocoder
1 Replies

5. Shell Programming and Scripting

Control font size: Perl

Is there a way to control the font type and size, when you print in the output file,in Vim/notepad, using perl? (0 Replies)
Discussion started by: shristi
0 Replies

6. Linux

Command to find default font name in Ubuntu OS

Hi, Does anyone know whether there is any console command available to get the info of the default Ubuntu OS or any config file where in I search for the font details? I am using Ubuntu 8.04 and 10.04 (LTS) both together. Thanks (1 Reply)
Discussion started by: royalibrahim
1 Replies

7. Shell Programming and Scripting

[Perl + Gtk2] Image disappears after scrolling / minimizing window

Hello everyone I don't know if it's the right place to ask, but I will try. I want to use Gtk2 in my Perl chart-drawing script, I found a sample code that could be very useful for me somewhere, but I noticed there is one problem with that - when I draw something, and then scroll the window or... (0 Replies)
Discussion started by: xqwzts
0 Replies

8. Shell Programming and Scripting

Gtk2-Perl

Hai how to activate (script2)page of a note book in Gtk2-Perl when one script1 is run successfully... Thanks kiran (0 Replies)
Discussion started by: kiran425
0 Replies

9. Shell Programming and Scripting

Gtk2-Perl

Hai how to activate (script2)page of a note book in Gtk2-Perl when one script1 is run successfully... Thanks kiran (1 Reply)
Discussion started by: kiran425
1 Replies

10. Linux

How do we change the default font on Linux system?

I have two hosts i.e host1 & host2. host1 has the desired font details of which are below: uname -a Linux host1 3.10.0-693.21.1.el7.x86_64 #1 SMP Wed Mar 7 19:03:37 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux $ fc-match StRydeRegular.ttf: "St Ryde" "Regular" I need the same default font... (27 Replies)
Discussion started by: mohtashims
27 Replies
Gtk2::VButtonBox(3pm)					User Contributed Perl Documentation				     Gtk2::VButtonBox(3pm)

NAME
Gtk2::VButtonBox - wrapper for GtkVButtonBox HIERARCHY
Glib::Object +----Glib::InitiallyUnowned +----Gtk2::Object +----Gtk2::Widget +----Gtk2::Container +----Gtk2::Box +----Gtk2::ButtonBox +----Gtk2::VButtonBox INTERFACES
Glib::Object::_Unregistered::AtkImplementorIface Gtk2::Buildable Gtk2::Orientable METHODS
widget = Gtk2::VButtonBox->new buttonboxstyle = Gtk2::VButtonBox->get_layout_default Gtk2::VButtonBox->set_layout_default ($layout) o $layout (Gtk2::ButtonBoxStyle) integer = Gtk2::VButtonBox->get_spacing_default Gtk2::VButtonBox->set_spacing_default ($spacing) o $spacing (integer) ENUMS AND FLAGS
enum Gtk2::ButtonBoxStyle o 'default-style' / 'GTK_BUTTONBOX_DEFAULT_STYLE' o 'spread' / 'GTK_BUTTONBOX_SPREAD' o 'edge' / 'GTK_BUTTONBOX_EDGE' o 'start' / 'GTK_BUTTONBOX_START' o 'end' / 'GTK_BUTTONBOX_END' o 'center' / 'GTK_BUTTONBOX_CENTER' SEE ALSO
Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Box, Gtk2::ButtonBox COPYRIGHT
Copyright (C) 2003-2011 by the gtk2-perl team. This software is licensed under the LGPL. See Gtk2 for a full notice. perl v5.14.2 2012-05-27 Gtk2::VButtonBox(3pm)
All times are GMT -4. The time now is 03:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy