On 01/31/13 16:59, Alan Coopersmith wrote:
Looking through some of the bugs in bugzilla we never resolved, I came across
a couple on font dependencies for IPS packages, which were mostly deferred to
think about later, after we had a richer set of dependency types.

Well, now is definitely later, and I think we might be able to pull it off now.

Most gnome apps default to one of the generic fontconfig names - "Monospace",
"Sans", or "Sans Serif", which fontconfig in turn maps to the first font it
finds off the lists in /etc/fonts/conf.d/*.conf.

It seems most of the font packages have fonts that satisfy all three common
variants, so one dependency list should cover it - would it make sense to
deliver a package like this that apps could depend on?

        set name=pkg.fmri value=pkg:/system/font/base-font-set
        set name=pkg.summary value="Base set of fonts for generic aliases"
        set name=pkg.description \
                "Installs at least one set of fonts covering the generic
                 aliases for sans, sans-serif, and monospace for applications
                 using fontconfig."
        depend type=require-any \
                fmri=system/font/truetype/dejavu \
                fmri=system/font/truetype/bitstream-vera \
                fmri=system/font/truetype/bh-luxi \
                fmri=system/font/truetype/fonts-core


sure... this would work.  I'm investigating a mechanism to allow
expression of a preference if no package is installed... but that's
orthogonal to this, which seems useful by itself.

The solver picks something pretty much at random afaict, so more
picky users will want to pick something rather than get "sat solver
surprise"...

- Bart


--
Bart Smaalders                  Solaris Core OS
[email protected]       http://blogs.oracle.com/barts
"You will contribute more with Mercurial than with Thunderbird."
"Civilization advances by extending the number of important
 operations which we can perform without thinking about them."
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to