about summary refs log tree commit diff
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@librem.one>2023-11-13 19:43:45 -0500
committerZach DeCook <zachdecook@librem.one>2023-11-13 19:43:45 -0500
commitcec1b19aefc47a0e1163a7402295fee7b7533829 (patch)
treef1cf7bdcdb682d4ef2d654483ceb12aced828021
parent54af11354fe861e18426dab06c4688ccaf8c5862 (diff)
downloadshemuvi-cec1b19aefc47a0e1163a7402295fee7b7533829.tar.gz
Verovio: Make it try to put the whole score into a single SVG
-rw-r--r--main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.c b/main.c
index d8f8a4d..ac26c07 100644
--- a/main.c
+++ b/main.c
@@ -29,6 +29,10 @@ static void set_file (GFile *file, gpointer data) {
 	if (read == 0) return;
 	
 	vrvToolkit_loadData(pointer, buf);
+	// Try to put all of the content on the first page.
+	//--page-height 50000
+	//--adjust-page-height
+	 vrvToolkit_setOptions(pointer, "{\"pageHeight\": 50000, \"adjustPageHeight\": true}");
 	output = vrvToolkit_renderToSVG(pointer, 1, TRUE);
 	if(output[0] == '\0') return;