lilypond-user
[Top][All Lists]

## Re: Using various weights and widths of fonts

 From: Abraham Lee Subject: Re: Using various weights and widths of fonts Date: Sat, 3 Nov 2018 11:17:09 -0600

Hey!

On Sat, Nov 3, 2018 at 11:05 AM Joshua Nichols <address@hidden> wrote:
I'm in MacOS. I completely forgot about that function. How do I check that?
--
Josh

On Sat, Nov 3, 2018 at 12:52 PM Abraham Lee <address@hidden> wrote:
Hi, Josh!

On Sat, Nov 3, 2018 at 10:32 AM Joshua Nichols <address@hidden> wrote:

Message: 1
Date: Fri, 2 Nov 2018 22:12:52 -0400
Subject: Re: Using various weights and widths of fonts
Content-Type: text/plain; charset="utf-8"; Format="flowed"

On 11/2/2018 9:50 PM, Joshua Nichols wrote:
> I guess it would be helpful that when I try to call:
>
>     \override #'(font-name . "Garamond Premier Pro Display")
>
>
> I cannot get the override, and thus the font reverts to sans. I have
> the font installed on my system, so I know it's not an issue of the
> font being installed. Perhaps this helps.
>
> --
> Josh
>
>
> On Fri, Nov 2, 2018 at 9:40 PM Joshua Nichols
>
>     Hello all!
>
>     I am trying to use different variants of Garamond Premier,
>     especially the Display weight and Narrow Widths. at any moment's
>     notice. I seem to be able to do it for some of them, but not
>     others. In particular, I'll use the narrow variant of Minion Pro
>     for lyrics by calling:
>
>         \override LyricFont.font-name = "Minion Pro Cond"
>
>
>     in \layout{}. But, when I want to change just a single instance of
>     the font in, let's say, a \markup{}, I can't find a way to do it.
>
>     I'm sure I'll eat my shoe, but I'd appreciate the help here. Thank
>
>
>     --
>     Josh
>
>

You could use this technique perhaps...

http://lilypond.1069038.n5.nabble.com/change-the-font-for-all-markups-td171730.html

Depends I guess on how you setup your document fonts and how many
markups you are wishing to change (all/one)...

Does this help?

The problem I am still having is getting pango or lilypond to recognize the variant widths and weights of these pro line fonts. as soon as I use \override #'(font-name . "Garamond Premier Pro Display") nothing happens. It reverts to sans.

Does this help clarify? So it's still not working. :(

What OS are you on? I know it’s a bit overwhelming, but have you checked to see what font names show up with the show-available-fonts option? This may help narrow down why it can’t be found by Pango. With as complex as the Garamond Pro family is, it’s possible that Pango isn’t parsing the font metadata correctly (or maybe the metadata itself isn’t formed correctly) to identify that specific variant.

I’m not at a computer to confirm the exact syntax, but it’s a command line option “-dshow-available-fonts”. If you’re using Frescobaldi, there’s a menu option for it under “Tools” I think.

Best,
Abraham