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?

View 14 Replies


General :: Create And Install All Relevant Font-metrics And Fontmaps Of A TrueType Font For (pdf)TeX?

Jul 9, 2010

Essentially I have found this guide, but it is for miktex, i need a guide for texlive on Debian/Ubuntu which will not pollute dpkg installed texmf.

I'm interested in converting TrueType font to be usable in (pdf)(La)TeX.

All the power google turn up just stuff f relating how to install microsoft fonts or do stuf on MikTeX.

I CANNOT USE XeLaTeX!!! I use pstricks and the font must be available in plain TeX! Otherwise my document looks inconsistent!

View 1 Replies View Related

Ubuntu :: Programmatically Finding Out The Application Font

Jan 10, 2011

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'.

View 2 Replies View Related

Programming :: Small "?" Next To Font In Xlib Font Used As A Graphic?

Mar 16, 2011

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?

View 1 Replies View Related

Ubuntu :: Change Font Used By An Application For It's Window Border Header?

Mar 22, 2011

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?

View 2 Replies View Related

Programming :: Get Console Font Color

Jun 20, 2011

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:

I only need to get the current color settings of the active terminal.

View 3 Replies View Related

Programming :: GD Warning - Trying To Load Font

Feb 24, 2011

I am running a PHP script using the GD library on a Linux server. When I try to load a font using PHP's imageloadfont(), GD replies with:

gd warning: product of memory allocation multiplication would exceed INT_MAX, failing operation gracefully
Linux kernel is 2.6, PHP version is 5.2.9 and GD is 2.0.34.

I have tried several different font but all have the same issue. Does anyone know what the error means?

View 2 Replies View Related

Programming :: GTK - Change The Font Of GtkButton Label?

Nov 15, 2010

I used gtk_bin_get_child to change the font of GtkButton label. It worked properly but when I added an image to the button it didn't work.

View 3 Replies View Related

Programming :: GTK+: GtkButton And GtkList Change Font?

Nov 17, 2010

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

View 2 Replies View Related

Programming :: Tell Printer (HP 1020) What Font And Size To Use

May 17, 2011

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?

View 2 Replies View Related

Programming :: Editing Font Size In Evolution Xml File?

Mar 29, 2010

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?

View 2 Replies View Related

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):

#include <gtk/gtk.h>
#include <glib.h>
#include <gdk/gdk.h>


View 5 Replies View Related

Programming :: Determining Python Font Pixel Size?

Feb 17, 2010

I am trying to scroll text from a text file across a wx.panel. This is the code so far:

def scrolling(self, text, rate):
def scroll(): charList = []
dc = wx.ClientDC(self.panel_1)
open_text = open(text, "rb")
my_text =
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?

View 1 Replies View Related

General :: Missing Glyphs In Terminus Font - Setup A Fallback Font?

Jul 8, 2010

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.

View 1 Replies View Related

OpenSUSE :: Can't Change Font - Font Size FIrefox 3.6.8

Aug 16, 2010

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.

View 4 Replies View Related

Fedora :: Install A Font In F13?

Aug 20, 2010

I have a TTF font that I want to use in GIMP. How do I install this in F13?

View 2 Replies View Related

Debian :: How To Install Font Manually

Jan 5, 2016

How can i install font manually? Where would i put the .ttf fonts?

View 2 Replies View Related

OpenSUSE :: Install A New Font In Gnome (11))

Feb 24, 2010

I have tried to copy the files to /usr/share/fonts/truetype but i get Error opening file '/usr/share/fonts/truetype/FFF Tusj.ttf': Permission denied

View 2 Replies View Related

Ubuntu :: Install A Specific Font From Mac OSX?

Mar 10, 2011

I received from a designer a zipped folder called "__MACOSX", and there are two font files, "._BCongress.scr" and "._BConNor".

How do I get these fonts installed?

I could not find any instructions on how to do this - I found the font converter Fondu, but it didn't seem to understand these file formats. I can't open them in Ubuntu Font Viewer either.

View 3 Replies View Related

Slackware :: Font On A Fresh Install Of 13

Jan 25, 2010

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.

View 2 Replies View Related

Slackware :: Install Courier New Font In 13

Apr 8, 2010

I want to use Courier New font in my gvim editor. I am using Slackware 13.In my present .gvimrc i have:-
set gfn=Bitstream Vera Sans Mono 13

But now i wish to change the font to Courier New. From what i have read this is a Microsoft font, so is there a way that i could get it into Slackware 13?

I found out that an installation of Redhat already has that font and when i do set gfn=Courier New 13 in my .gvimrc in Redhat, the fonts are available(which is not so in Slackware 13)

View 2 Replies View Related

Ubuntu :: By Default Pango Is Choosing AR PL UMing CN As Font To Render Japanese Text When Current Font Doesn't Have Japanese Glyphs

May 4, 2010

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...

View 2 Replies View Related

Fedora :: Upgrade To KDE 4.4 And "Configure Kmail" Displayed In The Default Font No In Console Font

Feb 25, 2010

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!

View 3 Replies View Related

General :: Install TrueType Font On Fedora 14?

Dec 14, 2010

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?

View 3 Replies View Related

General :: Ubuntu - Install The Helvetica Font?

Jan 12, 2010

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.

View 1 Replies View Related

Ubuntu :: How To Install Font Package Using Terminal

Apr 24, 2011

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
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.

View 2 Replies View Related

General :: How To Install (regional Language ) Font

Feb 3, 2010

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

View 4 Replies View Related

Software :: Tinycore - Install Turkish Font

Apr 2, 2011

I am using TinyCore Linux, How can I load Turkish Font.


View 1 Replies View Related

Fedora :: Application For Programming AVR?

Sep 29, 2010

I want to ask whether there is an application to program the AVR on Linux. if there is what the name of his application? and where I can get it

besides, I also want to install the supporting applications to make PCBs, in windows I used mangunakan Altium.

if for linux what is the name of his application?

View 1 Replies View Related

Debian :: Install Windows Font In Raspbian Wheezy

Mar 24, 2015

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?

View 11 Replies View Related

Copyrights 2005-15, All rights reserved