Programming :: Increase Font Size In GTK2 C Program?
Jul 14, 2010
I am writing a program in C to create a GUI application using GTK 2. My actual program is quite large, so I am using a modified version of the sample program from GNOME library for trial. I wish to increase the font size, and I have using PangoFontDescription. I have made that section of the code bold and italic below for quick reference to the code that affects fonts. But it does not make any difference. I am compiling the C file using gcc. The code is as follows(hello.c):
From inside my bash script, is there a way to increase my Xdialog default font size? If not, is there any other way to do it? I found a commercial program using Xdialog with instructions on increasing the font size, but they did not say how they did it. But, it does mean it can be done:[URL]...
When I am in the middle of reading a post in Akgregator and I decide I need larger characters, I press [Ctrl [+]] to increase font size. This increases the characters displayed but also displaces my vertical reading position so that I have to scroll to the text I have been reading.
From inside my bash script, is there a way to increase my Xdialog default font size? If not, is there any other way to do it? I found a commercial program using Xdialog with instructions on increasing the font size, but they did not say how they did it. But, it does mean it can be done: [URL]
When I increase the font size from Konqueror settings the web browser fonts change but the file manager fonts stay the same. Is there another way of setting them?
I've installed some custom programming fonts, namely Speedy.pcf. Its a .pcf, so I just coped it into /usr/share/fonts/misc, and ran mkfontscale, mkfontdir. I can use the font fine in 'xfontsel' and 'urxvt', but when GTK2 tries to render this font. its not even the same font, its just using some default font.
I'm using Debian Testing (Stretch, right now), and for a little while, a couple of months or so, QtCurve wasn't working properly (and lately, not at all) on GTK2.
After quite a lot of frustrated attempts, I think i fixed it in a way that's probably not recommended at all. I copied the file libqtcurve.so from Wheezy's version of gtk2-engines-qtcurve, and used it instead. It "just worked".
So, experiencing problems with QtCurve on GTK (most noticeably, being unable to set fonts and icon themes for GTK2 apps), or was it just an oddity of my install? My installs are often not all that standard, so I'm never sure. I'm asking because I have to figure out lots of things if I'm to make a bug report, and the bug may not even really exist . I think I'll even check before if the Testing package from another server works, maybe that's the problem.
I just found that this fix/version makes inkscape crash, would probably do the same to some other stuff -- newer versions (even with proper full package install) also have the same effect, except for that latest one, that doesn't seem to work in GTK2.
It's reported as a bug in Ubuntu. The "correct"/better fix seems to be commenting the font-related lines in /usr/share/themes/QtCurve/gtk-2.0/kdeglobals (Not to be confused with KDE's own file of the same name) on the newer package. That doesn't seem to make inkscape crash.
The same file also set the icon theme on GTK2 as Oxygen, commenting the icon line on the same file doesn't fix it, the correct theme apparently has to be spelled out, it seems it has to be for all users using any QtCurve theme, and GUI tools to change the icon theme won't work (but I haven't really tested the "native GTK" ones).
The last time I got involved with printers and fonts, printers had tractors and ribbons and the only codes in use were ascii and ebcdic. So even if I could remember it would be out of date. I've written a C program that writes a text file. I want to print it. I run it through expand and send it to lp, but it comes out in an undesirable primitive font.
Once upon a time, one sent a string of commands to the printer telling it what font to use and what size, etc. I dont think this is done anymore, and if it is I dont remember how to do it. I assume programs embed in their output instructions in some common format which tell this stuff to the printer - in my case a HP1020. I've been looking on the search engines but I haven't found the magic words to find what I want. how to get my output formatted. If it involves some escape sequences in the file, maybe a pointer to a description of which does what?
I am trying to increase the font size in the evolution xml file to make the sub-menu easier to read (the menu with new, send/receive, reply, reply to all, forward) I found where the xml file is located but i can not seem to adjust the font. is there a different syntax for xml for changing font than html/css?
I am trying to scroll text from a text file across a wx.panel. This is the code so far:
Code: def scrolling(self, text, rate): def scroll(): charList = [] dc = wx.ClientDC(self.panel_1) open_text = open(text, "rb") my_text = open_text.read() charList.append(my_text) open_text.close() x,y = self.panel_1.GetClientSizeTuple() while 1: for z in charList: for r in range(2000): dc.DrawText(z,x-r,0) time.sleep(rate) dc.Clear() net3 = threading.Thread(target=scroll) net3.setDaemon(1) net3.start()
It scrolls but I am guessing where the range is (2000). I need to be able to determine the total number of pixels that the text in the file is. Is there a python way to determine this?
I can't change fonts in Firefox preferences (Content).
My OS is openSUSE 11.3, KDE 4.4.4. release 8.
Any type and size of font I use, nothing happens. It's still same font which I choose for the first time I've started Firefox afer installing openSUSE 11.3.
How do you go about getting the raw size of a block device under Linux from within a C program? And I mean the raw size of the block device itself, not a file system that may or may not be installed on it. And I'd like to be able to get the raw size of any block device, from hard drives (e.g., /dev/sda) to LVM partitions (/dev/mapper/vg0-home) to loop devices to anything else that is a Linux block device.
I need a really large console font! I used ter-v32n.psf.gz but it is not large enough for what I need. Anyone know of anywhere which I can download a few of them.
I'm running FC 14 and the /dev/shm is no longer as big as it used to be (under an older FC). How can I increase the size of the /dev/shm? I tried the following
Code: mount -o remount,size=6G /dev/shm
Which seemed to work, but then the system hung when I tried to use the extra space and I had to reboot. What's the correct way to increase the size of the /dev/shm partition?
When I downloaded the ISO file thru DAP it showed up as 699.44MB but when I completed the download onto my HDD (XP SP3 & NTFS) it shows up as 716,230KB (see below) with a result when I try to burn on to a CD. I get an error that the file is too large. Whats happening, is there a solution to this?
I have a few VMs set up with virtualbox but am finding that I'm now running out of space in some of the VMs. I really don't fancy creating new VMs and reinstalling and configuring them so is there an easy way to increase the size of the virtual disks?
I have 4 primary partitions on my hard drive. One of these partitions has been divided into 3 logical partitions with some free space left over. The order is this: "swap", "/", "/home", and about 80GB of unallocated space. I want to incorporate that unallocated space into the home partition. I tried this by booting a live CD and starting GParted but it didn't give me the option to increase the size of my home partition or the primary partition as a whole. The only thing it would let me do is decrease the size of my home partition.
Default Ubuntu drivers work fine, but wanted to take advantage of what the new drivers had to offer.
Using Ubuntu 10.10.
Installed latest catalyst drivers vers 11.3 My board has a inbuilt ATI Radeon HD 4250
i installed originally via admin -> additional drivers, but my desktop has shrunk about an inch around the edges (splash screen also changed)
I'm using a Panasonic Plasma Screen (XBMC HTPC) vis HDMI.
Catalyst mentions the Panasonic in Display Manager, but also mentions a Projector (1), which is also the Panasonic TV .
Resolution is set ate 1920 x 1080 and refresh 50 Hz.
I then reinstalled the ATI drivers as per [URL] , but no change (and lost screen coming out of XBMC).
I also installed the splash page fix here [URL] so now at least it looks pretty.
fglrxinfo gives me
Code: display: :0.0 screen: 0 OpenGL vendor string: ATI Technologies Inc. OpenGL renderer string: ATI Radeon HD 4250 OpenGL version string: 3.3.10600 Compatibility Profile Context
i have this directory with multiple images 'pics' and the size is 20mb, and i want to make a .zip or .rar package of this directory but with an increased size so the .zip/.rar file will be 100mb, and then when you extract it the file size is the original 20mb
Finally i have installed ubuntu 10.10 on my home PC. Its working so so good i cant really imagine :-). At the time of partition due to my immaturity, i selected the size of '/' to be 10 Gb. Now i want to increase it without reinstalling ubuntu. Is there any safe way of doing it ? i did some research and came to know that Gparted might be of some help, but i will really be grateful if any of you can guide me.
the use of livecd for example, can i use liveusb instead ? i was thinking of making liveusb of centos 5.5.
We have a problem where there is not enough space in our /tmp partition. We are trying for fix our mysql database, and keep running in to the space issue... the error we are getting says:
myisamchk: Disk is full writing '/tmp/STGL3SGd' (Errcode: 28). Waiting for someone to free space... (Expect up to 60 secs delay for server to continue after freeing disk space)
Our /tmp partition is current set at 485M, but it is not large enough to handle the database fix...
Does anyone know of a work around - perhaps to assign different directory for the temp files?
I have centos 5 virtual server running on ESXi (vsphere 4.1).i have to increase disk space. I increased the size of the virtual machine in Vcenter.But i allready have 4 primary partitions. when i run fdisk /dev/sda, i get this :
Device Boot Start End Blocks Id System /dev/sda1 * 1 13 104391 83 Linux /dev/sda2 14 3916 31350847+ 8e Linux LVM /dev/sda3 3917 6527 20972857+ 83 Linux /dev/sda4 6528 13054 52428127+ 83 Linux