• How to use local font in dh_auto_test

    From Andreas Tille@21:1/5 to All on Fri Apr 1 22:20:01 2022
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dominik George@21:1/5 to All on Fri Apr 1 23:00:01 2022
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andreas Tille@21:1/5 to All on Sat Apr 2 00:20:02 2022
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)