* mf/aybabtu.pe.in: Typo.
* lily/include/guile-compatibility.hh (SCM_HASHTABLE_P): Add compat.
+2004-12-17 Jan Nieuwenhuizen <janneke@gnu.org>
+
+ * lily/include/open-type-font.hh (count): New method.
+
+ * mf/aybabtu.pe.in: Typo.
+
+ * Documentation/user/out/lilypond-internals.nexi (Scheme
+ functions): Typo.
+
+ * lily/include/guile-compatibility.hh (SCM_HASHTABLE_P): Add compat.
+
2004-12-17 Han-Wen Nienhuys <hanwen@xs4all.nl>
* buildscripts/gen-bigcheese-scripts.py (i): use symbols for
inline SCM scm_cadar (SCM x) { return SCM_CADAR (x); }
#define scm_gc_unregister_collectable_memory(a, b, c) scm_done_free (b)
#define scm_gc_register_collectable_memory(a, b, c) scm_done_malloc (b)
+#define SCM_HASHTABLE_P(x) (SCM_VECTORP (x))
#define SCM_VECTOR_REF(v, i) (SCM_VELTS ((v))[(i)])
#define scm_from_bool(x) (x ? SCM_BOOL_T : SCM_BOOL_F)
#define scm_from_int(x) SCM_MAKINUM (x)
static SCM make_otf (String);
virtual ~Open_type_font();
virtual Offset attachment_point (String) const;
+ virtual int count () const;
virtual Box get_indexed_char (int) const;
virtual int name_to_index (String) const;
//virtual unsigned glyph_name_to_charcode (String) const;
return point_constant * ly_scm2offset (att_scm);
}
-
Box
Open_type_font::get_indexed_char (int signed_idx) const
{
}
#endif
+int
+Open_type_font::count () const
+{
+ return ((Open_type_font*) this)->index_to_charcode_map_.size ();
+}
+
Real
Open_type_font::design_size () const
{
System_start_delimiter::staff_brace (Grob *me, Real y)
{
Font_metric *fm = 0;
-
/* We go through the style sheet to lookup the font file
name. This is better than using find_font directly,
esp. because that triggers mktextfm for non-existent
{
int cmp = (lo + hi) / 2;
b = fm->get_indexed_char (cmp);
+ //b = fm->get_indexed_char (fm->name_to_index ("brace" + to_string (cmp)));
if (b[Y_AXIS].is_empty () || b[Y_AXIS].length () > y)
hi = cmp;
else
}
while (hi - lo > 1);
- /* FIXME: ascii? */
- Stencil stil (fm->get_indexed_char_stencil (lo));
+ Stencil stil (fm->find_by_name ("brace" + to_string (lo)));
b = stil.extent_box ();
b[X_AXIS] = Interval (0, 0);
#!@FONTFORGE@
-# all your braces are belong to us
+# all your brace are belong to us
New();