From: Han-Wen Nienhuys Date: Sun, 12 Dec 2004 22:30:35 +0000 (+0000) Subject: * lily/open-type-font.cc (load_scheme_table): new function X-Git-Tag: release/2.5.14~433 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=076884bc0f9ee5e10fa4e8d29e09aeed85b0c0c6;p=lilypond.git * lily/open-type-font.cc (load_scheme_table): new function * lily/open-type-font.cc (attachment_point): new function. (load_table): read LILC table --- diff --git a/ChangeLog b/ChangeLog index bb164bac12..4595736b86 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2004-12-12 Han-Wen Nienhuys + * lily/open-type-font.cc (load_scheme_table): new function + * lily/dots.cc (print): replace - * lily/open-type-font.cc (attachment_point): new function. diff --git a/buildscripts/mf-to-table.py b/buildscripts/mf-to-table.py index e75b7c2efa..bd3ec180da 100644 --- a/buildscripts/mf-to-table.py +++ b/buildscripts/mf-to-table.py @@ -191,7 +191,8 @@ def write_global_lisp_table (file, global_info): 'blot_diameter' ] for k in keys: - str = str + "(%s . %s)\n" % (k,global_info[k]) + if global_info.has_key (k): + str = str + "(%s . %s)\n" % (k,global_info[k]) file.write (str) diff --git a/lily/open-type-font.cc b/lily/open-type-font.cc index 50710eb3af..c09e60ba8f 100644 --- a/lily/open-type-font.cc +++ b/lily/open-type-font.cc @@ -43,7 +43,7 @@ SCM load_scheme_table (char const *tag_str, FT_Face face) { FT_ULong length = 0; - FT_Byte* buffer =load_table ("LILC", face, &length); + FT_Byte* buffer =load_table (tag_str, face, &length); SCM tab = SCM_EOL; if (buffer) @@ -99,7 +99,7 @@ Offset Open_type_font::attachment_point (String glyph_name) const { SCM sym = ly_symbol2scm (glyph_name.to_str0 ()); - SCM entry = scm_hashq_ref (lily_character_table_, sym, SCM_BOOL_F); + SCM entry = scm_hashq_ref (lily_character_table_, sym, SCM_BOOL_F); Offset o; if (entry == SCM_BOOL_F) @@ -156,5 +156,5 @@ Open_type_font::name_to_index (String nm) const Real Open_type_font::design_size () const { - return 20.0; + return scm_to_double (scm_hashq_ref (lily_global_table_, ly_symbol2scm ("staffsize"), SCM_BOOL_F)); }