From 61505aba34bbdcd391c2f709d3d05df681cd3b48 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Sun, 12 Dec 2004 11:58:45 +0000 Subject: [PATCH] (placebox): Hackery to get bigcheese symbols within canvas boundaries. --- ChangeLog | 3 +++ mf/GNUmakefile | 4 ++-- scm/output-gnome.scm | 23 ++++++++++++++++++----- 3 files changed, 23 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 072557acf6..f5ef8cace1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2004-12-12 Jan Nieuwenhuizen + * scm/output-gnome.scm (placebox): Hackery to get bigcheese symbols + within canvas boundaries. + * mf/merge.pe.in: Set font names, version, license GPL. * make/substitute.make: Add FONTFORGE. diff --git a/mf/GNUmakefile b/mf/GNUmakefile index 12962a42c9..43ff56a4ac 100644 --- a/mf/GNUmakefile +++ b/mf/GNUmakefile @@ -46,8 +46,8 @@ foe: $(outdir)/feta20.otf-table: cat $(outdir)/feta20.lisp $(outdir)/parmesan20.lisp > $@ -$(outdir)/bigcheese20.otf: $(outdir)/merge.pe $(outdir)/feta20.otf-table - (cd $(outdir) && fontforge -script merge.pe) +$(outdir)/bigcheese20.otf: $(outdir)/bigcheese.pe $(outdir)/feta20.otf-table + (cd $(outdir) && fontforge -script bigcheese.pe) ## use separate package sauter-fonts-mftraced. SAUTER_FONTS = diff --git a/scm/output-gnome.scm b/scm/output-gnome.scm index 331ad20caa..aef6b645d6 100644 --- a/scm/output-gnome.scm +++ b/scm/output-gnome.scm @@ -285,12 +285,19 @@ lilypond -fgnome input/simple-song.ly (filledbox (- x1) (- x2 x1) (* .5 thickness) (* .5 thickness))) (define (placebox x y expr) + + (debugf "x,y: ~S,~S\n" x y) + ;; FIXME: dimensions with bigcheese are broken + ;;; help hello-world of bigcheese a bit to figure out what's + ;;; wrong + (set! x (+ 10 (/ x 50))) + (if (< y -800) + (set! y (+ y 700))) + (if (< y -250) + (set! y (+ y 250))) + (debugf "item: ~S\n" expr) (debugf "x,y: ~S,~S\n" x y) - ;; symbols enter visual - (set! x 10) - ;;(set! y -10) - ;;(set! y (/ y 10)) (let ((item expr)) ;;(if item ;; FIXME ugly hack to skip #unspecified ... @@ -330,6 +337,7 @@ lilypond -fgnome input/simple-song.ly (define (named-glyph font name) (debugf "glyph:~S\n" name) (debugf "index:~S\n" (ly:font-get-glyph-index font name)) + (debugf "font:~S\n" (font-family font)) (text font (integer->char (ly:font-get-glyph-index font name)))) (define (polygon coords blotdiameter) @@ -365,7 +373,12 @@ lilypond -fgnome input/simple-song.ly (define (text font s) (define (pango-font-name font) - (font-family font)) + (let ((family (font-family font))) + ;; Hmm, family is bigcheese20? + (if (string=? family "bigcheese20") + (begin (debugf "BIGCHEESE\n") + "LilyPond") + family))) (define (pango-font-size font) (let* ((designsize (ly:font-design-size font)) -- 2.39.5