I've found problems again:
When I embed Times New Roman and Arial, I get a pdf file that is 3MB long. However, when I embed the Times New Roman font that I had loaded into fontforge and generated by fontforge as MyTimes, the pdf is only 50kB. I can't include Garamond. Log: warning: don't know how to embed "Garamond"="C:/WINDOWS/fonts/GARA.TTF" With -dgs-font-load=1, all of these are right. test file: \version "2.5.31" \paper { #(define fonts (make-pango-font-tree "Times New Roman" "Arial" "Courier New" (/ 16 20))) } melody = \relative c' { \clef treble \key c \major \time 4/4 a b c d } text = \lyricmode { Aaa Bee Cee Dee } \score { << \chords { c } \context Voice = one { \melody } \lyricsto "one" \new Lyrics \text >> \layout { } } _______________________________________________ bug-lilypond mailing list [hidden email] http://lists.gnu.org/mailman/listinfo/bug-lilypond |
Bertalan Fodor wrote:
> I've found problems again: > > I can't include Garamond. Log: > warning: don't know how to embed "Garamond"="C:/WINDOWS/fonts/GARA.TTF" > > With -dgs-font-load=1, all of these are right. > > test file: > can you apply the attached patch to framework-ps.scm (found somewhere inside the lilypond dir) and see if that helps > When I embed Times New Roman and Arial, I get a pdf file that is 3MB > long. However, when I embed the Times New Roman font that I had loaded > into fontforge and generated by fontforge as MyTimes, the pdf is only 50kB. -- Han-Wen Nienhuys - [hidden email] - http://www.xs4all.nl/~hanwen _______________________________________________ bug-lilypond mailing list [hidden email] http://lists.gnu.org/mailman/listinfo/bug-lilypond |
In reply to this post by Bertalan Fodor
Bertalan Fodor wrote:
> I've found problems again: > > I can't include Garamond. Log: > warning: don't know how to embed "Garamond"="C:/WINDOWS/fonts/GARA.TTF" > > With -dgs-font-load=1, all of these are right. > > test file: can you apply the attached patch to framework-ps.scm (found somewhere inside the lilypond dir) and see if that helps? > When I embed Times New Roman and Arial, I get a pdf file that is 3MB > long. However, when I embed the Times New Roman font that I had loaded > into fontforge and generated by fontforge as MyTimes, the pdf is only > 50kB. Curious. Glyph subsetting does seem to work with my japanese TTF fonts. -- Han-Wen Nienhuys - [hidden email] - http://www.xs4all.nl/~hanwen ? .htaccess ? 1000.scsm ? LucidaGrande.ttf ? LucidaGrandeBold.ttf ? System ? a.out ? ab ? add ? arial.pfa ? aybabtu.afm ? bigcheese20.cff ? bla ? cf1.zip ? cf2.zip ? cffpats ? chinese-otfs.zip ? clip-demo.epsi ? config-prof.hh ? config-prof.make ? config-speed.hh ? config-speed.make ? cont ? cp.out ? crashes ? e.py ? example-1.texstr ? f.lytex ? f.texstr ? fcc.c ? fedora-release-4-2.noarch.rpm ? fi.py ? fingpats ? firefox.icns ? fondu3FB3-2 ? fontconfig ? fontconfig.c ? foo.c ? foo.cc ? foo.cff ? foo.pfa ? foobar ? gsbug-inv ? gstest ? hello ? hello.utf ? hir.otf ? hira.cff ? hk.cff ? hk2.afm ? hk2.cff ? hk3.cid.afm ? hk3.cid.cff ? htpasswd ? les-nereides.dsc ? les-nereides.texstr ? les-nereides.textmetrics ? lilypond-2.5.13 ? makefile.pango ? ml-systems.texi ? morgenlied.lpm ? morgenlied.texstr ? msgothic.ttc ? msmincho.ttc ? munix ? ok ? otftest.c ? out-prof ? out-speed ? out.ai ? out.pfa ? out.sk ? out.spsc ? p ? p.cc ? pango ? pango.c ? simple-song.twy ? simsun.ttc ? stat ? timtekst ? ud ? us ? usr ? ver ? wtk-prof ? wtk-prof2 ? Documentation/out ? Documentation/out-prof ? Documentation/out-speed ? Documentation/out-www ? Documentation/bibliography/out ? Documentation/bibliography/out-prof ? Documentation/bibliography/out-www ? Documentation/misc/out ? Documentation/misc/out-prof ? Documentation/misc/out-www ? Documentation/pictures/out ? Documentation/pictures/out-prof ? Documentation/pictures/out-www ? Documentation/topdocs/out ? Documentation/topdocs/out-prof ? Documentation/topdocs/out-www ? Documentation/user/baer-flat-gray.png ? Documentation/user/foo.texi ? Documentation/user/henle-flat-gray.png ? Documentation/user/out ? Documentation/user/out-prof ? Documentation/user/out-speed ? Documentation/user/out-www ? Documentation/user/utf8pats ? buildscripts/out ? buildscripts/out-prof ? buildscripts/out-speed ? buildscripts/out-www ? cygwin/out ? cygwin/out-prof ? cygwin/out-speed ? cygwin/out-www ? debian/out ? debian/out-prof ? debian/out-speed ? debian/out-www ? elisp/out ? elisp/out-prof ? elisp/out-speed ? elisp/out-www ? flower/out ? flower/out-prof ? flower/out-speed ? flower/out-www ? flower/include/out ? flower/include/out-prof ? flower/include/out-speed ? flower/include/out-www ? input/out ? input/out-prof ? input/out-www ? input/mutopia/out ? input/mutopia/out-prof ? input/mutopia/out-www ? input/mutopia/E.Satie/out ? input/mutopia/E.Satie/out-prof ? input/mutopia/E.Satie/out-www ? input/mutopia/F.Schubert/out ? input/mutopia/F.Schubert/out-prof ? input/mutopia/F.Schubert/out-www ? input/mutopia/J.S.Bach/out ? input/mutopia/J.S.Bach/out-prof ? input/mutopia/J.S.Bach/out-www ? input/mutopia/R.Schumann/foo.ps ? input/mutopia/R.Schumann/out ? input/mutopia/R.Schumann/out-prof ? input/mutopia/R.Schumann/out-www ? input/mutopia/R.Schumann/romanze-op28-2.midi ? input/mutopia/R.Schumann/romanze-op28-2.pdf ? input/mutopia/R.Schumann/romanze-op28-2.ps ? input/mutopia/W.A.Mozart/out ? input/mutopia/W.A.Mozart/out-prof ? input/mutopia/W.A.Mozart/out-www ? input/no-notation/out ? input/no-notation/out-prof ? input/no-notation/out-www ? input/regression/collated-files.ps ? input/regression/molecule-hacking.ly.NEW ? input/regression/out ? input/regression/out-prof ? input/regression/out-www ? input/test/foo.ps ? input/test/out ? input/test/out-prof ? input/test/out-www ? input/tutorial/out ? input/tutorial/out-prof ? input/tutorial/out-www ? kpath-guile/out ? kpath-guile/out-speed ? kpath-guile/out-www ? lily/gmon.out ? lily/out ? lily/out-prof ? lily/out-speed ? lily/out-www ? lily/include/out ? lily/include/out-prof ? lily/include/out-speed ? lily/include/out-www ? ly/out ? ly/out-prof ? ly/out-speed ? ly/out-www ? make/out ? make/out-prof ? make/out-speed ? make/out-www ? mf/Fontmap ? mf/feta-braces-e.600pk ? mf/feta20.600pk ? mf/feta23.afm ? mf/feta23.pfa.raw ? mf/ffbug.tar.gz ? mf/ffbug.zip ? mf/mftrace.dir ? mf/out ? mf/out-prof ? mf/out-speed ? mf/out-www ? po/out ? po/out-prof ? po/out-speed ? po/out-www ? ps/out ? ps/out-prof ? ps/out-speed ? ps/out-www ? python/convertrules.pyc ? python/fontextract.pyc ? python/lilylib.pyc ? python/out ? python/out-prof ? python/out-speed ? python/out-www ? scm/out ? scm/out-prof ? scm/out-speed ? scm/out-www ? scm/point ? scripts/out ? scripts/out-prof ? scripts/out-speed ? scripts/out-www ? stepmake/out ? stepmake/out-prof ? stepmake/out-speed ? stepmake/out-www ? stepmake/bin/out ? stepmake/bin/out-prof ? stepmake/bin/out-speed ? stepmake/bin/out-www ? stepmake/bin/packagepython.pyc ? stepmake/stepmake/out ? stepmake/stepmake/out-prof ? stepmake/stepmake/out-speed ? stepmake/stepmake/out-www ? tex/foo ? tex/out ? tex/out-prof ? tex/out-speed ? tex/out-www ? ttftool/foo ? ttftool/foo.pfa ? ttftool/out ? ttftool/out-speed ? ttftool/out-www ? ttftool/include/out ? ttftool/include/out-speed ? ttftool/include/out-www ? vim/out ? vim/out-prof ? vim/out-www Index: ChangeLog =================================================================== RCS file: /cvsroot/lilypond/lilypond/ChangeLog,v retrieving revision 1.3799 diff -u -r1.3799 ChangeLog --- ChangeLog 19 Jun 2005 11:21:06 -0000 1.3799 +++ ChangeLog 19 Jun 2005 13:45:10 -0000 @@ -1,5 +1,8 @@ 2005-06-19 Han-Wen Nienhuys <[hidden email]> + * 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). Index: scm/framework-ps.scm =================================================================== RCS file: /cvsroot/lilypond/lilypond/scm/framework-ps.scm,v retrieving revision 1.122 diff -u -r1.122 framework-ps.scm --- scm/framework-ps.scm 17 Jun 2005 13:02:55 -0000 1.122 +++ scm/framework-ps.scm 19 Jun 2005 13:45:12 -0000 @@ -303,21 +303,22 @@ embed)) (define (font-file-as-ps-string name file-name) + (let* + ((downcase-file-name (string-downcase file-name))) + (cond - ((and file-name (string-match "\\.pfa" file-name)) + ((and file-name (string-match "\\.pfa" downcase-file-name)) (cached-file-contents file-name)) - ((and file-name (string-match "\\.pfb" file-name)) + ((and file-name (string-match "\\.pfb" downcase-file-name)) (ly:pfb->pfa file-name)) - ((and file-name (string-match "\\.ttf" file-name)) + ((and file-name (string-match "\\.ttf" downcase-file-name)) (ly:ttf->pfa file-name)) - ((and file-name (string-match "\\.otf" file-name)) + ((and file-name (string-match "\\.otf" downcase-file-name)) (ps-embed-cff (ly:otf->cff file-name) name 0)) - ((and file-name (string-match "\\.ttf" file-name)) - (ly:ttf->pfa file-name)) (else (ly:warning (_ "don't know how to embed ~S=~S") name file-name) "") - )) + ))) (define (load-font font-name-filename) (let* ((font (car font-name-filename)) _______________________________________________ bug-lilypond mailing list [hidden email] http://lists.gnu.org/mailman/listinfo/bug-lilypond |
> can you apply the attached patch to framework-ps.scm (found somewhere > inside the lilypond dir) and see if that helps? Yes, it helped. Bert _______________________________________________ bug-lilypond mailing list [hidden email] http://lists.gnu.org/mailman/listinfo/bug-lilypond |
Free forum by Nabble | Edit this page |