Install Fonts

Seth Hasani sepheebear at gmail.com
Sun Apr 15 04:51:07 UTC 2007


On 4/14/07, OOzy Pal <oozypal at gmail.com> wrote:
> How to install fonts copied from WinXP fonts dir in Ubuntu Fiesty.
>
> I copied these fonts to
>
> /usr/share/fonts/truetype/ttf-microsoft


You missed one vital step. Forgot to tell fontconfig about your new
font directory:

Edit the file /etc/fonts/fonts.conf (all users) or ~/.fonts.conf (your
account only) and insert the line:

     <dir>/usr/share/fonts/truetype/ttf-microsoft</dir>

Make sure that line is somewhere in between the opening <fontconfig>
and closing </fontconfig> tags in that file.

> I did then
>
> fc-cache (no help)
>
> Then I restarted the box with no too as the fonts do not appear in
> OpenOffice.

No need to restart at all. Run `fc-cache -v` (rebuilds
~/.fonts.cache-1) or `sudo fc-cache -v` (to rebuild system wide
fonts.cache-1)

Here is an example of what my ~/.fonts.conf looks like:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- ~/.fonts.conf file to configure personal font access -->
<fontconfig>

<!-- Font directory list -->

    <dir>~/.fonts.artistic</dir>

<!-- Autohinting
    <match target="font">
        <edit name="autohint" mode="assign">
            <bool>true</bool>
        </edit>
    </match>
-->
</fontconfig>


Seth
-- 
Sex is not the original sin, guilt is.




More information about the ubuntu-users mailing list