[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: change the font for all markups
From: |
ole |
Subject: |
Re: change the font for all markups |
Date: |
Fri, 13 Feb 2015 14:32:36 +0100 |
Am 12.02.2015 um 20:53 schrieb tisimst <address@hidden>:
> Ole Schmidt wrote
>> Am 12.02.2015 um 11:50 schrieb Richard Shann <
>
>> address@hidden
>
>> >:
>>
>>> On Thu, 2015-02-12 at 12:20 +0100, Ole Schmidt wrote:
>>>> Am 12.02.2015 um 12:04 schrieb Noeck <
>
>> noeck.marburg@
>
>> >:
>>>>
>>>>> Hi,
>>>>>
>>>>> this works for me (taken from Frescobaldi Insert > Document fonts …):
>>>>>
>>>>> \paper {
>>>>> fonts = #
>>>>> (make-pango-font-tree
>>>>> "Times New Roman"
>>>>> "Nimbus Sans"
>>>>> "Luxi Mono"
>>>>> (/ (* staff-height pt) 2.5))
>>>>> }
>>>>> { a^\markup { "Test" \typewriter "code" } }
>>>>>
>>>>> Of course, the fonts must be installed.
>>>
>>> replace "Times New Roman" with "Luxi Mono" or whatever typerwriter font
>>> you have, the what would have been in Times will come out in Mono...
>>>
>>> Richard
>>
>> that makes sense and works!
>>
>> thanks!
>>>
>>>
>>>>>
>>>>> HTH,
>>>>> Joram
>>>>>
>>>>> _______________________________________________
>>>>> lilypond-user mailing list
>>>>>
>
>> lilypond-user@
>
>>>>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>>>>
>>>>
>>>> Thanks, but I'am looking for a solution where the \typewriter in the
>>>> markup is not neccecary.
>>>> I have lots of markups and don't want to change them all manually.
>>>>
>>>>
>>>> _______________________________________________
>>>> lilypond-user mailing list
>>>>
>
>> lilypond-user@
>
>>>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>>>
>>>
>>
>>
>> _______________________________________________
>> lilypond-user mailing list
>
>> lilypond-user@
>
>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
> Ole,
>
> While it works, the effect is that the typewriter font becomes your MAIN
> font (since that is what LilyPond uses the \roman font-family for). If you
> are okay with that, great. If this is not desired, you can do:
>
> \override Score.TextScript.font-family = #'typewriter
>
> This only affects \markups and other simple text.
>
> HTH,
> Abraham
>
>
Thanks for that!
ole