Embedded fonts tend to be extra bad, so trim the names. I have
encountered fonts faces with untrimmed names.
Leave this at the discretion of the font provider for platform-specific
font providers.
*bufptr = '\0';
if (name.name_id == 4) {
- fullnames[num_fullname] = strdup(buf);
+ fullnames[num_fullname] = strdup_trimmed(buf);
if (fullnames[num_fullname] == NULL)
goto error;
num_fullname++;
}
if (name.name_id == 1) {
- families[num_family] = strdup(buf);
+ families[num_family] = strdup_trimmed(buf);
if (families[num_family] == NULL)
goto error;
num_family++;