lilypond-auto
[Top][All Lists]
Advanced

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

[Lilypond-auto] [LilyIssues-auto] [testlilyissues:issues] #5430 ly:stenc


From: Auto mailings of changes to Lily Issues via Testlilyissues-auto
Subject: [Lilypond-auto] [LilyIssues-auto] [testlilyissues:issues] #5430 ly:stencil-fonts always returns '()
Date: Tue, 23 Oct 2018 21:32:11 -0000

Hello all,

In the meantime, Harm even got back to version 2.8.8 --- and still no result from ly:stencil-fonts.
The main question when dealing with this issue is: what exactly is this function supposed to give back?

Well, a list of the fonts used, of course. But do we expect font-name/font-size pairs, or just font-names, with duplicates removed or not, ... ?

Any preferences?

Thanks,
Torsten


[issues:#5430] ly:stencil-fonts always returns '()

Status: New
Created: Mon Oct 22, 2018 01:14 PM UTC by Thomas Morley
Last Updated: Mon Oct 22, 2018 01:17 PM UTC
Owner: nobody

At least since 2.12.3 ly:stencil-fonts always returns '()

\version "2.12.3"

%% old syntax and includes module to make it work
%% with old ly-versions

#(use-modules (ice-9 pretty-print))

{
  \override TextScript #'after-line-breaking =
  #(lambda (grob)
    ;(pretty-print (ly:stencil-expr (ly:grob-property grob 'stencil)))
    (format #t "\nResult of ly:stencil-fonts: ~y"
      (ly:stencil-fonts (ly:grob-property grob 'stencil))))
  s-"g"
}

Returns in terminal:
Result of ly:stencil-fonts: ()

Uncommenting the line (pretty-print ...) will print:

(translate-stencil
  (0.0 . 0.0)
  (glyph-string
    #<Font_metric (#f . 1.0)>
    "TeXGyreSchola-Regular"
    3.865234375
    #f
    '((1.1950157480315
       (-0.443862992125984 . 1.09258582677165)
       0.0
       0.0
       "g"))))

So fonts are visible in the stencil-_expression_


Sent from sourceforge.net because address@hidden is subscribed to https://sourceforge.net/p/testlilyissues/issues/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/testlilyissues/admin/issues/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.

_______________________________________________
Testlilyissues-auto mailing list
address@hidden
https://lists.sourceforge.net/lists/listinfo/testlilyissues-auto

reply via email to

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