]> git.donarmstrong.com Git - lilypond.git/commitdiff
* scm/font.scm (make-century-schoolbook-tree): add Mono as
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Tue, 31 May 2005 15:33:41 +0000 (15:33 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Tue, 31 May 2005 15:33:41 +0000 (15:33 +0000)
'typewriter family.

* scm/font.scm (make-century-schoolbook-tree): use Sans for sans
serif.

ChangeLog
scm/font.scm

index e77c4a37a1877dd775ada04131af07c09d3afed6..52ac01a2427c0f909acabb685c62b81a408ef2c0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2005-05-31  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
+       * scm/font.scm (make-century-schoolbook-tree): add Mono as
+       'typewriter family.
+
        * lily/score.cc (Score): unprotect copy of Output_def. Plugs
        memory leak.
 
index d1ffe9a9136ed58361e9c941b66b19a30828276f..8c2fbea6d886a1ee1a4509bfab349ec3c47acd7b 100644 (file)
@@ -4,25 +4,14 @@
 ;;;; 
 ;;;; (c) 2004--2005 Han-Wen Nienhuys <hanwen@xs4all.nl>
 
-;; As an excercise, do it with records.
-;; Should use GOOPS, really.
-
 ;; TODO:
 ;;
 ;; lookup-font should be written in  C.
 ;;
-;; should dump tree to .texi as internal documentation
-;; 
-;; * should extract design sizes from fonts: fonts should 
-;; be read off the disk, on demand, something like:
-;;  
-;; cmr -> ((font-load "cmr6") (font-load "cmr8")  .. )
-;;
 
 (define-class <Font-tree-element>
   ())
 
-
 (define-class <Font-tree-leaf> (<Font-tree-element>)
   (default-size #:init-keyword #:default-size)
   (size-vector  #:init-keyword #:size-vector))
 (define (lookup-font node alist-chain)
   (g-lookup-font node alist-chain))
 
-                                       ;
-                                       ; Each size family is a vector of fonts, loaded with a delay.
-                                       ; The vector should be sorted according to ascending design size.
-                                       ;
+;; Each size family is a vector of fonts, loaded with a delay.  The
+;; vector should be sorted according to ascending design size.
 (define feta-alphabet-size-vector
   (if (defined? 'ly:kpathsea-find-file)
       `#(,(delay  (ly:font-load "feta-alphabet11"))
   (add-node 'upright 'normal) 
   (add-node 'upright 'bold) 
   (add-node 'italic 'normal)
-  (add-node 'italic 'bold)
-  )
+  (add-node 'italic 'bold))
 
 (define-public (make-cmr-tree factor)
   (let ((n (make-font-tree-node 'font-encoding 'fetaMusic)))
     (add-music-fonts n factor)
     (add-pango-fonts n 'roman "Century Schoolbook L" factor)
     (add-pango-fonts n 'sans "Sans" factor)
+    (add-pango-fonts n 'typewriter "Mono" factor)
     n))
 
 (define-public (magstep x)