Hi Sreeram,
there are two commands: fc-cache and fc-match.
Ideally, it would look like this:
$ mkdir ~/.fonts; cd ~/.fonts
$ wget URL_of_My_Font
$ fc-cache -fv
[..]
/export/home/<user>/.fonts: caching, new cache contents: 1 fonts, 1 dirs
[..]
$ fc-match My_Font
My_Font.ttf: "My_Font" "Medium"
And now you'd follow Takao's description to disable the
default terminal font ("Monospace:12") and select My_Font instead.
Regards,
hnhn
Sreeram BS wrote:
> Hello Jan,
> Thanks a lot for your reply. As per suggestion in the mail,I tried
> using 'fc-cache' command to find whether the font which I added would be
> shown up. Unfortunately, the list of fonts listed by fc-cache did not
> include the font which I added. From this, I infer that the font is not
> added to the system properly. Could you please guide me with the
> procedure to add the font to the system? I am using the home PC and so I
> can become super-user and I am ok if this requires manual tweaking of
> any files. Kindly guide me to achieve this.
>
> Regards and thanks,
> Sreeram
>
> On Wed, Jun 24, 2009 at 5:49 PM, Jan Hnatek <Jan.Hnatek at sun.com
> <mailto:Jan.Hnatek at sun.com>> wrote:
>
> Hi Sreeram,
>
> GNOME (and gnome-terminal) uses FreeType / Fontconfig to find
> its fonts, and steps b) and c) really apply to X11 font
> configuration, not GNOME.
>
> You need to make sure that fontconfig is aware of your added font.
> First, try to run 'fc-cache' and then check the font selection
> in gnome-terminal's Profiles.
>
> You can verify the font is added to Fontconfig's list by running:
> fc-match "name of your font"
> alternatively with '-v' option to get more info.
>
> Ex:
> # fc-match "Monospace"
> CourierRegular.ttf: "Courier New" "Regular"
>
> Regards,
> hnhn
>
>
> Sreeram BS wrote:
>
> Hi,
> I am using Solaris 10 for x86 10/08. I use the JDS(Java
> Desktop System). I would like to use a particular .ttf font for
> my gnome-terminal, but I am not able to do it. I have the font
> file (.ttf) with me. But I dont know as to how to achieve this
> task. I made the following attempts:
> a) I created a .fonts directory in my $HOME directory and put
> the font file. I was told that JDS will pick up the font
> automatically and we have to select that font from the gnome
> terminal. When I open the fonts menu under Edit->Profiles in
> gnome terminal, I am unable to see my font in the list.
> b) I tried to use few commands like "xset fp+
> <directory-where-font-present>" and "xset fp rehash", but in
> vain again.
> c) I tried to use ttmkfdir, mkfontdir tools, but could not get
> through.
> I request you to kindly give me a step-by-step procedure to
> add my .ttf font to the system and use it in the gnome-terminal.
> I have been struggling to get this and I would be very very
> thankful to you for your suggestions.
> Regards,
> Sreeram
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> desktop-discuss mailing list
> desktop-discuss at opensolaris.org
> <mailto:desktop-discuss at opensolaris.org>
>
>
> --
> Jan Hnatek
> jan.hnatek at sun.com <mailto:jan.hnatek at sun.com>
>
>
--
Jan Hnatek
jan.hnatek at sun.com