hydra-users
[Top][All Lists]
Advanced

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

Re: Font configuration in the hydra build environment


From: Mike Miller
Subject: Re: Font configuration in the hydra build environment
Date: Mon, 16 Sep 2013 21:13:40 -0400
User-agent: Mutt/1.5.21 (2010-09-15)

On Mon, Sep 09, 2013 at 17:17:33 +0200, Eelco Dolstra wrote:
> Hi Mike,
> 
> On 05/09/13 02:08, Mike Miller wrote:
> 
> > Hi, I am trying to add font library support to the octave hydra build.
> > It has no trouble compiling and linking against the necessary
> > libraries, but fails when running octave as part of the build to
> > generate the manual and to run unit tests because no fonts are
> > installed [1,2].
> > 
> > I made an attempt at what I thought looked like the right way to
> > install and configure a font [3], but I am missing the mark with my
> > Nix scripting (lack of) skills. Can someone shed some light on how I
> > can properly install a font and configure fontconfig?
> 
> That's almost right.  It should be something like:
> 
>   FONTCONFIG_FILE = makeFontsConf {
>     fontDirectories =
>       [ "${freefont_ttf}/share/fonts/truetype"
>       ];
>   };
> 
> I.e. you need to set the $FONTCONFIG_FILE environment variable, and you need 
> the
> full path to the font.

Thanks for the help, I did what you suggested with some minor
adjustment. I am still getting errors from fontconfig and freetype,
though:

  Fontconfig error: Cannot load default config file
  warning: could not match any font: *-normal-normal-10
  warning: ft_render: unable to load appropriate font

I'm no fontconfig expert, but I think this tells me that it's not
finding the configuration file from that variable. Do I need to inherit
the FONTCONFIG_FILE variable to get it into the build environment? Or
copy the file into the octave build directory?

I'm at a loss how to debug this further for now. Thanks for any more
advice you can offer.

-- 
mike



reply via email to

[Prev in Thread] Current Thread [Next in Thread]