From ab9f7a342f17a9b5ad1d54527c36bfc552f7179c Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Thu, 26 May 2005 12:13:14 +0000 Subject: [PATCH] (LY_DEFINE): progress indication for opening ttf and otf files. --- lily/pfb.cc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/lily/pfb.cc b/lily/pfb.cc index 6b13f90f52..db45a994aa 100644 --- a/lily/pfb.cc +++ b/lily/pfb.cc @@ -97,12 +97,18 @@ LY_DEFINE (ly_ttf_to_pfa, "ly:ttf->pfa", 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 @@ LY_DEFINE (ly_otf_to_cff, "ly:otf->cff", 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 @@ LY_DEFINE (ly_otf_to_cff, "ly:otf->cff", SCM asscm = scm_from_locale_stringn ((char*) table.get_bytes (), table.length ()); + if (be_verbose_global) + progress_indication ("]"); + return asscm; } -- 2.39.2