*-midi.ly
a.out
.dotest
+/.sconf_temp
+out-scons
+/.sconsign.dblite
+/scons.cache
uneven vertical spacing.
@lilypond[ragged-right]
-#(set-default-paper-size "a6" 'landscape)
+
+%% todo: fix 'landscape PDF.
+#(set-default-paper-size "a6" )
\header {
tagline = ##f
}
************
+
+DEVELOPMENT TEAM
+
+Han-Wen Nienhuys - Core development
+Jan Nieuwenhuizen - Core development
+Joe Neeman - Core development
+Graham Percival - Documentation Editor and Bug Meister
+Mats Bengtsson - Support Guru
+
+
+BUG HUNTERS/SUGGESTIONS
+
+Phillip Kirlin
+
+
+
+
+Release 2.10
+************
+
+
DEVELOPMENT TEAM
Han-Wen Nienhuys - Core development
common[Y_AXIS] = common_refpoint_of_array (heads, common[Y_AXIS], Y_AXIS);
common[Y_AXIS] = common_refpoint_of_array (stems, common[Y_AXIS], Y_AXIS);
+ for (vsize i = 0; i < heads.size (); i++)
+ {
+ if (Grob *s = Rhythmic_head::get_stem (heads[i]))
+ {
+ stems.push_back (s);
+ common[Y_AXIS] = s->common_refpoint (common[Y_AXIS], Y_AXIS);
+ }
+ }
+
+ vector_sort (stems, less<Grob*> ());
+ uniq (stems);
+
+
for (vsize i = apes.size (); i--;)
{
Accidental_placement_entry *ape = apes[i];
#include "scm-hash.hh"
#include "warn.hh"
+
+Index_to_charcode_map const *
+All_font_metrics::get_index_to_charcode_map (string filename, FT_Face face)
+{
+ if (filename_charcode_maps_map_.find (filename)
+ == filename_charcode_maps_map_.end ())
+ filename_charcode_maps_map_[filename] = make_index_to_charcode_map (face);
+
+ return &filename_charcode_maps_map_[filename];
+}
+
+
All_font_metrics::All_font_metrics (string path)
{
otf_dict_ = new Scheme_hash_table;
All_font_metrics *all_fonts_global;
+LY_DEFINE (ly_reset_all_fonts, "ly:reset-all-fonts", 0, 0, 0,
+ (),
+ "Forget all about previously loaded fonts. ")
+{
+ delete all_fonts_global;
+ all_fonts_global = new All_font_metrics (global_path.to_string ());
+
+ return SCM_UNSPECIFIED;
+}
+
+
LY_DEFINE (ly_font_load, "ly:font-load", 1, 0, 0,
(SCM name),
"Load the font @var{name}. ")
return fm->self_scm ();
}
+
#include <pango/pangoft2.h>
#endif
-/**
+
+/*
Interface to all .afm files living in the filesystem.
*/
class All_font_metrics
int pango_dpi_;
#endif
+ map<string, Index_to_charcode_map > filename_charcode_maps_map_;
+
All_font_metrics (All_font_metrics const &);
public:
+
+ Index_to_charcode_map const *get_index_to_charcode_map (string filename, FT_Face face);
+
All_font_metrics (string search_path);
~All_font_metrics ();
};
extern All_font_metrics *all_fonts_global;
+SCM ly_reset_all_fonts ();
#endif /* ALL_FONTS_HH */
#include "lily-proto.hh"
#include "smobs.hh"
#include "virtual-methods.hh"
+#include "freetype.hh"
+
+#include <map>
+using namespace std;
+
+typedef map<FT_UInt, FT_ULong> Index_to_charcode_map;
class Font_metric
{
#ifndef OPEN_TYPE_FONT_HH
#define OPEN_TYPE_FONT_HH
-#include <map>
-using namespace std;
-#include "freetype.hh"
#include "font-metric.hh"
-typedef map<FT_UInt, FT_ULong> Index_to_charcode_map;
Index_to_charcode_map make_index_to_charcode_map (FT_Face face);
void get_unicode_name (char*s, FT_ULong code);
void get_glyph_index_name (char*s, FT_ULong code);
string get_otf_table (FT_Face face, string tag);
FT_Face open_ft_face (string str);
+
#endif /* OPEN_TYPE_FONT_HH */
init_fontconfig ();
init_freetype ();
-
- all_fonts_global = new All_font_metrics (global_path.to_string ());
+ ly_reset_all_fonts ();
if (!init_scheme_variables.empty ()
|| !init_scheme_code_string.empty ())
bool overwrite = true;
if (!yield)
{
- yield = "70";
+ yield = "65";
overwrite = false;
}
sane_putenv ("GUILE_MIN_YIELD_1", yield, overwrite);
sane_putenv ("GUILE_MIN_YIELD_2", yield, overwrite);
sane_putenv ("GUILE_MIN_YIELD_MALLOC", yield, overwrite);
+
+
+ sane_putenv ("GUILE_INIT_SEGMENT_SIZE_1",
+ "10485760", overwrite);
+ sane_putenv ("GUILE_MAX_SEGMENT_SIZE",
+ "104857600", overwrite);
}
void
/* Ugh. */
#include "pango-font.hh"
-
-#include "open-type-font.hh" // Index_to_charcode_map
-
#include "dimensions.hh"
#include "file-name.hh"
#include "international.hh"
#include "main.hh"
#include "string-convert.hh"
#include "warn.hh"
+#include "all-font-metrics.hh"
#if HAVE_PANGO_FT2
#include "stencil.hh"
}
-map<string, Index_to_charcode_map > filename_charcode_maps_map;
-Index_to_charcode_map const *get_index_to_charcode_map (string postscript_name, FT_Face face);
-
-
-Index_to_charcode_map const *
-get_index_to_charcode_map (string filename, FT_Face face)
-{
- if (filename_charcode_maps_map.find (filename) == filename_charcode_maps_map.end ())
- filename_charcode_maps_map[filename] = make_index_to_charcode_map (face);
-
- if (filename_charcode_maps_map.find (filename) == filename_charcode_maps_map.end ())
- return 0;
-
- return &filename_charcode_maps_map[filename];
-}
-
void
get_glyph_index_name (char *s, FT_ULong code)
{
Index_to_charcode_map const *cmap = 0;
bool has_glyph_names = ftface->face_flags & FT_FACE_FLAG_GLYPH_NAMES;
if (! has_glyph_names)
- cmap = get_index_to_charcode_map (file_name, ftface);
+ cmap = all_fonts_global->get_index_to_charcode_map (file_name, ftface);
bool is_ttf = string (FT_Get_X11_Font_Format (ftface)) == "TrueType";
bool cid_keyed = false;
ADD_INTERFACE (Separation_item,
"Item that computes widths to generate spacing rods. "
- "This is done in concert with @ref{separation-spanner-interface}.",
+ "This is done in concert with @ref{separating-group-spanner-interface}.",
"X-extent "
"conditional-elements "
- "elements"
+ "elements "
"padding "
"skylines "
);
".scm"))
(outfile (open-file out-file-name "w")))
- (display (format "Dumping gc protected objs to ~a...\n" out-file-name))
+ (display (format "Dumping GC statistics ~a...\n" out-file-name))
(display
(map (lambda (y)
(let ((x (car y))
(c (cdr y)))
-
- (string-append
- (string-join
- (map object->string (list (object-address x) c x))
- " ")
- "\n")))
-
+ (display
+ (format "~a (~a) = ~a\n" (object-address x) c x)
+ outfile)))
(filter
(lambda (x)
(not (symbol? (car x))))
protects))
outfile)
- ; (display (ly:smob-protects))
+ (format outfile "\nprotected symbols: ~a\n"
+ (length (filter symbol? (map car protects))))
+
+
+
+ ;; (display (ly:smob-protects))
(newline outfile)
(if (defined? 'gc-live-object-stats)
(let* ((stats #f))
(display "Live object statistics: GC'ing\n")
+ (ly:reset-all-fonts)
(gc)
(gc)
(ly:set-option 'debug-gc-assert-parsed-dead #t)
(gc)
-
+ (ly:set-option 'debug-gc-assert-parsed-dead #f)
+
(set! stats (gc-live-object-stats))
(display "Dumping live object statistics.\n")
(format outfile "~a: ~a\n" (car x) (cdr x)))
(sort (gc-live-object-stats)
(lambda (x y)
- (string<? (car x) (car y)))))))))
+ (string<? (car x) (car y)))))))
+
+
+ (newline outfile)
+ (let*
+ ((stats (gc-stats)))
+
+ (for-each
+ (lambda (sym)
+ (display
+ (format "~a ~a ~a\n"
+ gc-protect-stat-count
+ sym
+ (cdr (assoc sym stats)))
+ outfile))
+ '(protected-objects bytes-malloced cell-heap-size
+
+ )))
+
+ ))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(for-each
(lambda (x)
- (ly:set-option 'debug-gc-assert-parsed-dead #f)
(lilypond-file handler x)
(ly:clear-anonymous-modules)
(if (ly:get-option 'debug-gc)
- (dump-gc-protects)))
-
+ (dump-gc-protects)
+ (if (= (rand 40) 1)
+ (ly:reset-all-fonts))))
+
files)
failed))
## grab the first version number in --version output.
eval _ver=\"\`("$1" --version || "$1" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
| head -n 1 \
- | tr ' ' '\n' | grep '[0-9]\.[0-9]' | head -n 1 | sed 's/\([0-9.]*\).*/\1/g'\`\"
+ | tr ' ' '\n' | sed 's/\([0-9][0-9]*\.[0-9][0-9]*\).*/\1/g' | grep '\(^\| \)[0-9][0-9]*\.[0-9]' | head -n 1\`\"
if test -z "$_ver"; then
## If empty, try date [fontforge]