#include "main.hh"
#include "warn.hh"
+using std::string;
+using std::vector;
+
LY_DEFINE (ly_pfb_2_pfa, "ly:pfb->pfa",
1, 0, 0, (SCM pfb_file_name),
"Convert the contents of a Type@tie{}1 font in PFB format"
vector<char> pfb_string = gulp_file (file_name, 0);
char *pfa = pfb2pfa ((Byte *) &pfb_string[0], pfb_string.size ());
- SCM pfa_scm = scm_from_locale_string (pfa);
+ SCM pfa_scm = scm_from_latin1_string (pfa);
free (pfa);
debug_output ("]", false);
FT_Face face = open_ft_face (file_name, 0 /* index */);
string table = get_otf_table (face, "CFF ");
- SCM asscm = scm_from_locale_stringn ((char *) table.data (),
+ SCM asscm = scm_from_latin1_stringn ((char *) table.data (),
table.length ());
debug_output ("]", false);