2004-12-12 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * lily/open-type-font.cc (load_scheme_table): new function
+
* lily/dots.cc (print): replace -
* lily/open-type-font.cc (attachment_point): new function.
'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)
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)
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)
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));
}