Re: How to use local font in dh_auto_test

2022-04-01 Thread Andreas Tille
Am Fri, Apr 01, 2022 at 10:42:44PM +0200 schrieb Dominik George:
> > I tried to copy that font file to ${HOME}/.fonts and fc-list is even
> > listing the font in question[1]:
> > 
> >    /tmp/.fonts/yudit.ttf: Yudit Unicode:style=LR
> > 
> > but finally the test fails
> 
> have you tried updating the fontconfig cache (using fc-cache -f)?

Yep, right before fc-list:

   
https://salsa.debian.org/debian-phototools-team/feh/-/blob/master/debian/rules

Kind regards

 Andreas.

-- 
http://fam-tille.de



Re: How to use local font in dh_auto_test

2022-04-01 Thread Dominik George
Hi,


> I tried to copy that font file to ${HOME}/.fonts and fc-list is even
> listing the font in question[1]:
> 
>    /tmp/.fonts/yudit.ttf: Yudit Unicode:style=LR
> 
> but finally the test fails

have you tried updating the fontconfig cache (using fc-cache -f)?

Cheers,
Nik



How to use local font in dh_auto_test

2022-04-01 Thread Andreas Tille
Hi,

I intend to add build time tests (and if this will work autopkgtest)
to feh.  It turns out that it can not find its own font file shipped
with the source since it is not installed at build time test status.
I tried to copy that font file to ${HOME}/.fonts and fc-list is even
listing the font in question[1]:

   /tmp/.fonts/yudit.ttf: Yudit Unicode:style=LR

but finally the test fails with

  feh WARNING: couldn't load font yudit/11, attempting to fall back to fixed.
  feh WARNING: failed to even load fixed! Attempting to find any font.
  feh ERROR: Error loading fonts

Any idea how to get this working?

Kind regards

  Andreas.

[1] https://salsa.debian.org/debian-phototools-team/feh/-/jobs/2629411#L1292

-- 
http://fam-tille.de