Hi Sreeram,

 >     /home/guest/.fonts: caching, new cache contents: 0 fonts, 0 dirs
this may mean that fc-cache already found the font on its own.

What's the output of
   $ fc-match "LuxiMono"
while logged in as the 'guest' user?

 >     /home/guest/.fontconfig: invalid cache file:
 >     5b529c209d37bd665448cc18fc084c9c-x86.cache-2
This may also be the problem. I think you can try to delete
~/.fontconfig and then rerun fc-cache.

Regards,
hnhn

Sreeram BS wrote:
> Hi,
>       Could you please tell me if I have missed something important. I 
> am stuck. Kindly guide me.
>  
> Regards,
> Sreeram
> 
> On Fri, Jun 26, 2009 at 10:18 PM, Sreeram BS <sreeramabs at gmail.com 
> <mailto:sreeramabs at gmail.com>> wrote:
> 
>     Hi Jan, Takao,
>         Thanks a lot for your inputs.
>         Unfortunately, I am still not able to get the font in the
>     gnome-terminal. Moreover, the fc-cache command itself is not taking
>     the font. I created the '.fonts' directory and put in the .ttf file.
>     The file is luximr.ttf [TTF font file for Luxi Mono font, which I
>     like the most]. After that, I became superuser and from the .fonts
>     directory, issued the command 'fc-cache -fv'. It started caching
>     fonts from various directories and finally it tried caching fonts
>     from /home/guest/.fonts directory (which is the place I put the
>     luximr.ttf font). It said 0 fonts and 0 dirs. When I issue the
>     'fc-match' command with fc-match 'Luxi Mono', nothing turned up. I
>     am pasting the console output here:
> 
>     ----------------------------------------------------------------
>     bash-3.00$ which fc-cache
>     /usr/bin/fc-cache
>     bash-3.00$ ls
>     C          Desktop    Documents  Utils
>     bash-3.00$ cd .fonts
>     bash-3.00$ ls
>     luximb.ttf  luximr.ttf
>     bash-3.00$ su
>     Password:
>     # bash
>     # fc-cache -fv
>     /usr/openwin/lib/X11/fonts: caching, new cache contents: 0 fonts, 13
>     dirs
>     ...
>     /home/guest/.fonts: caching, new cache contents: 0 fonts, 0 dirs
>     /var/cache/fontconfig: cleaning cache directory
>     /home/guest/.fontconfig: cleaning cache directory
>     /home/guest/.fontconfig: invalid cache file:
>     5b529c209d37bd665448cc18fc084c9c-x86.cache-2
>     fc-cache: succeeded
>     -----------------------------------------------------------------------
> 
>         I am quite sure about the font files, because I have used the
>     same files for setting the Luxi Mono font on Solaris 10 SPARC. But,
>     when I try to use it on Solaris 10 x86, I am unable to do it. Could
>     you please guide me installing this Luxi Mont font on my Solaris 10
>     x86 machine?
> 
>     Thanks & Regards,
>     Sreeram
> 
> 
> 
>     On 6/25/09, *Jan Hnatek* <Jan.Hnatek at sun.com
>     <mailto:Jan.Hnatek at sun.com>> wrote:
> 
>         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>
>             <mailto: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>
>                    <mailto:desktop-discuss at opensolaris.org
>             <mailto:desktop-discuss at opensolaris.org>>
> 
> 
>                --    Jan Hnatek
>                jan.hnatek at sun.com <mailto:jan.hnatek at sun.com>
>             <mailto:jan.hnatek at sun.com <mailto:jan.hnatek at sun.com>>
> 
> 
> 
>         -- 
>         Jan Hnatek
>         jan.hnatek at sun.com <mailto:jan.hnatek at sun.com>
> 
> 
> 

-- 
Jan Hnatek
jan.hnatek at sun.com

Reply via email to