Programming :: Install And Use The The Font In The Application?
Jun 24, 2010
1. How to use the the font in the application? Any code example?
2. How to install the font for linux?
3. How to make the installed font as the system default font?
4. How font/text is rendered in linux? Any inforamation about the font system in linux?
I am writing an Air application and I would like to have the app use the font indicated in Appearance Preferences.
A similar problem to this one :
I do not have Gtk::Settings and I have looked in ~/.gconf/desktop/gnome/ but I do not have an interface folder and none of the others I opened have any font details.
I have tried simply not setting a font within my application but it is using a font not specified in the Appearance Preferences at all. It looks like Times.
Ideally I would like to be able to get this information from Ubuntu using a native process :
get the font name of the Application font or would I have to write a script and call that from inside Air?
I have a default installation of Ubuntu 10.4 with Unity running on top of Gnome. (I think this is correct. I certainly can get Nautilus running quite easily and as I mentioned earlier I have ~/.gconf/desktop/gnome/ folders).
The brief is to get the application working on the default installation so I cannot install anything but the target machine I am using has got 'gconftool'.
I am seeing a weird error in a font display. I see a small question mark next to a font that I am using as a simple graphic. Does this mean that some function call in xlib is being passed an invalid paramter?
I'm trying to use TCM (Toolkit for Conceptual Modeling) but the font used by the application for menus window headers & such is very hard to read. I can change the font used for fields within the application in the configuration file, but there doesn't seem to be a way to change the fonts for the other fonts.
Is there a way to do this through gnome or Ubuntu?
I've coma across a problem I have not been able to solve myself. Is there a function in the linux API similar to GetConsoleScreenBufferInfo() on Windows? refer to: http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx
I only need to get the current color settings of the active terminal.
I used gtk_bin_get_child and gtk_widget_modify_font to change the font of GtkButton. They worked properly but when I added an image to the button, they do not work.I also want to change the font of GtkList widget, but I don't know how to do this.Please, answer the questions if you know and do not say your idea about my religious statement because we live in the free world and everyone can speek and write freely
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 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):
Most of my work happens in a terminal, so I need a clear, readable font. I've settled a while ago on Terminus [URL]..., which works wonders for me. I added XTerm*faceName : Terminus in my ~/.Xdefaults, and I do get the Terminus font. Unfortunately, a lot of Unicode glyphs are missing (mathematical symbols, greek and hebrew letters), displaying as little square blocks instead.
If I remove the faceName entry, the default configuration seems able to display most of the glyphs (including math, greek, hebrew, runic, and whatever else), but the default font is much harder to read.
A google search hints that it should be possible to use Terminus as the default font, and fallback to (an)other one(s) for missing glyphs, but provides no further explanation. I've seen documentation that recommends Bitstream Vera Sans as a fallback, but it lacks the glyphs I need too; I don't know how to identify the default font used by xterm either, I had a look at /usr/share/X11/app-defaults/XTerm, but all I can find are generic references to old pre-fontconfig font names.
Using Gentoo Linux, fontconfig and xterm are up to date, USEs trutype and unicode enabled, X.Org server 1.6.
Edit: I alternate between Ratpoison, Awesome and XMonad, without a desktop environment.
I installed slack 13 from disk 1, and then went ahead and installed the missing sets using slapt-get (t,tcl,x,xap and y). I skipped the kde and kdei sets. When I start xfce, the fonts are all messed up as shown in the attachment.
Actually I want to log a bug but I don't really know what package to log it against. The problem is that by default Pango is choosing the AR PL UMing CN as the font to render Japanese text when the current font doesn't have Japanese glyphs. But AR PL UMing CN is a Chinese font, so Chinese glyphs for kanji characters (e.g., 覚) are displayed. This is jarring and confusing for Japanese readers.
This situation mostly arises when you have mixed English and Japanese text. Some applications (for instance Firefox) will allow you to select a font for Asian text. Thus if the text contains only Asian characters it will use the font you select, rather than what Pango would have selected. But if it is a mix of English and Japanese, you end up with the wrong glyphs.
Other environments (like gnome-terminal, or a gedit) have difficulties as well. Since the primary interface requires mono spaced roman characters you run into difficulty selecting fonts. Most Japanese fonts only have proportional roman characters. This means that if use a nice roman font and use Japanese text (for instance file names), you end up with Chinese glyphs. What I want is a mechanism that will work across all of Gnome for selecting the font I want to use for Chinese characters. That way I can choose either Japanese or Chinese glyphs.
I realize this is low priority. It only bugs me a little, but many of my Japanese colleagues are put off from using Ubuntu because they are confused by the Chinese glyphs that pop up on my screen from time to time. As I said, I'd like to file a bug, but I'm not sure against what package...
In all previous versions of KDE I had Console8x16 set as KDE font for all cases (Settings->Appearance->Fonts). After tonight upgrade, this (only!) font is not working. I can see it in font manager, I can set it in ...Appearance->Fonts, but actually remains default font. Two of about 30 attempts somehow (can not reproduce) succeeded to set "console 12" font, but it disappeared after restart.
1. What can be the problem in 4.4? 2. In /usr/share/fonts tere are 3 files named console8x16.pcf, console8x8.pcf and console9x15.pcf, but in the font list in Appearance->Fonts I can see only 2 - one named "Console" (seems to be 8x16 and "console" (8x8). File 9x15 does not appear at all. Why?
Last results of attempts: cannot use console font in part of areas, while part works OK. For example: kdevelop editor, kmail message body text works OK. But kmail other parts - does not. The most interesting is that although setting the kmail body message text to console displays the message body text correctly (with console font), but the example message in "Configure kmail" dialogue "The Quick Brown Fox Jumps Over The Lazy Dog" is displayed in the default font, as if there is no console font!
i would like install tahoma on fedora 14 i create a folder .fonts name in copied my tahoma font in this folder and run this command fc-cache -f in my terminall.but i cant use in this font yet,how should i install fonts in fedora 14?
I don't know too much about the licensing issues surrounding fonts, but I would like to install Helvetica on my machine for my own personal use. I haven't been able to find a whole lot about this on Google.There are a lot of Helvetica alternatives out there, but I want Helvetica itself.
I am pure newbie with Ubuntu, Good riddance from Windows 7. I am no way near to anything related to programming yet I wanted to see this world of freeware. Uploaded with ImageShack.us Please suggest good font package and how to install them and where to get them. Also please let me know where to find all the treasure to make my desktop more funky and how to install them using terminal or if there is easier way.
i am trying to read some newspapers online through firefox and opera in my rhel 5 machine. My language is tamil. By default it will not support that. But i have downloaded the fonts. i put that *.ttf fonts in /usr/share/X11/fonts directory. But its not working? I tried by putting in /etc/fonts directory too. But still problem persists
I managed to install LibreOffice. I've only a little experience with Ubuntu and none at all with Debian.
My 1st project is relatively simple. Pro Screenwriting software can be kinda costly, a hundred & change, at least.
With expanding contests, YouTube & the like, writers interest has been growing; and these day most submissions are pdf not paper. (The BBC Writersroom is a fantastic resource, and even allows unsolicited submissions). [URL] ....
Some years ago, Alan Baird got an award from Sun Micro for developing a set of free format templates called Screenwright for Open Office. Including both US & A4, as well as radio, sitcom, theatre and movies; these have now been ported to Libre Office under Creative Commons usage. [URL] ....
I believe these should work well and fairly fast on the new Pi, as most spec scripts are vastly more white space than word count.
There is a minor problem tho, which first came up with 'New Courier' on Windows machines. The 'page per minute' rule is still important enough that the different line/page length spacing of 'Courier-like' fonts is unacceptable in a submission.
The standard Courier font can be had from [URL] ....
That font set is a zip file which should be extracted and then the 3 fonts are to be dragged into the Windows fonts directory.
So how exactly do I do that with Rasperian Wheezy? Do I extract on the Pi or on the windows machine? Are fonts like most documents, readable on any distro, or do they need to be converted somehow?