CVSROOT:        /cvsroot/lilypond
Module name:    lilypond
Branch:         
Changes by:     Han-Wen Nienhuys <[EMAIL PROTECTED]>    05/05/26 12:13:14

Modified files:
        lily           : pfb.cc 

Log message:
        (LY_DEFINE): progress indication for opening ttf and
        otf files.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/lilypond/lilypond/lily/pfb.cc.diff?tr1=1.11&tr2=1.12&r1=text&r2=text

Patches:
Index: lilypond/lily/pfb.cc
diff -u lilypond/lily/pfb.cc:1.11 lilypond/lily/pfb.cc:1.12
--- lilypond/lily/pfb.cc:1.11   Sun May  8 19:12:25 2005
+++ lilypond/lily/pfb.cc        Thu May 26 12:13:14 2005
@@ -97,12 +97,18 @@
                   SCM_ARG1, __FUNCTION__, "string");
 
   String file_name = ly_scm2string (ttf_file_name);
-
+  if (be_verbose_global)
+    progress_indication ("[" + file_name);
+  
+  
   Memory_out_stream stream;
   create_type42 (file_name.to_str0 (), stream.get_file ());
   SCM asscm = scm_from_locale_stringn (stream.get_string (),
                                       stream.get_length ());
 
+  if (be_verbose_global)
+    progress_indication ("]");
+  
   return asscm;
 }
 
@@ -117,6 +123,8 @@
                   SCM_ARG1, __FUNCTION__, "string");
 
   String file_name = ly_scm2string (otf_file_name);
+  if (be_verbose_global)
+    progress_indication ("[" + file_name);
 
   FT_Face face = open_ft_face (file_name);
   String table = get_otf_table (face, "CFF ");
@@ -124,5 +132,8 @@
   SCM asscm = scm_from_locale_stringn ((char*) table.get_bytes (),
                                       table.length ());
 
+  if (be_verbose_global)
+    progress_indication ("]");
+  
   return asscm;
 }         


_______________________________________________
Lilypond-cvs mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-cvs

Reply via email to