[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Freetype] where are the fonts ???
From: |
Riccardo Cohen |
Subject: |
Re: [Freetype] where are the fonts ??? |
Date: |
Mon, 02 Sep 2002 15:57:31 +0100 |
Yes, but in a program that will be distributed, I cannot afford making a find
or locate at startup !
I was expected a C function or environment variable telling where they are !
The rpm function would not work on linux debian.
Shall I scan /etc/X11/XftConfig ?
on the other hand, I have a standard redhat 6.2 machine with :
FontPath "/usr/X11R6/lib/X11/fonts/TrueType"
in the file /etc/X11/XF86Config, but there is no directory like this on the
machine !
All that is strange...
Vadim Plessky wrote:
>
> On Monday 02 September 2002 12:28 pm, Riccardo Cohen wrote:
> | Hi,
> | If I build an application with freetype, I suppose that I must know where
> | are the fonts in the hard disk. On windows I can try in
> | "GetWindowsDirectory()/Fonts", but on Linux ??? and MacOsX ???
> |
> | Thanks for any information...
>
> Fonts are usually located at
> /usr/X11R6/lib/X11/fonts/ (if you are running one of typical Linux
> distributions)
> but you can put them in A8ny* folder, and add that folder to
> /etc/X11/XftConfig
> You just need to re-run #xftcache after each modification of XftConfig
> (Linux will do it automatically on startup/reboot, but you don't have to
> reboot after editing XftConfig)
>
> Anyway, easy way to serach for a fonts is to invoke:
> #locate .pfb
> or
> #locate .ttf
> --> than you will see what folders have those fonts.
>
> Alternatively, you can invoke rpm and ask for 'fonts' packages:
>
> address@hidden vad]$ rpm -qa | grep fonts
> ghostscript-fonts-5.50-7mdk
> XFree86-75dpi-fonts-4.2.0-6mdk
> fonts-ttf-west_european-1.3-9mdk
> urw-fonts-2.0-5mdk
> XFree86-100dpi-fonts-4.2.0-6mdk
> fonts-ttf-decoratives-1.3-9mdk
>
> and than list available fonts:
> address@hidden vad]$rpm -ql urw-fonts
> ...
>
> Hope this helps!
> --
>
> Vadim Plessky
> http://kde2.newmail.ru (English)
> 33 Window Decorations and 6 Widget Styles for KDE
> http://kde2.newmail.ru/kde_themes.html
> KDE mini-Themes
> http://kde2.newmail.ru/themes/
--
Riccardo Cohen
Articque
Les Roches
37230 Fondettes
France
email = address@hidden
web = http://www.articque.com
tel: +33 02 47 49 90 49
fax: +33 02 47 49 91 49