Type1 (PFA) fonts can contain '\0'.
e.g. URW++ June 2016 (Ghostscript 9.20)
In order to avoid problems with '\0',
this commit makes to use the file length
instead of zero-terminated string.
else
{
/* The file is in PFA format. Pass it through. */
else
{
/* The file is in PFA format. Pass it through. */
- type1_string.push_back(0);
- pfa_scm = scm_from_latin1_string (&type1_string[0]);
+ pfa_scm = scm_from_latin1_stringn (&type1_string[0],
+ type1_string.size ());
}
debug_output ("]", false);
}
debug_output ("]", false);