diff options
Diffstat (limited to 'src/macfont.m')
| -rw-r--r-- | src/macfont.m | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/macfont.m b/src/macfont.m index 10623eb12fe..66833cd1b80 100644 --- a/src/macfont.m +++ b/src/macfont.m | |||
| @@ -882,6 +882,7 @@ macfont_descriptor_entity (FontDescriptorRef desc, Lisp_Object extra, | |||
| 882 | CFStringRef name; | 882 | CFStringRef name; |
| 883 | 883 | ||
| 884 | entity = font_make_entity (); | 884 | entity = font_make_entity (); |
| 885 | XFONT_ENTITY (entity)->driver = &macfont_driver; | ||
| 885 | 886 | ||
| 886 | ASET (entity, FONT_TYPE_INDEX, macfont_driver.type); | 887 | ASET (entity, FONT_TYPE_INDEX, macfont_driver.type); |
| 887 | ASET (entity, FONT_REGISTRY_INDEX, Qiso10646_1); | 888 | ASET (entity, FONT_REGISTRY_INDEX, Qiso10646_1); |
| @@ -2491,6 +2492,7 @@ macfont_open (struct frame * f, Lisp_Object entity, int pixel_size) | |||
| 2491 | ASET (font_object, FONT_FULLNAME_INDEX, | 2492 | ASET (font_object, FONT_FULLNAME_INDEX, |
| 2492 | AREF (font_object, FONT_NAME_INDEX)); | 2493 | AREF (font_object, FONT_NAME_INDEX)); |
| 2493 | font = XFONT_OBJECT (font_object); | 2494 | font = XFONT_OBJECT (font_object); |
| 2495 | font->frame = f; | ||
| 2494 | font->pixel_size = size; | 2496 | font->pixel_size = size; |
| 2495 | font->driver = &macfont_driver; | 2497 | font->driver = &macfont_driver; |
| 2496 | font->encoding_charset = font->repertory_charset = -1; | 2498 | font->encoding_charset = font->repertory_charset = -1; |