aboutsummaryrefslogtreecommitdiffstats
path: root/src/macfont.m
diff options
context:
space:
mode:
authorPaul Eggert2013-11-04 23:44:14 -0800
committerPaul Eggert2013-11-04 23:44:14 -0800
commita67c4ae05909874c97f86b11dcb8ddc88b3e960c (patch)
tree24080844d67cc6e7ba3fa0f043f56612fa679edf /src/macfont.m
parentdf5b49306e8e82e2f18ed3243700c11ca7835750 (diff)
downloademacs-a67c4ae05909874c97f86b11dcb8ddc88b3e960c.tar.gz
emacs-a67c4ae05909874c97f86b11dcb8ddc88b3e960c.zip
Spelling fixes.
Diffstat (limited to 'src/macfont.m')
-rw-r--r--src/macfont.m14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/macfont.m b/src/macfont.m
index 4b8be551786..c284b3086f8 100644
--- a/src/macfont.m
+++ b/src/macfont.m
@@ -64,7 +64,7 @@ static CGGlyph mac_ctfont_get_glyph_for_cid (CTFontRef,
64#endif 64#endif
65 65
66/* The font property key specifying the font design destination. The 66/* The font property key specifying the font design destination. The
67 value is an unsigned integer code: 0 for WYSIWIG, and 1 for Video 67 value is an unsigned integer code: 0 for WYSIWYG, and 1 for Video
68 text. (See the documentation of X Logical Font Description 68 text. (See the documentation of X Logical Font Description
69 Conventions.) In the Mac font driver, 1 means the screen font is 69 Conventions.) In the Mac font driver, 1 means the screen font is
70 used for calculating some glyph metrics. You can see the 70 used for calculating some glyph metrics. You can see the
@@ -366,7 +366,7 @@ mac_font_shape_1 (NSFont *font, NSString *string,
366 if (!(textStorage && layoutManager && textContainer)) 366 if (!(textStorage && layoutManager && textContainer))
367 { 367 {
368 [textStorage release]; 368 [textStorage release];
369 369
370 return 0; 370 return 0;
371 } 371 }
372 372
@@ -1166,7 +1166,7 @@ struct macfont_cache
1166 1166
1167 /* The cached glyph for a character c is stored as the (c % 1167 /* The cached glyph for a character c is stored as the (c %
1168 NGLYPHS_IN_VALUE)-th CGGlyph block of a value for the key (c / 1168 NGLYPHS_IN_VALUE)-th CGGlyph block of a value for the key (c /
1169 NGLYPHS_IN_VALUE). However, the glyph for a BMP characrer c is 1169 NGLYPHS_IN_VALUE). However, the glyph for a BMP character c is
1170 not stored here if row_nkeys_or_perm[c / 256] >= 1170 not stored here if row_nkeys_or_perm[c / 256] >=
1171 ROW_PERM_OFFSET. */ 1171 ROW_PERM_OFFSET. */
1172 CFMutableDictionaryRef dictionary; 1172 CFMutableDictionaryRef dictionary;
@@ -2472,7 +2472,7 @@ macfont_open (struct frame * f, Lisp_Object entity, int pixel_size)
2472 macfont_info = (struct macfont_info *) font; 2472 macfont_info = (struct macfont_info *) font;
2473 macfont_info->macfont = macfont; 2473 macfont_info->macfont = macfont;
2474 macfont_info->cgfont = mac_font_copy_graphics_font (macfont); 2474 macfont_info->cgfont = mac_font_copy_graphics_font (macfont);
2475 2475
2476 val = assq_no_quit (QCdestination, AREF (entity, FONT_EXTRA_INDEX)); 2476 val = assq_no_quit (QCdestination, AREF (entity, FONT_EXTRA_INDEX));
2477 if (CONSP (val) && EQ (XCDR (val), make_number (1))) 2477 if (CONSP (val) && EQ (XCDR (val), make_number (1)))
2478 macfont_info->screen_font = mac_screen_font_create_with_name (font_name, 2478 macfont_info->screen_font = mac_screen_font_create_with_name (font_name,
@@ -2679,7 +2679,7 @@ macfont_text_extents (struct font *font, unsigned int *code, int nglyphs,
2679 } 2679 }
2680 unblock_input (); 2680 unblock_input ();
2681 2681
2682 if (metrics) 2682 if (metrics)
2683 metrics->width = width; 2683 metrics->width = width;
2684 2684
2685 return width; 2685 return width;
@@ -2741,7 +2741,7 @@ macfont_draw (struct glyph_string *s, int from, int to, int x, int y,
2741 for (i = 0; i < len; i++) 2741 for (i = 0; i < len; i++)
2742 { 2742 {
2743 int width; 2743 int width;
2744 2744
2745 glyphs[i] = *(s->char2b + s->cmp_from + i); 2745 glyphs[i] = *(s->char2b + s->cmp_from + i);
2746 width = (s->padding_p ? 1 2746 width = (s->padding_p ? 1
2747 : macfont_glyph_extents (s->font, glyphs[i], 2747 : macfont_glyph_extents (s->font, glyphs[i],
@@ -3001,7 +3001,7 @@ struct non_default_uvs_table
3001#define BUINT32_VALUE(lval) OSReadBigInt32 (&(lval), 0) 3001#define BUINT32_VALUE(lval) OSReadBigInt32 (&(lval), 0)
3002 3002
3003/* Return UVS subtable for the specified FONT. If the subtable is not 3003/* Return UVS subtable for the specified FONT. If the subtable is not
3004 found or ill-formated, then return NULL. */ 3004 found or ill-formatted, then return NULL. */
3005 3005
3006static CFDataRef 3006static CFDataRef
3007mac_font_copy_uvs_table (FontRef font) 3007mac_font_copy_uvs_table (FontRef font)