lilypond-devel
[Top][All Lists]
Advanced

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

Font loading (was: GSoC 2017)


From: Urs Liska
Subject: Font loading (was: GSoC 2017)
Date: Sat, 11 Mar 2017 13:17:51 +0100
User-agent: K-9 Mail for Android


Am 11. März 2017 12:48:55 MEZ schrieb Werner LEMBERG <address@hidden>:
>> Here's a caveat (but I'm not sure if that relates to the GSoC
>> project).  Some time ago I worked on a modified system to load the
>> notation font from system installed fonts too, which would
>> substantially reduce the amount of housekeeping when using
>> alternative notation fonts.  But I got stuck at a well-meant but
>> nasty behaviour of fontconfig that made it basically impossible:
>> fontconfig *always* returns a reference to a font.  This sounds good
>> but is a real problem with notation fonts.
>> 
>> The idea behind that behaviour is that when an application requests
>> a font it *needs* a font, and when a particular font isn't installed
>> in the system there has to be a fallback font.  The problem is that
>> with notation fonts it is totally unclear what an appropriate
>> replacement font is.  What I wanted (and what is necessary) would be
>> the information that a requested font (e.g. LilyJAZZ) isn't
>> available - then LilyPond could explicitly fall back to Emmentaler.
>> But instead fontconfig insists on giving back *something*, so when
>> LilyJAZZ isn't installed you may end up with a score trying to
>> typeset the noteheads with Comic Sans or Times New Roman.
>
>There is a solution to this problem, cf.
>
>https://lists.freedesktop.org/archives/fontconfig/2012-August/004252.html
>
>

Lpoks interesting. I'll see if I can make further sense of it.

Urs

>     Werner

-- 
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.



reply via email to

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