Re: /usr/local support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 3 Aug 2007, Damjan Jovanovic wrote:

> On 7/26/07, Damjan Jovanovic <damjan.jov@xxxxxxxxx> wrote:
> > Hi
> >
> > Doing a "./configure --prefix=/usr" will generate a fonts.conf that
> > searches for fonts in /usr/share/fonts and some X11 fonts directory,
> > but completely ignores /usr/local/share/fonts. Any software that
> > installs itself to /usr/local and installs some custom fonts won't be
> > able to even find them unless the user is aware of the problem and
> > edits fonts.conf to include it
> > (http://lists.freedesktop.org/pipermail/fontconfig/2003-October/000690.html).
> >
> > Man and info look for documents in /usr/local, gcc and binutils look for
> > headers and libraries in /usr/local, the freedesktop specs support
> > menus/icons/MIME types in /usr/local, and yet fontconfig completely
> > ignores /usr/local. I am aware that some Linux distributions provide
> > fonts.conf with <dir>/usr/local/share/fonts</dir> included, but many
> > don't, and not only is it better for you to support this as a matter
> > of policy, but it's also easier to fix the problem at the core than to
> > run tests on every distribution and persuade them all to do this.
> >
> > Here (and attached) is a proposed patch for fontconfig-2.4.2 that adds
> > /usr/local/share/fonts to the font search paths. Changes to
> > ./configure are not included.
> >
> > --- a/configure.in      2006-12-03 01:24:39.000000000 +0200
> > +++ b/configure.in      2007-07-26 07:56:31.000000000 +0200
> > @@ -426,6 +426,14 @@
> >                         ;;
> >                 esac
> >         done
> > +       case x"$FC_ADD_FONTS" in
> > +       x)
> > +               FC_ADD_FONTS="/usr/local/share/fonts"
> > +               ;;
> > +       *)
> > +               FC_ADD_FONTS="/usr/local/share/fonts,$FC_ADD_FONTS"
> > +               ;;
> > +       esac
> >         AC_DEFINE_UNQUOTED(FC_ADD_FONTS,"$add_fonts",[Additional font directories])
> >         ;;
> >  no)
> >
> > Please let me know if this is okay or if there is a better way.
> >
> > Thank you
> > Damjan Jovanovic
> >
> >
> 
> You know, some feedback would be nice. Is this the right place to send
> patches? Is my patch okay?

Seems fine to me. I didn't look at most recent source, but it also already 
looks at /usr/X11R6/lib/X11/fonts /usr/X11/lib/X11/fonts 
/usr/lib/X11/fonts and adds them if exists.

Why not just use the configure switches?

--with-default-fonts=
--with-add-fonts=


  Jeremy C. Reed
_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig

[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux