[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnash-dev] PATCH: gnash 0.8.5: match TTF fonts on the fullname attr
Re: [Gnash-dev] PATCH: gnash 0.8.5: match TTF fonts on the fullname attribute
Mon, 21 Jun 2010 12:53:48 +0200
Bernd, any chance you know a way to instruct flash players
(both Gnash and the Adobe one) where to look for system fonts
as a normal user ?
The fontconfig library chooses the fonts.
Adobe's flash plugin (libflashplayer.so) dynamically links to
libfontconfig, so any solution would work for both Adobe and gnash.
fontconfig always reads configuration from /etc/fonts/fonts.conf.
Usually, the configuration files preinstalled with a Linux distro have
an include-command for a per-user config file;
on Ubuntu that seems to be ~/.fonts.conf
It would be possible to override any system configuration in a per-
user file, I guess.
That doesn't really help for automated tests, I'm afraid, because you
can't force to use a config that's included in the test setup.
Also, the per-user config file would affect all other programs as well
as gnash or the Adobe plugin.
It would be nice if fontconfig would look for an environment variable
to find its config files.
Actually, if you grep in the sources for "getenv", fontconfig seems to
look for FONTCONFIG_PATH, FONTCONFIG_FILE, and HOME.
How you could use HOME is obvious, but the fontconfig docs don't
contain any clues about how the other env strings might be used.