]> git.donarmstrong.com Git - lilypond.git/blob - lily/font-interface-scheme.cc
* scm/define-grobs.scm (all-grob-descriptions): reorganize in
[lilypond.git] / lily / font-interface-scheme.cc
1 /*
2   font-interface-scheme.cc -- implement Font_interface bindings
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 2000--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9
10 #include "font-interface.hh"
11
12 #include "grob.hh"
13
14
15 LY_DEFINE (ly_grob_default_font, "ly:grob-default-font",
16            1, 0, 0, (SCM grob),
17            "Return the default font for grob @var{gr}.")
18 {
19   Grob *gr = unsmob_grob (grob);
20   SCM_ASSERT_TYPE (gr, grob, SCM_ARG1, __FUNCTION__, "grob");
21
22   return Font_interface::get_default_font (gr)->self_scm ();
23 }