Skip to content

Avoid Fontconfig configuration elements that apply to patterns

Jean Abou Samra requested to merge jeanas/lilypond:kubuntu-fonts into master

In commit 18e26fa6, a workaround for a Pango bug where pattern edits are done with the wrong FcConfig was introduced. Unfortunately, the workaround is flawed: it causes the global FcConfig (from which LilyPond's custom FcConfig is derived) to apply its edit operations twice to the font pattern, while these operations may not be idempotent.

On the other hand, the commit in question was essential for fixing #6485 (closed).

This modifies the workaround to stop applyings edits from LilyPond's FcConfig. This means we cannot use Fontconfig configuration elements that work via pattern edits anymore. To account for this, the "LilyPond {Serif,Sans Serif,Typewriter}" font family aliases are no longer defined; explicit comma-separated lists are used instead. Also, the setting of DPI is applied in C++ directly.

Fixes #6620 (closed)

Edited by Jean Abou Samra

Merge request reports