@@ -210,6 +210,7 @@ void Read_name(struct TTFONT *font)
210
210
font->Copyright = (char *)calloc (sizeof (char ),length+1 );
211
211
strncpy (font->Copyright ,(const char *)strings+offset,length);
212
212
font->Copyright [length]=(char )NULL ;
213
+ replace_newlines_with_spaces (font->Copyright );
213
214
214
215
#ifdef DEBUG_TRUETYPE
215
216
debug (" font->Copyright=\" %s\" " ,font->Copyright );
@@ -224,6 +225,7 @@ void Read_name(struct TTFONT *font)
224
225
font->FamilyName = (char *)calloc (sizeof (char ),length+1 );
225
226
strncpy (font->FamilyName ,(const char *)strings+offset,length);
226
227
font->FamilyName [length]=(char )NULL ;
228
+ replace_newlines_with_spaces (font->FamilyName );
227
229
228
230
#ifdef DEBUG_TRUETYPE
229
231
debug (" font->FamilyName=\" %s\" " ,font->FamilyName );
@@ -238,6 +240,7 @@ void Read_name(struct TTFONT *font)
238
240
font->Style = (char *)calloc (sizeof (char ),length+1 );
239
241
strncpy (font->Style ,(const char *)strings+offset,length);
240
242
font->Style [length]=(char )NULL ;
243
+ replace_newlines_with_spaces (font->Style );
241
244
242
245
#ifdef DEBUG_TRUETYPE
243
246
debug (" font->Style=\" %s\" " ,font->Style );
@@ -252,6 +255,7 @@ void Read_name(struct TTFONT *font)
252
255
font->FullName = (char *)calloc (sizeof (char ),length+1 );
253
256
strncpy (font->FullName ,(const char *)strings+offset,length);
254
257
font->FullName [length]=(char )NULL ;
258
+ replace_newlines_with_spaces (font->FullName );
255
259
256
260
#ifdef DEBUG_TRUETYPE
257
261
debug (" font->FullName=\" %s\" " ,font->FullName );
@@ -266,7 +270,8 @@ void Read_name(struct TTFONT *font)
266
270
font->Version = (char *)calloc (sizeof (char ),length+1 );
267
271
strncpy (font->Version ,(const char *)strings+offset,length);
268
272
font->Version [length]=(char )NULL ;
269
-
273
+ replace_newlines_with_spaces (font->Version );
274
+
270
275
#ifdef DEBUG_TRUETYPE
271
276
debug (" font->Version=\" %s\" " ,font->Version );
272
277
#endif
@@ -280,7 +285,8 @@ void Read_name(struct TTFONT *font)
280
285
font->PostName = (char *)calloc (sizeof (char ),length+1 );
281
286
strncpy (font->PostName ,(const char *)strings+offset,length);
282
287
font->PostName [length]=(char )NULL ;
283
-
288
+ replace_newlines_with_spaces (font->PostName );
289
+
284
290
#ifdef DEBUG_TRUETYPE
285
291
debug (" font->PostName=\" %s\" " ,font->PostName );
286
292
#endif
@@ -294,6 +300,7 @@ void Read_name(struct TTFONT *font)
294
300
font->Trademark = (char *)calloc (sizeof (char ),length+1 );
295
301
strncpy (font->Trademark ,(const char *)strings+offset,length);
296
302
font->Trademark [length]=(char )NULL ;
303
+ replace_newlines_with_spaces (font->Trademark );
297
304
298
305
#ifdef DEBUG_TRUETYPE
299
306
debug (" font->Trademark=\" %s\" " ,font->Trademark );
@@ -343,7 +350,7 @@ void ttfont_header(TTStreamWriter& stream, struct TTFONT *font)
343
350
344
351
/* If there is a Copyright notice, put it here too. */
345
352
if ( font->Copyright != (char *)NULL )
346
- stream.printf (" %%%%Copyright: %s\n " ,font->Copyright );
353
+ stream.printf (" %%%%Copyright: %s\n " ,font->Copyright );
347
354
348
355
/* We created this file. */
349
356
if ( font->target_type == PS_TYPE_42 )
0 commit comments