]> git.donarmstrong.com Git - lilypond.git/commitdiff
(design_size): use design_size
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 17 Dec 2004 13:11:17 +0000 (13:11 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 17 Dec 2004 13:11:17 +0000 (13:11 +0000)
ChangeLog
buildscripts/gen-bigcheese-scripts.py
buildscripts/mf-to-table.py
lily/open-type-font.cc

index f7c9485076aa38a48e88d99248170204ca124490..382b4fd5d64441d52a21e21dd986f55f1e89a904 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-12-17  Han-Wen Nienhuys  <hanwen@xs4all.nl>
+
+       * lily/open-type-font.cc (design_size): use design_size
+
 2004-12-17  Pedro Kroger  <kroeger@pedrokroeger.net>
 
        * lily/font-metric.cc (LY_DEFINE): Fix the docstring.
index 3a62ccceea432cae10ea68df57e890df19044150..f5e47d42e46417576636bc3f070d19f97269fccb 100644 (file)
@@ -70,7 +70,6 @@ Generate("%(name)s%(design_size)d.cff");''' % vars()
        path = os.path.join (outdir, name + '%d' % design_size +  '.pe')
        open (path, 'w').write (script)
 
-
        subfonts = ['feta%(design_size)d',
                    'parmesan%(design_size)d',
                    'feta-alphabet%(design_size)d']
index 97effe82ce7e3b60c9da31eff3501e3a7a14335a..d162e0bd187ef853c89aa3daef91745eead51727 100644 (file)
@@ -105,7 +105,7 @@ def parse_logfile (fn):
                        encoding = re.sub (' ','-', tags[5])
                        tags = tags[:-1]
                        name = tags[1:]
-                       global_info['DesignSize'] = string.atof (tags[4])
+                       global_info['design_size'] = string.atof (tags[4])
                        global_info['FontName'] = string.join (name, '-')
                        global_info['FullName'] = string.join (name,' ')
                        global_info['FamilyName'] = string.join (name[1:-1],
@@ -198,6 +198,7 @@ def write_global_lisp_table (file, global_info):
 
        keys = ['staffsize', 'stafflinethickness', 'staff_space',
                'linethickness', 'black_notehead_width', 'ledgerlinethickness',
+               'design_size', 
                'blot_diameter'
                ]
        for k in keys:
index ac7b2d5bb9f6903afe69f2ce85654ebe5bea3532..da9677f07333355cb136d0abc206e8f0e90be12b 100644 (file)
@@ -211,8 +211,15 @@ Real
 Open_type_font::design_size () const
 {
   SCM entry = scm_hashq_ref (lily_global_table_,
-                            ly_symbol2scm ("staffsize"),
-                            scm_from_int (12));
+                            ly_symbol2scm ("design_size"),
+
+                            /*
+                              Hmm. Design size is arbitrary for
+                              non-designe-size fonts. I vote for 1 -
+                              which will trip errors more
+                              quickly. --hwn.
+                             */
+                            scm_from_int (1));
   return scm_to_double (entry);
 }