comparison src/font-mgr.c @ 5830:5f02d29a2a65

Get the previous patch wrt. FcNameUnparse right. 2014-11-23 Michael Sperber <mike@xemacs.org> * font-mgr.c (Ffc_name_unparse): Do the previous change to this file right and parse the pattern sans the charset.
author Mike Sperber <sperber@deinprogramm.de>
date Sun, 23 Nov 2014 19:26:14 +0100
parents 6928877dbc26
children
comparison
equal deleted inserted replaced
5829:0303baa7c4e9 5830:5f02d29a2a65
267 CHECK_FC_PATTERN (pattern); 267 CHECK_FC_PATTERN (pattern);
268 /* #### Could use multiple values here to extract and return charset? */ 268 /* #### Could use multiple values here to extract and return charset? */
269 { 269 {
270 FcPattern* temp = FcPatternDuplicate (XFC_PATTERN_PTR (pattern)); 270 FcPattern* temp = FcPatternDuplicate (XFC_PATTERN_PTR (pattern));
271 FcPatternDel (temp, FC_CHARSET); 271 FcPatternDel (temp, FC_CHARSET);
272 name = FcNameUnparse (XFC_PATTERN_PTR (pattern)); 272 name = FcNameUnparse (temp);
273 FcPatternDestroy (temp); 273 FcPatternDestroy (temp);
274 } 274 }
275 result = build_fcapi_string (name); 275 result = build_fcapi_string (name);
276 xfree (name); 276 xfree (name);
277 return result; 277 return result;