]> git.donarmstrong.com Git - lilypond.git/commitdiff
* buildscripts/make-font-dir.py (sketch_p): Bugfix: only write
authorJan Nieuwenhuizen <janneke@gnu.org>
Sat, 19 Oct 2002 15:33:50 +0000 (15:33 +0000)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sat, 19 Oct 2002 15:33:50 +0000 (15:33 +0000)
encoding part.
(Font_info.set_defaults): pixelsize now also defauts to '0'.
(sketch_p): Sketch wants only first four elements of X11 font spec.

ChangeLog
buildscripts/make-font-dir.py
scm/sketch.scm

index 5945b1736c7949ecbf1662de129a0dc3c7b16bc9..bc774de9191327a776f65d58c16546730c5a0231 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2002-10-19  Jan Nieuwenhuizen  <janneke@gnu.org>
 
+       * buildscripts/make-font-dir.py (sketch_p): Bugfix: only write
+       encoding part.
+       (Font_info.set_defaults): pixelsize now also defauts to '0'.
+       (sketch_p): Sketch wants only first four elements of X11 font spec.
+
        * buildscripts/mf-to-table.py (parse_logfile): Bugfix. 
 
        * mf/feta-autometric.mf: Write foundry and family to log.
index 5248380d06d5451b061067fc448d6e0efb4a33c9..be2be389d502ea627b01a9d77387748dccdba2f2 100644 (file)
@@ -70,7 +70,7 @@ class Font_info:
                self.slant = 'r'
                self.setwidth = 'normal'
                self.style = ''
-               self.pixelsize = '' # '0'
+               self.pixelsize = '0'
                self.pointsize = '0'
                self.xresolution = '0'
                self.yresolution = '0'
@@ -159,40 +159,40 @@ for filename in ls:
        # parameter as `Font', and X11's `Weight' parameter as `Style'.
 
        # Using X11 description/convention -- good for xfontsel:
-       # foundry: GNU
-       # family: LilyPond <basename>
-       # weight: <designsize>
-       # slant: r(oman) =upright
-       # setwidth: normal
-       # style:
-       # pixelsize: 0
-       # pointsize: 0 (20 crashes xfs, moved to style)
-       # xresolution: 0
-       # yresolution: 0
-       # spacing: p(roportional)
-       # averagewidth: 0
-       # registry: GNU
-       # encoding: fonstpecific
+       #  1 foundry: GNU
+       #  2 family: LilyPond <basename>
+       #  3 weight: <designsize>
+       #  4 slant: r(oman) =upright
+       #  5 setwidth: normal
+       #  6 style:
+       #  7 pixelsize: 0
+       #  8 pointsize: 0 (20 crashes xfs, moved to style)
+       #  9 xresolution: 0
+       # 10 yresolution: 0
+       # 11 spacing: p(roportional)
+       # 12 averagewidth: 0
+       # 13 registry: GNU
+       # 14 encoding: fonstpecific
 
        # gives:
        # feta20.pfa -GNU-LilyPond feta-20-r-normal--0-0-0-0-p-0-gnu-fontspecific
 
        # However, GNOME (gtkfontsel, gnome apps) seems to want:
 
-       # foundry: GNU
-       # family: LilyPond
-       # weight:  <basename>
-       # slant: r(oman) =upright
-       # setwidth: normal
-       # style: <designsize>
-       # pixelsize: 0
-       # pointsize: 0 (20 crashes xfs, moved to style)
-       # xresolution: 0
-       # yresolution: 0
-       # spacing: p(roportional)
-       # averagewidth: 0
-       # registry: GNU
-       # encoding: fonstpecific
+       #  1 foundry: GNU
+       #  2 family: LilyPond
+       #  3 weight:  <basename>
+       #  4 slant: r(oman) =upright
+       #  5 setwidth: normal
+       #  6 style: <designsize>
+       #  7 pixelsize: 0
+       #  8 pointsize: 0 (20 crashes xfs, moved to style)
+       #  9 xresolution: 0
+       # 10 yresolution: 0
+       # 11 spacing: p(roportional)
+       # 12 averagewidth: 0
+       # 13 registry: GNU
+       # 14 encoding: fonstpecific
 
        # which gives:
        # feta20.pfa -GNU-LilyPond-feta-r-normal--20-0-0-0-p-0-gnu-fontspecific
@@ -226,17 +226,17 @@ for filename in ls:
                s = string.join ([fontinfo.FontName,
                                  fontinfo.family,
                                  '%s %s' % (fontinfo.weight, fontinfo.style),
-                                 string.join (fontinfo.get_X11 ()[:5], '-'),
-                                 string.join (fontinfo.get_X11 ()[:-2], '-'),
+                                 string.join (fontinfo.get_X11 ()[:4], '-'),
+                                 string.join (fontinfo.get_X11 ()[-2:], '-'),
                                  fontinfo.name],
                                 ',')
                print s
 
-               s = string.join ([fontinfo.FamilyName,
+               s = string.join ([fontinfo.FamilyName + fontinfo.designsize,
                                  fontinfo.family,
                                  '%s %s' % (fontinfo.weight, fontinfo.style),
-                                 string.join (fontinfo.get_X11 ()[:5], '-'),
-                                 string.join (fontinfo.get_X11 ()[:-2], '-'),
+                                 string.join (fontinfo.get_X11 ()[:4], '-'),
+                                 string.join (fontinfo.get_X11 ()[-2:], '-'),
                                  fontinfo.name],
                                 ',')
                print s
index afd94cbb03b5b90813fb894e8a9524103a38eee1..532183942cd3ddbc079f8aa0646ac051d659519c 100644 (file)
 ;; old scheme
 ;;(define font-alist '(("feta13" . ("feta13" . "13"))
 ;;                  ("feta20" . ("feta20" . "20"))))
-(define font-alist '(("feta13" . ("LilyPond-Feta-13" . "13"))
+(define font-alist '(("feta13" . ("LilyPond-Feta13" . "13"))
 ;;                  ("feta20" . ("LilyPond-Feta-20" . "20")
                     ("feta20" . ("GNU-LilyPond-feta-20" . "20")
                      )))