bug-lilypond
[Top][All Lists]
Advanced

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

Re: strange result for escaping "\" with other font-name


From: Masamichi HOSODA
Subject: Re: strange result for escaping "\" with other font-name
Date: Fri, 04 Sep 2015 21:19:24 +0900 (JST)

>>> >> > trying to escape "\" in a string leads to strange results, for some
>>> >> > font-names.
>>> >> > Example below was ok with 2.18.2
>>> >> >
>>> >> > \version "2.19.26"
>>> >> >
>>> >> > \markup \override #'(font-name . "Times New Roman") "\\<==what?"
>>> >>
>>> >> The displayed font is definitely not `Times New Roman'.  It seems
>>> >that
>>> >> the font substituted by FontConfig is a CJK font using half-width
>>> >> glyphs, and there it sometimes happens that the `\' slot gets
>>> >replaced
>>> >> with the Yen sign `¥', for compatibility with ancient Japanese
>>> >> practice.
>>> >>
>>> >
>>> >Agreed, so far.
>>> >
>>> >>
>>> >> I think there is nothing to be done here, since it displays a font
>>> >> problem (or bug).
>>> >>
>>> >
>>> >Though, if 2.18.2 displays nicely (and it does), I'd tend to think
>>> >something on our part causes this misbehahiour.
>>> >(Ofcourse "Times New Roman" _is_ installed)
>>> >
>>> >Cheers,
>>> >  Harm
>>> >_______________________________________________
>>> >bug-lilypond mailing list
>>> >address@hidden
>>> >https://lists.gnu.org/mailman/listinfo/bug-lilypond
>>>
>>> Would you show us both 2.18.2 and 2.19.26 results of following command?
>>>
>>> $ FC_DEBUG=1 lilypond --verbose fonts-test-01.ly > result.txt 2>&1
>>>
>>
>> Will do in the evening. Have to run for my rl job :(
>>
> 
> Got a spare minute.
> 
> Remark: I always rename latest devel-version to lilydevel

Perhaps, it has two problems.

First, both 2.18.2 and 2.19.26, fontconfig is requested "Times New" font,
instead of "Times New Roman".
Ofcourse, "Times New" font does not exist.
So fontconfig finds substitute font.

Second, your 2.19.26's fontconfig configure files
do not seem to have substitute settings.

In your 2.18.2, fontconfig has substitute settings.
Unknown font is substituted to "sans-serif" by the settings.
"sans-serif" is a generic font family alias which is a Sans Serif fonts list.
So "DejaVu Sans" which is listed is selected.

In your 2.19.26, fontconfig does not have substitute settings.
So fontconfig selects "Ume P Gothic C4" by guess-work.

"Ume P Gothic C4" is Japanese font.
Most Japanese fonts have Yen sign glyph for U+005c (backslash).



reply via email to

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