Menu

#1204 Documentation and regtests needed for external font files

Fixed
push
2020-04-23
2010-08-09
Anonymous
No

https://codereview.appspot.com/557640051
new: https://codereview.appspot.com/573730044

Originally created by: *anonymous

Originally created by: v.villenave

LilyPond is getting increasingly good at handling external fonts:
- ly:font-config-add-directory and ly:font-config-add-font have introduced the ability to use specific font files when compiling a score.
- OTF, TTF, Type1 and more recently WOFF fonts are supported (TeX fonts aren't, IIUC).
- Experimental support for 3rd-party music fonts (namely Gonville) has been introduced as well.

All of these nice features are currently not documented in the NR, nor are they demonstrated in the regtests. Can we/should we do something about it?

1 Attachments

Discussion

<< < 1 2 3 > >> (Page 2 of 3)
  • David Kastrup

    David Kastrup - 2020-04-09

    dak@lola:/usr/local/tmp/lilypond$ out/bin/lilypond input/regression/font-name-add-files.ly
    GNU LilyPond 2.21.0
    Processing input/regression/font-name-add-files.ly' Parsing... Finding the ideal number of pages... Fitting music on 1 page... Drawing systems... Layout output to/tmp/lilypond-QdY0Wz'...
    Converting to font-name-add-files.pdf'... Deleting/tmp/lilypond-QdY0Wz'...
    input/regression/font-name-add-files.ly:244:4: error: GUILE signaled an error for the expression beginning here
    #
    (rmdir dummyfontdir)
    Directory not empty
    Finding the ideal number of pages...
    Fitting music on 1 page...
    Drawing systems...
    Layout output to /tmp/lilypond-G1lETy'... Converting tofont-name-add-files-1.pdf'...
    Deleting `/tmp/lilypond-G1lETy'...
    fatal error: failed files: "input/regression/font-name-add-files.ly"

     
    • Valentin Villenave

      On 4/9/20, David Kastrup dakas@users.sourceforge.net wrote:

      dak@lola:/usr/local/tmp/lilypond$ out/bin/lilypond
      #(rmdir dummyfontdir)
      Directory not empty

      I’m at a loss:

      valentin  /  lilypond 
      $:  out/bin/lilypond input/regression/font-name-add-files.ly
      GNU LilyPond 2.21.0
      Processing input/regression/font-name-add-files.ly' Parsing... Finding the ideal number of pages... Fitting music on 1 page... Drawing systems... Layout output to/tmp/lilypond-5kKSn3'...
      Converting to font-name-add-files.pdf'... Deleting/tmp/lilypond-5kKSn3'...
      Finding the ideal number of pages...
      Fitting music on 1 page...
      Drawing systems...
      Layout output to /tmp/lilypond-BWlrq2'... Converting tofont-name-add-files-1.pdf'...
      Deleting `/tmp/lilypond-BWlrq2'...
      Success: compilation successfully completed

      Cheers,
      V.

       
  • Valentin Villenave

    • Patch: needs_work --> review
     
  • Anonymous

    Anonymous - 2020-04-11

    Valentin, it might be my fault - looking through this thread there are at least 2 different rietvelds. Phil's 'script' that scrapes Allura and that I use to pick up the URL for the patchy email (and saves me a lot of time hunting long threads) may have picked up the wrong one which I had tested.

    But the commit that david links above is NOT the same (I think) as what I tested.

    So, can you clarify which Rietvled we're looking at?

    Thanks,

     
    • Valentin Villenave

      This is https://codereview.appspot.com/557640051/, patch set #4. I did make a mistake when I posted my "pushed as" URL.

       
  • Anonymous

    Anonymous - 2020-04-13

    I'll retest the patch again.

     
  • Anonymous

    Anonymous - 2020-04-13

    Passes make, make check and a full make doc.

    Reg test diff attached

     
  • Anonymous

    Anonymous - 2020-04-15
    • Patch: review --> countdown
     
  • Anonymous

    Anonymous - 2020-04-15

    Patch on countdown for April 17th

     
  • Anonymous

    Anonymous - 2020-04-17
    • Patch: countdown --> push
     
  • Anonymous

    Anonymous - 2020-04-17

    Patch counted down - please push.

     
  • Valentin Villenave

    Issue #1204: fix font-name-add-files regtest

    The temporary directory might not be empty if some
    versions of fontconfig add a .uuid file inside it.

    https://codereview.appspot.com/573730044

     
  • Anonymous

    Anonymous - 2020-04-20

    Passes make, make check and a full make doc.

     
  • Anonymous

    Anonymous - 2020-04-20
    • Needs: -->
    • Patch: new --> review
    • Type: -->
     
  • Jonas Hahnfeld

    Jonas Hahnfeld - 2020-04-20
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,4 +1,5 @@
     https://codereview.appspot.com/557640051
    +new: https://codereview.appspot.com/573730044
    
     *Originally created by:* *anonymous
    
     
  • Jonas Hahnfeld

    Jonas Hahnfeld - 2020-04-20

    Oh, now there is a second review and http://www.philholmes.net/lilypond/allura/ picks up the wrong one :-( James, I assume you tested the old patch?

     
  • Valentin Villenave

    More concise (or ...) syntax for conditional switch

    https://codereview.appspot.com/573730044

     
  • Anonymous

    Anonymous - 2020-04-20
    • Needs: -->
    • Patch: new --> review
    • Type: -->
     
  • Anonymous

    Anonymous - 2020-04-20

    Passes make, make check and a full make doc.

    @jonas - I tested the right patch - having made that mistake already last week.

     
  • Anonymous

    Anonymous - 2020-04-21
    • Patch: review --> countdown
     
  • Anonymous

    Anonymous - 2020-04-21

    Patch on countdown for April 23rd

     
  • Anonymous

    Anonymous - 2020-04-23
    • Patch: countdown --> push
     
  • Anonymous

    Anonymous - 2020-04-23

    Patch counted down - please push.

     
  • Valentin Villenave

    • labels: --> Fixed_2_21_1
    • status: Started --> Fixed
     
<< < 1 2 3 > >> (Page 2 of 3)