-LY_DEFINE(ly_pfb_to_pfa, "ly:pfb->pfa",
- 1,0,0, (SCM pfb_path),
- "Convert the contents of a PFB file to PFA."
- )
-{
- SCM_ASSERT_TYPE(ly_c_string_p (pfb_path), pfb_path,
- SCM_ARG1, __FUNCTION__, "string");
-
- String path = ly_scm2string (pfb_path);
- int len ;
- char *str = gulp_file (path, &len);
- char *pfa = pfb2pfa ((Byte*)str, len);
-
- SCM pfa_scm = scm_makfrom0str(pfa);
- free (pfa);
- delete str;
- return pfa_scm;
-}
-