From 9cd6ccd403d28e22b4110981410f54ab2598e69c Mon Sep 17 00:00:00 2001 From: Neil Puttock Date: Tue, 29 Sep 2009 17:36:15 +0100 Subject: [PATCH] Revert lilypond-book \paper changes for testing. --- scripts/lilypond-book.py | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/scripts/lilypond-book.py b/scripts/lilypond-book.py index 6abbe53..92ad80e 100644 --- a/scripts/lilypond-book.py +++ b/scripts/lilypond-book.py @@ -272,6 +272,7 @@ TEXIDOC = 'texidoc' TEXINFO = 'texinfo' VERBATIM = 'verbatim' VERSION = 'lilypondversion' +FONTLOAD = 'fontload' FILENAME = 'filename' ALT = 'alt' @@ -599,6 +600,7 @@ simple_options = [ TEXIDOC, LANG, VERBATIM, + FONTLOAD, FILENAME, ALT, ADDVERSION @@ -828,6 +830,8 @@ PREAMBLE_LY = '''%%%% Generated by %(program_name)s %(preamble_string)s \paper { + #(define dump-extents #t) + %(font_dump_setting)s %(paper_string)s force-assignment = #"" line-width = #(- line-width (* mm %(padding_mm)f)) @@ -1214,6 +1218,9 @@ class LilypondSnippet (Snippet): notes_string = '\n '.join (compose_dict[NOTES]) % vars () preamble_string = '\n '.join (compose_dict[PREAMBLE]) % override padding_mm = global_options.padding_mm + font_dump_setting = '' + if FONTLOAD in self.option_dict: + font_dump_setting = '#(define-public force-eps-font-include #t)\n' d = globals().copy() d.update (locals()) -- 1.6.0.4