]> git.donarmstrong.com Git - lilypond.git/commitdiff
Remove ly:get-glyph and supporting infrastructure.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 15 Mar 2010 04:11:15 +0000 (01:11 -0300)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 22 Mar 2010 12:56:27 +0000 (09:56 -0300)
lily/font-metric-scheme.cc
lily/font-metric.cc
lily/include/font-metric.hh
scm/safe-lily.scm

index faa007aac57ad7683c9870f6ad3a8873f977825f..408ede794887f63967214d501d534aa4bdd9518f 100644 (file)
@@ -46,25 +46,6 @@ LY_DEFINE (ly_font_get_glyph, "ly:font-get-glyph",
   return m.smobbed_copy ();
 }
 
-LY_DEFINE (ly_get_glyph, "ly:get-glyph",
-          2, 0, 0,
-          (SCM font, SCM index),
-          "Retrieve a stencil for the glyph numbered @var{index}"
-          " in @var{font}.\n"
-          "\n"
-          "Note that this command can only be used to access glyphs from"
-          " fonts loaded with @code{ly:system-font-load}; currently, this"
-          " means either the Emmentaler or Emmentaler-Brace fonts, corresponding"
-          " to the font encodings @code{fetaMusic} and @code{fetaBraces},"
-          " respectively.")
-{
-  Font_metric *fm = unsmob_metrics (font);
-  LY_ASSERT_SMOB (Font_metric, font, 1);
-  LY_ASSERT_TYPE (scm_is_number, index,2);
-
-  return fm->get_ascii_char_stencil (scm_to_int (index)).smobbed_copy ();
-}
-
 LY_DEFINE (ly_font_glyph_name_to_index, "ly:font-glyph-name-to-index",
           2, 0, 0,
           (SCM font, SCM name),
index ed53d266187d2fdda943958f170b5e1d93ac7ebe..262d8a1559cd8ee8d8400c687f50bb3cd70e9ba8 100644 (file)
@@ -156,15 +156,6 @@ Font_metric::index_to_charcode (size_t i) const
   return index_to_ascii (i);
 }
 
-Stencil
-Font_metric::get_ascii_char_stencil (size_t code) const
-{
-  SCM at = scm_list_3 (ly_symbol2scm ("char"), self_scm (),
-                      scm_from_unsigned (code));
-  Box b = get_ascii_char (code);
-  return Stencil (b, at);
-}
-
 Stencil
 Font_metric::get_indexed_char_stencil (size_t code) const
 {
index b9dc5c7891d29ad84cf083725dfd133a7bcb6ef9..2d00a270b724e77877b9254f7910947ad3f51739 100644 (file)
@@ -62,7 +62,6 @@ public:
   virtual Real design_size () const;
   virtual Stencil find_by_name (string) const;
   virtual Stencil get_indexed_char_stencil (size_t k) const;
-  virtual Stencil get_ascii_char_stencil (size_t k) const;
   virtual SCM sub_fonts () const;
   virtual SCM font_file_name () const;
   DECLARE_SMOBS (Font_metric);
index 8a8faeba13cce22e5703bcd4444d1685f7c4956c..8c7059d43829fdfd58dd28d81fe30060310d3d7b 100644 (file)
@@ -54,7 +54,6 @@
    ly:format-output
    ly:get-all-function-documentation
    ly:get-all-translators
-   ly:get-glyph
    ly:get-option
    ly:grob-alist-chain
    ly:grob-default-font