bug-lilypond
[Top][All Lists]
Advanced

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

svg font problems


From: Knut Petersen
Subject: svg font problems
Date: Sun, 4 Jul 2021 14:30:33 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.2

Hi everybody!

I try to test  my cairo code using the  input/regression/*.ly files. Of course I need a reference, but to my surprise not all of those regression test files compile fine with our traditional svg backend. I did not investigate the problems and I will not investigate them in the near future.  But here#s one hint for the volta-spec-once.ly problem: Roboto-Regular is (on my current system) a font without a glyph table. That meant that I had to write special code for my cairo backend, and we know that handling of this special case is far from optimal in the postscript backend (eg -dgs-load-fonts is unusable). ft2 gives virtual uni[0-9a-f]* glyph names to pass the unicode value, and we would need to translate those to unicode and use the ps show operator for a better solution in the postscript backend.

============================

   Processing `../repeat-volta.ly'
   Parsing...
   Interpreting music...[8]
   Preprocessing graphical objects...
   Finding the ideal number of pages...
   Fitting music on 1 page...
   Drawing systems...
   fatal error: cannot find SVG font #f


============================

   Processing `../volta-spec-volta-in-unfold.ly'
   Parsing...
   Interpreting music...
   Preprocessing graphical objects...
   Finding the ideal number of pages...
   Fitting music on 1 page...
   Drawing systems...
   fatal error: cannot find SVG font #f

============================

   Processing `../volta-spec-once.ly'
   Parsing...
   Interpreting music...
   Preprocessing graphical objects...
   Interpreting music...[8]
   Preprocessing graphical objects...
   Finding the ideal number of pages...
   Fitting music on 1 page...
   Drawing systems...
   warning: cannot find SVG font #f
   warning: cannot find SVG font #f
   warning: cannot find SVG font #f
   warning: cannot find SVG font #f
   warning: cannot find SVG font #f
   warning: cannot find SVG font #f
   warning: cannot find SVG font #f
   warning: cannot find SVG font #f
   warning: cannot find SVG font #f
   warning: cannot find SVG font #f
   warning: cannot find SVG font #f
   warning: cannot find SVG font #f
   warning: cannot find SVG font #f
   Backtrace:
   In 
/home/knut/sources/lilybuilt/guile_1.8/share/lilypond/2.23.3/scm/lily/lily.scm:
     972:  8  [catch ly-file-failed #<procedure #f ()> #<procedure #f (x . 
args)>]
   In unknown file:
       ?:  9* [#<procedure #f ()>]
   In 
/home/knut/sources/lilybuilt/guile_1.8/share/lilypond/2.23.3/scm/lily/lily.scm:
     973: 10* [ly:parse-file "../volta-spec-once.ly"]
   In /home/knut/sources/lilybuilt/guile_1.8/share/lilypond/2.23.3/ly/init.ly:
      64: 11* (let* ((book-handler #)) (cond (# #) (# #)))
      67: 12  (cond (# #) (# #))
   In 
/home/knut/sources/lilybuilt/guile_1.8/share/lilypond/2.23.3/scm/lily/lily-library.scm:
        ...
     249: 13  [ly:book-process #<Book> #< Output_def> #< Output_def> 
"volta-spec-once"]
   In unknown file:
       ?: 14* [output-framework "volta-spec-once" #<Paper_book> ...]
   In 
/home/knut/sources/lilybuilt/guile_1.8/share/lilypond/2.23.3/scm/lily/framework-svg.scm:
     283: 15* (let* (# # # # ...) (if # #) (for-each # page-stencils))
     291: 16  [for-each #<procedure #f (page)> (#<Stencil>)]
   In unknown file:
       ?: 17* [#<procedure #f (page)> #<Stencil>]
   In 
/home/knut/sources/lilybuilt/guile_1.8/share/lilypond/2.23.3/scm/lily/framework-svg.scm:
     297: 18* [dump-page #< Output_def> "volta-spec-once.svg" #<Stencil> 1 1]
     118: 19  (let* (# # # # ...) (if # #) (dump #) ...)
     145: 20* [ly:outputter-dump-stencil #<Paper_outputter> #<Stencil>]
   In unknown file:
       ?: 21* [embedded-glyph-string #<Pango_font (#f . 1.0)> "Roboto-Regular" 
...]
       ?: 22* (letrec ((path "")) (if (= 1 #) (set! path #) ...) ...)
   In 
/home/knut/sources/lilybuilt/guile_1.8/share/lilypond/2.23.3/scm/lily/output-svg.scm:
     423: 23* (if (= 1 #) (set! path #) (begin #))
     425: 24  (begin (set! path (string-append (eo # #t) (string-join # "
   ") (ec #))))
     426: 25  (set! path (string-append (eo # #t) (string-join # "
   ") (ec #)))
     427: 26* [string-append "<g>
   " ...
     428: 27* [string-join ({#<unspecified>} {#<unspecified>} {#<unspecified>} ...) 
"

   "]


   
/home/knut/sources/lilybuilt/guile_1.8/share/lilypond/2.23.3/scm/lily/output-svg.scm:428:30:
 In procedure string-join in expression (string-join (map # glyphs) "
   "):
   
/home/knut/sources/lilybuilt/guile_1.8/share/lilypond/2.23.3/scm/lily/output-svg.scm:428:30:
 Wrong type (expecting string): #<unspecified>


============================




reply via email to

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