+2005-06-20 Han-Wen Nienhuys <hanwen@xs4all.nl>
+
+ * ly/music-functions-init.ly (musicMap): new music function
+ musicMap.
+
2005-06-19 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * make/mutopia-rules.make: anti-alias-factor = 2
+
* scm/ps-to-png.scm (make-ps-images): cleanup multipage vs. single
page switch.
(my-system): new function.
(make-ps-images): blow up GS resolution by anti-alias-factor,
scale down image by anti-alias-factor. This improves appearance
- of
- (make-ps-images): remove showpage. Fixes spurious empty png at end.
+ of bitmaps
+ (make-ps-images): remove showpage. Fixes spurious empty png at
+ end.
* scm/framework-ps.scm (write-preamble): downcase filename before
string-matching. Should fix .TTF files (as opposed to ttf files)
- * scm/lily.scm (lambda): default resolution 116 (8 pixels per
- space).
-
* Documentation/user/tutorial.itely (Running LilyPond for the
first time): separate subsections for windows, macos and unix.
2005-06-18 Han-Wen Nienhuys <hanwen@xs4all.nl>
* Documentation/user/introduction.itely (Engraving): don't include
- file, add file directly.
+ file optical-spacing, add directly.
* lily/paper-outputter.cc (file): open file in binary mode. This
fixes OTF embedding on windows.
* mf/GNUmakefile ($(outdir)/fonts.cache-1): create font cache for
outdir.
- (install-fc-cache): insatll font cache in installation directories.
+ (install-fc-cache): install font cache in installation directories.
2005-06-17 Jan Nieuwenhuizen <janneke@gnu.org>
'origin location
'procedure proc))
+musicMap = #(def-music-function (parser location proc mus) (procedure? ly:music?)
+ (music-map proc mus))
+
displayMusic = #(def-music-function (parser location music) (ly:music?)
(display-scheme-music music)
music)
# hmm. notdir builds srcdir builds?
$(outdir)/%.png $(outdir)/%.pdf $(outdir)/%.ly $(outdir)/%.ps: $(outdir)/%.ly
- cd $(outdir); $(LILYPOND) --pdf --png -ddelete-intermediate-files -dno-point-and-click -I $(shell pwd)/ $(notdir $<)
+ cd $(outdir); $(LILYPOND) --pdf --png -danti-alias-factor=2 -ddelete-intermediate-files -dno-point-and-click -I $(shell pwd)/ $(notdir $<)
touch $(outdir)/$(basename $(notdir $<)).png
$(outdir)/%.ly: %.ly
"relative for simultaneous music works
similar to chord syntax")
- ;; at 101.178, a staff space is exactly 7 pixels.
- ;; 115.63 = 8 pixels
- ;; 86 = 6 pixels
- (resolution 90 "resolution for generating bitmaps")
- (anti-alias-factor 1 "blow up resolution and scale to prevent jaggies in PNG")
+ (resolution 101 "resolution for generating bitmaps")
+ (anti-alias-factor 1 "render at higher resolution and scale down result\nto prevent jaggies in PNG")
(preview-include-book-title #t "include book-titles in preview images.")
(gs-font-load #f
"load fonts via Ghostscript.")
(rename-file file old)
(my-system be-verbose
#t
- (format #f "convert -scale '~a%' ~a ~a" percentage old file))
+ (format #f "convert -scale \"~a%\" ~a ~a" percentage old file))
(delete-file old)
))
}
int
-readPostTable (FILE *fd, int nglyphs, struct PostTable *pt,
+readPostTable (FILE *fd, int root_nglyphs, struct PostTable *pt,
struct GlyphName **gt)
{
- USHORT nglyphspost;
+ USHORT nglyphs;
USHORT *glyphNameIndex;
struct GlyphName *glyphNames;
char **glyphNamesTemp;
case 2:
if (pt->formatType.fraction != 0)
ttf_error ("Unsupported `post' table format");
- surely_read (fd, &nglyphspost, sizeof (USHORT));
- FIX_UH (nglyphspost);
- if (nglyphspost != nglyphs)
- ttf_error ("Inconsistency between `maxp' and `nglyphs' tables!");
+ surely_read (fd, &nglyphs, sizeof (USHORT));
+
+ /*from freetype2:
+ */
+ /*
+ UNDOCUMENTED! The number of glyphs in this table can be smaller
+ than the value in the maxp table (cf. cyberbit.ttf).
+ */
+ FIX_UH (nglyphs);
+ if (nglyphs > root_nglyphs)
+ {
+ fprintf (stderr, "More glyphs in 'post' table than in 'maxp' table");
+ }
+
if (ttf_verbosity >= 2)
fprintf (stderr, " %d glyphs\n", nglyphs);
glyphNameIndex = mymalloc (sizeof (USHORT) * nglyphs);