OLD | NEW |
1 /* | 1 /* |
2 This file is part of LilyPond, the GNU music typesetter. | 2 This file is part of LilyPond, the GNU music typesetter. |
3 | 3 |
4 Copyright (C) 2005--2015 Han-Wen Nienhuys <hanwen@xs4all.nl> | 4 Copyright (C) 2005--2015 Han-Wen Nienhuys <hanwen@xs4all.nl> |
5 | 5 |
6 LilyPond is free software: you can redistribute it and/or modify | 6 LilyPond is free software: you can redistribute it and/or modify |
7 it under the terms of the GNU General Public License as published by | 7 it under the terms of the GNU General Public License as published by |
8 the Free Software Foundation, either version 3 of the License, or | 8 the Free Software Foundation, either version 3 of the License, or |
9 (at your option) any later version. | 9 (at your option) any later version. |
10 | 10 |
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
563 i = 0; | 563 i = 0; |
564 } | 564 } |
565 } | 565 } |
566 | 566 |
567 string file_name = ly_scm2string (ttf_file_name); | 567 string file_name = ly_scm2string (ttf_file_name); |
568 debug_output ("[" + file_name); // Debug message should start on a new line | 568 debug_output ("[" + file_name); // Debug message should start on a new line |
569 | 569 |
570 Memory_out_stream stream; | 570 Memory_out_stream stream; |
571 | 571 |
572 create_type42_font (&stream, file_name, i); | 572 create_type42_font (&stream, file_name, i); |
573 SCM asscm = scm_from_locale_stringn (stream.get_string (), | 573 SCM asscm = scm_from_latin1_stringn (stream.get_string (), |
574 stream.get_length ()); | 574 stream.get_length ()); |
575 | 575 |
576 debug_output ("]", false); | 576 debug_output ("]", false); |
577 | 577 |
578 return asscm; | 578 return asscm; |
579 } | 579 } |
OLD | NEW |