Perl::Gtk2 on Linux --- How to Find the Default Font Being Used?
Hello All,
Wasn't sure if this was the correct thread to post this under but figured it has to do with Perl and Gtk2 so why not...
Anyway.. How can I find out what the Default font being used is inside a
. In this case I'm trying to figure out the
font being used inside a
widget. I have NOT set any Font-type options/attributes or anything like that, so I'm assuming its whatever the default one would be...?
Is there anyway I can figure this out somehow? Any thoughts or suggestions would be greatly appreciated!
Edit: I just had an idea to try and figure this out... So I created a "
" which is just an easier way to get a
to open. And when I add this to the window and then click on the button, the default font that's showing in that is "Sans 12pt"... So I'm thinking that is probably it...
If I add
to one of my TextTags, it doesn't look like the Font is changing, which I guess could mean 2 things.
One: it is the default font which is why it doesn't look like it's changing because it was already that font
Two: it doesn't exist and that's why the Font isn't changing...
Thanks in Advance,
Matt
Last edited by jim mcnamara; 08-27-2013 at 10:44 PM..
Reason: Complete reformat
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:
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:
As you can see it says the Default value is "Sans 10" but I can't find that anywhere....?
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)
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)
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)
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)
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)
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)