Re: Italic numbers for fingerings (feature request)

2017-02-17 Thread Noeck
Hi Simon,

you can use all the font mechanisms if you don't specify the font via
font-name.

If you use font-name, all the font-shape and font-series things don't
work anymore (which is kind of understandable from the internals but
certainly not expected by most users). But If you add a font in the
paper block, you can use it via font-family and then you have access to
the whole family including -series and -shape:


\version "2.19.50"
\paper {
  #(add-pango-fonts fonts 'ubuntu "Ubuntu"
 (/ (* staff-height pt) 2.5))
}
% now 'ubuntu is a font-family you can use

{
  1-\tweak font-encoding #'latin1 \tweak font-family #'ubuntu
  \tweak font-size 6 \tweak font-shape #'italic -3
}


HTH,
Joram

PS: Cudos to Abraham who showed me this!

___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: Italic numbers for fingerings (feature request)

2017-02-16 Thread Urs Liska


Am 17.02.2017 um 01:39 schrieb Simon Albrecht:
> On 16.02.2017 23:27, tisimst wrote:
>> On Thu, Feb 16, 2017 at 3:08 PM, Urs Liska wrote:
>>
>>> if I'm not mistaken (and a very recent post in the German forum
>>> http://www.lilypondforum.de/index.php?topic=2465.0  seems to confirm
>>> that) LilyPond doesn't have built-in support for italics in fingerings.
>>>
>>> As using italics for fingerings is a regular use case (e.g. to
>>> differentiate between editor's and composer's fingerings) I would like
>>> to see native support for italics in fingerings.
>>>
>>> So there would have to be a) glyphs for italics numbers in Emmentaler
>>> and b) a way to choose between upright and italics for fingerings.
>>>
>> The default mechanism uses the 'fetaText encoding to get the numbers. If
>> you
>>
>> \override Fingering.font-encoding = 'latin1
>>
>> you should then be able to change the font to any normal text font
>> and turn
>> on Italics.
>
> I gave it a try, and using
>
> \version "2.19.54"
> {
>   1-\tweak font-encoding #'latin1 \tweak font-name "Ubuntu" \tweak
> font-size 6 \tweak font-shape #'italic -3
> }
>
> I can get the correct font and font size, but not the correct font
> shape (nor series).
>
> Don’t know why…

AFAIK it can be achieved by setting the font-name to "Ubuntu Italics" or
whatever the concrete font name is. So alternative font shapes can be
used by directly calling the font but not through font-series.

Best
Urs

___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: Italic numbers for fingerings (feature request)

2017-02-16 Thread Simon Albrecht

On 16.02.2017 23:29, Urs Liska wrote:

the feature request would be to have built-in italics with
an italic shape that matches the upright numbers of Emmentaler (well,
any alternative notation font should actually be updated to that as
well, I think).


Agreed: 
:-)

Good night,
Simon

___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: Italic numbers for fingerings (feature request)

2017-02-16 Thread Simon Albrecht

On 16.02.2017 23:27, tisimst wrote:

On Thu, Feb 16, 2017 at 3:08 PM, Urs Liska wrote:


if I'm not mistaken (and a very recent post in the German forum
http://www.lilypondforum.de/index.php?topic=2465.0  seems to confirm
that) LilyPond doesn't have built-in support for italics in fingerings.

As using italics for fingerings is a regular use case (e.g. to
differentiate between editor's and composer's fingerings) I would like
to see native support for italics in fingerings.

So there would have to be a) glyphs for italics numbers in Emmentaler
and b) a way to choose between upright and italics for fingerings.


The default mechanism uses the 'fetaText encoding to get the numbers. If
you

\override Fingering.font-encoding = 'latin1

you should then be able to change the font to any normal text font and turn
on Italics.


I gave it a try, and using

\version "2.19.54"
{
  1-\tweak font-encoding #'latin1 \tweak font-name "Ubuntu" \tweak 
font-size 6 \tweak font-shape #'italic -3

}

I can get the correct font and font size, but not the correct font shape 
(nor series).


Don’t know why…

Best, Simon

___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: Italic numbers for fingerings (feature request)

2017-02-16 Thread Urs Liska


Am 16.02.2017 um 23:27 schrieb tisimst:
> Hi, Urs!
>
> On Thu, Feb 16, 2017 at 3:08 PM, Urs Liska [via Lilypond] <
> ml-node+s1069038n200207...@n5.nabble.com> wrote:
>
>> if I'm not mistaken (and a very recent post in the German forum
>> http://www.lilypondforum.de/index.php?topic=2465.0 seems to confirm
>> that) LilyPond doesn't have built-in support for italics in fingerings.
>>
>> As using italics for fingerings is a regular use case (e.g. to
>> differentiate between editor's and composer's fingerings) I would like
>> to see native support for italics in fingerings.
>>
>> So there would have to be a) glyphs for italics numbers in Emmentaler
>> and b) a way to choose between upright and italics for fingerings.
>>
> The default mechanism uses the 'fetaText encoding to get the numbers. If
> you
>
> \override Fingering.font-encoding = 'latin1
>
> you should then be able to change the font to any normal text font and turn
> on Italics. I didn't try this myself, but it works with other kinds of
> grobs in this situation.

Probably, but the feature request would be to have built-in italics with
an italic shape that matches the upright numbers of Emmentaler (well,
any alternative notation font should actually be updated to that as
well, I think).

Urs

> HTH,
> Abraham
>
>
>
>
> --
> View this message in context: 
> http://lilypond.1069038.n5.nabble.com/Italic-numbers-for-fingerings-feature-request-tp200207p200208.html
> Sent from the Bugs mailing list archive at Nabble.com.
> ___
> bug-lilypond mailing list
> bug-lilypond@gnu.org
> https://lists.gnu.org/mailman/listinfo/bug-lilypond

-- 
u...@openlilylib.org
https://openlilylib.org
http://lilypondblog.org


___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: Italic numbers for fingerings (feature request)

2017-02-16 Thread tisimst
Hi, Urs!

On Thu, Feb 16, 2017 at 3:08 PM, Urs Liska [via Lilypond] <
ml-node+s1069038n200207...@n5.nabble.com> wrote:

> if I'm not mistaken (and a very recent post in the German forum
> http://www.lilypondforum.de/index.php?topic=2465.0 seems to confirm
> that) LilyPond doesn't have built-in support for italics in fingerings.
>
> As using italics for fingerings is a regular use case (e.g. to
> differentiate between editor's and composer's fingerings) I would like
> to see native support for italics in fingerings.
>
> So there would have to be a) glyphs for italics numbers in Emmentaler
> and b) a way to choose between upright and italics for fingerings.
>

The default mechanism uses the 'fetaText encoding to get the numbers. If
you

\override Fingering.font-encoding = 'latin1

you should then be able to change the font to any normal text font and turn
on Italics. I didn't try this myself, but it works with other kinds of
grobs in this situation.

HTH,
Abraham




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Italic-numbers-for-fingerings-feature-request-tp200207p200208.html
Sent from the Bugs mailing list archive at Nabble.com.
___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond