#869606 fonts-liberation: all fonts resolve to mono

Package:
fontconfig
Source:
fontconfig
Description:
generic font configuration library - support binaries
Submitter:
Denis Danilov
Date:
2026-07-21 07:35:01 UTC
Severity:
normal
#869606#5
Date:
2017-07-24 18:02:15 UTC
From:
To:
Dear Maintainer,

if the liberation fonts are the only ttf fonts intalled on a system, then
"Liberation Mono" will match any font by default, e.g. in docker
docker run -it debian:testing-slim /bin/bash
# apt-get update
# apt-get install --no-install-recommends fonts-liberation
# apt-get install --no-install-recommends fontconfig
# fc-match sans
LiberationMono-Regular.ttf: "Liberation Mono" "Regular"
# fc-match serif
LiberationMono-Regular.ttf: "Liberation Mono" "Regular"

* What outcome did you expect instead?
an expected behavior will be that "sans" resolves to "Liberation Sans"
and "serif" resolves to "Liberation Serif" by default.


Best regards,
Denis

#869606#10
Date:
2017-07-24 20:18:29 UTC
From:
To:
control: reassign -1 fontconfig

Hi there,

Am Montag, den 24.07.2017, 20:02 +0200 schrieb Denis Danilov:

this is pretty sure a bug in fontconfig itself, then, since the fonts-
liberation package does not modify fontconfig's configuration in any
way.

BTW, what does "fc-match -a sans" print?

 - Fabian

#869606#19
Date:
2017-07-24 20:51:00 UTC
From:
To:
Hi Fabian,

the output of "fc-match -a sans" is
LiberationMono-Regular.ttf: "Liberation Mono" "Regular"
LiberationSans-Regular.ttf: "Liberation Sans" "Regular"
LiberationSerif-Regular.ttf: "Liberation Serif" "Regular"
LiberationSansNarrow-Regular.ttf: "Liberation Sans Narrow" "Regular"
LiberationMono-Bold.ttf: "Liberation Mono" "Bold"
LiberationSans-Bold.ttf: "Liberation Sans" "Bold"
LiberationSerif-Bold.ttf: "Liberation Serif" "Bold"
LiberationSansNarrow-Bold.ttf: "Liberation Sans Narrow" "Bold"
LiberationMono-Italic.ttf: "Liberation Mono" "Italic"
LiberationSans-Italic.ttf: "Liberation Sans" "Italic"
LiberationSerif-Italic.ttf: "Liberation Serif" "Italic"
LiberationSansNarrow-Italic.ttf: "Liberation Sans Narrow" "Italic"
LiberationMono-BoldItalic.ttf: "Liberation Mono" "Bold Italic"
LiberationSans-BoldItalic.ttf: "Liberation Sans" "Bold Italic"
LiberationSerif-BoldItalic.ttf: "Liberation Serif" "Bold Italic"
LiberationSansNarrow-BoldItalic.ttf: "Liberation Sans Narrow" "Bold Italic"

and it is the same for any fc-match -a ... command, like
fc-match -a serif
fc-match -a qwery
...

Best,
Denis

#869606#24
Date:
2017-07-24 21:36:40 UTC
From:
To:
Am Montag, den 24.07.2017, 22:51 +0200 schrieb Denis Danilov:

I see, what happens for "fc-match Arial" or "fc-match Helvetica"?

 - Fabian

#869606#29
Date:
2018-03-30 12:55:02 UTC
From:
To:
Michelle - мое имя, пожалуйста, надеюсь, что вы получили мое
предложение. Мне нужен ваш срочный ответ.
Мишель
благодаря

#869606#34
Date:
2026-07-21 07:32:15 UTC
From:
To:
Dear maintainer,

This bug is quite possibly fixed in the latest version of fontconfig.
Please consider upgrading.

https://gitlab.freedesktop.org/fontconfig/fontconfig/-/work_items/457