diff options
Diffstat (limited to 'src/xfns.c')
| -rw-r--r-- | src/xfns.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xfns.c b/src/xfns.c index a0229919aa0..e431651d93a 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -2956,7 +2956,7 @@ x_default_font_parameter (struct frame *f, Lisp_Object parms) | |||
| 2956 | read yet. */ | 2956 | read yet. */ |
| 2957 | const char *system_font = xsettings_get_system_font (); | 2957 | const char *system_font = xsettings_get_system_font (); |
| 2958 | if (system_font) | 2958 | if (system_font) |
| 2959 | font = font_open_by_name (f, system_font, strlen (system_font)); | 2959 | font = font_open_by_name (f, build_unibyte_string (system_font)); |
| 2960 | } | 2960 | } |
| 2961 | 2961 | ||
| 2962 | if (NILP (font)) | 2962 | if (NILP (font)) |
| @@ -2986,7 +2986,7 @@ x_default_font_parameter (struct frame *f, Lisp_Object parms) | |||
| 2986 | 2986 | ||
| 2987 | for (i = 0; names[i]; i++) | 2987 | for (i = 0; names[i]; i++) |
| 2988 | { | 2988 | { |
| 2989 | font = font_open_by_name (f, names[i], strlen (names[i])); | 2989 | font = font_open_by_name (f, build_unibyte_string (names[i])); |
| 2990 | if (! NILP (font)) | 2990 | if (! NILP (font)) |
| 2991 | break; | 2991 | break; |
| 2992 | } | 2992 | } |