aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32font.c
diff options
context:
space:
mode:
authorJuanma Barranquero2010-07-06 16:22:29 +0200
committerJuanma Barranquero2010-07-06 16:22:29 +0200
commitb56ceb92bf4d470af2e9172d1fcd4d85232c40a6 (patch)
tree50ab60b4715be45ed671c386c5b9336b45443539 /src/w32font.c
parent7af07b967171736a35e0af8b6ecf6feb072184dc (diff)
downloademacs-b56ceb92bf4d470af2e9172d1fcd4d85232c40a6.tar.gz
emacs-b56ceb92bf4d470af2e9172d1fcd4d85232c40a6.zip
src/w32*.c: Convert function definitions to standard C.
Diffstat (limited to 'src/w32font.c')
-rw-r--r--src/w32font.c181
1 files changed, 57 insertions, 124 deletions
diff --git a/src/w32font.c b/src/w32font.c
index ab56eb9e4d2..d86fb3b792c 100644
--- a/src/w32font.c
+++ b/src/w32font.c
@@ -153,8 +153,7 @@ static void list_all_matching_fonts (struct font_callback_data *);
153 153
154 154
155static int 155static int
156memq_no_quit (elt, list) 156memq_no_quit (Lisp_Object elt, Lisp_Object list)
157 Lisp_Object elt, list;
158{ 157{
159 while (CONSP (list) && ! EQ (XCAR (list), elt)) 158 while (CONSP (list) && ! EQ (XCAR (list), elt))
160 list = XCDR (list); 159 list = XCDR (list);
@@ -162,8 +161,7 @@ memq_no_quit (elt, list)
162} 161}
163 162
164Lisp_Object 163Lisp_Object
165intern_font_name (string) 164intern_font_name (char * string)
166 char * string;
167{ 165{
168 Lisp_Object obarray, tem, str; 166 Lisp_Object obarray, tem, str;
169 int len; 167 int len;
@@ -185,8 +183,7 @@ intern_font_name (string)
185 Return a cache of font-entities on FRAME. The cache must be a 183 Return a cache of font-entities on FRAME. The cache must be a
186 cons whose cdr part is the actual cache area. */ 184 cons whose cdr part is the actual cache area. */
187Lisp_Object 185Lisp_Object
188w32font_get_cache (f) 186w32font_get_cache (FRAME_PTR f)
189 FRAME_PTR f;
190{ 187{
191 struct w32_display_info *dpyinfo = FRAME_X_DISPLAY_INFO (f); 188 struct w32_display_info *dpyinfo = FRAME_X_DISPLAY_INFO (f);
192 189
@@ -198,8 +195,7 @@ w32font_get_cache (f)
198 is a vector of font-entities. This is the sole API that 195 is a vector of font-entities. This is the sole API that
199 allocates font-entities. */ 196 allocates font-entities. */
200static Lisp_Object 197static Lisp_Object
201w32font_list (frame, font_spec) 198w32font_list (Lisp_Object frame, Lisp_Object font_spec)
202 Lisp_Object frame, font_spec;
203{ 199{
204 Lisp_Object fonts = w32font_list_internal (frame, font_spec, 0); 200 Lisp_Object fonts = w32font_list_internal (frame, font_spec, 0);
205 FONT_ADD_LOG ("w32font-list", font_spec, fonts); 201 FONT_ADD_LOG ("w32font-list", font_spec, fonts);
@@ -211,8 +207,7 @@ w32font_list (frame, font_spec)
211 FRAME. The closeness is detemined by the font backend, thus 207 FRAME. The closeness is detemined by the font backend, thus
212 `face-font-selection-order' is ignored here. */ 208 `face-font-selection-order' is ignored here. */
213static Lisp_Object 209static Lisp_Object
214w32font_match (frame, font_spec) 210w32font_match (Lisp_Object frame, Lisp_Object font_spec)
215 Lisp_Object frame, font_spec;
216{ 211{
217 Lisp_Object entity = w32font_match_internal (frame, font_spec, 0); 212 Lisp_Object entity = w32font_match_internal (frame, font_spec, 0);
218 FONT_ADD_LOG ("w32font-match", font_spec, entity); 213 FONT_ADD_LOG ("w32font-match", font_spec, entity);
@@ -223,8 +218,7 @@ w32font_match (frame, font_spec)
223 List available families. The value is a list of family names 218 List available families. The value is a list of family names
224 (symbols). */ 219 (symbols). */
225static Lisp_Object 220static Lisp_Object
226w32font_list_family (frame) 221w32font_list_family (Lisp_Object frame)
227 Lisp_Object frame;
228{ 222{
229 Lisp_Object list = Qnil; 223 Lisp_Object list = Qnil;
230 LOGFONT font_match_pattern; 224 LOGFONT font_match_pattern;
@@ -248,10 +242,7 @@ w32font_list_family (frame)
248 Open a font specified by FONT_ENTITY on frame F. 242 Open a font specified by FONT_ENTITY on frame F.
249 If the font is scalable, open it with PIXEL_SIZE. */ 243 If the font is scalable, open it with PIXEL_SIZE. */
250static Lisp_Object 244static Lisp_Object
251w32font_open (f, font_entity, pixel_size) 245w32font_open (FRAME_PTR f, Lisp_Object font_entity, int pixel_size)
252 FRAME_PTR f;
253 Lisp_Object font_entity;
254 int pixel_size;
255{ 246{
256 Lisp_Object font_object 247 Lisp_Object font_object
257 = font_make_object (VECSIZE (struct w32font_info), 248 = font_make_object (VECSIZE (struct w32font_info),
@@ -275,9 +266,7 @@ w32font_open (f, font_entity, pixel_size)
275/* w32 implementation of close for font_backend. 266/* w32 implementation of close for font_backend.
276 Close FONT on frame F. */ 267 Close FONT on frame F. */
277void 268void
278w32font_close (f, font) 269w32font_close (FRAME_PTR f, struct font *font)
279 FRAME_PTR f;
280 struct font *font;
281{ 270{
282 int i; 271 int i;
283 struct w32font_info *w32_font = (struct w32font_info *) font; 272 struct w32font_info *w32_font = (struct w32font_info *) font;
@@ -303,9 +292,7 @@ w32font_close (f, font)
303 return 1. If not, return 0. If a font must be opened to check 292 return 1. If not, return 0. If a font must be opened to check
304 it, return -1. */ 293 it, return -1. */
305int 294int
306w32font_has_char (entity, c) 295w32font_has_char (Lisp_Object entity, int c)
307 Lisp_Object entity;
308 int c;
309{ 296{
310 /* We can't be certain about which characters a font will support until 297 /* We can't be certain about which characters a font will support until
311 we open it. Checking the scripts that the font supports turns out 298 we open it. Checking the scripts that the font supports turns out
@@ -354,9 +341,7 @@ w32font_has_char (entity, c)
354 which characters are not supported by the font. 341 which characters are not supported by the font.
355 */ 342 */
356static unsigned 343static unsigned
357w32font_encode_char (font, c) 344w32font_encode_char (struct font *font, int c)
358 struct font *font;
359 int c;
360{ 345{
361 struct w32font_info * w32_font = (struct w32font_info *)font; 346 struct w32font_info * w32_font = (struct w32font_info *)font;
362 347
@@ -373,11 +358,8 @@ w32font_encode_char (font, c)
373 CODE (length NGLYPHS). Apparently metrics can be NULL, in this 358 CODE (length NGLYPHS). Apparently metrics can be NULL, in this
374 case just return the overall width. */ 359 case just return the overall width. */
375int 360int
376w32font_text_extents (font, code, nglyphs, metrics) 361w32font_text_extents (struct font *font, unsigned *code,
377 struct font *font; 362 int nglyphs, struct font_metrics *metrics)
378 unsigned *code;
379 int nglyphs;
380 struct font_metrics *metrics;
381{ 363{
382 int i; 364 int i;
383 HFONT old_font = NULL; 365 HFONT old_font = NULL;
@@ -552,9 +534,8 @@ w32font_text_extents (font, code, nglyphs, metrics)
552*/ 534*/
553 535
554int 536int
555w32font_draw (s, from, to, x, y, with_background) 537w32font_draw (struct glyph_string *s, int from, int to,
556 struct glyph_string *s; 538 int x, int y, int with_background)
557 int from, to, x, y, with_background;
558{ 539{
559 UINT options; 540 UINT options;
560 HRGN orig_clip = NULL; 541 HRGN orig_clip = NULL;
@@ -715,9 +696,7 @@ w32font_otf_drive (struct font *font, Lisp_Object features,
715 Additional parameter opentype_only restricts the returned fonts to 696 Additional parameter opentype_only restricts the returned fonts to
716 opentype fonts, which can be used with the Uniscribe backend. */ 697 opentype fonts, which can be used with the Uniscribe backend. */
717Lisp_Object 698Lisp_Object
718w32font_list_internal (frame, font_spec, opentype_only) 699w32font_list_internal (Lisp_Object frame, Lisp_Object font_spec, int opentype_only)
719 Lisp_Object frame, font_spec;
720 int opentype_only;
721{ 700{
722 struct font_callback_data match_data; 701 struct font_callback_data match_data;
723 HDC dc; 702 HDC dc;
@@ -770,9 +749,7 @@ w32font_list_internal (frame, font_spec, opentype_only)
770 Additional parameter opentype_only restricts the returned fonts to 749 Additional parameter opentype_only restricts the returned fonts to
771 opentype fonts, which can be used with the Uniscribe backend. */ 750 opentype fonts, which can be used with the Uniscribe backend. */
772Lisp_Object 751Lisp_Object
773w32font_match_internal (frame, font_spec, opentype_only) 752w32font_match_internal (Lisp_Object frame, Lisp_Object font_spec, int opentype_only)
774 Lisp_Object frame, font_spec;
775 int opentype_only;
776{ 753{
777 struct font_callback_data match_data; 754 struct font_callback_data match_data;
778 HDC dc; 755 HDC dc;
@@ -800,11 +777,8 @@ w32font_match_internal (frame, font_spec, opentype_only)
800} 777}
801 778
802int 779int
803w32font_open_internal (f, font_entity, pixel_size, font_object) 780w32font_open_internal (FRAME_PTR f, Lisp_Object font_entity,
804 FRAME_PTR f; 781 int pixel_size, Lisp_Object font_object)
805 Lisp_Object font_entity;
806 int pixel_size;
807 Lisp_Object font_object;
808{ 782{
809 int len, size, i; 783 int len, size, i;
810 LOGFONT logfont; 784 LOGFONT logfont;
@@ -951,11 +925,9 @@ w32font_open_internal (f, font_entity, pixel_size, font_object)
951/* Callback function for EnumFontFamiliesEx. 925/* Callback function for EnumFontFamiliesEx.
952 * Adds the name of a font to a Lisp list (passed in as the lParam arg). */ 926 * Adds the name of a font to a Lisp list (passed in as the lParam arg). */
953static int CALLBACK 927static int CALLBACK
954add_font_name_to_list (logical_font, physical_font, font_type, list_object) 928add_font_name_to_list (ENUMLOGFONTEX *logical_font,
955 ENUMLOGFONTEX *logical_font; 929 NEWTEXTMETRICEX *physical_font,
956 NEWTEXTMETRICEX *physical_font; 930 DWORD font_type, LPARAM list_object)
957 DWORD font_type;
958 LPARAM list_object;
959{ 931{
960 Lisp_Object* list = (Lisp_Object *) list_object; 932 Lisp_Object* list = (Lisp_Object *) list_object;
961 Lisp_Object family; 933 Lisp_Object family;
@@ -976,14 +948,12 @@ static int w32_encode_weight (int);
976 948
977/* Convert an enumerated Windows font to an Emacs font entity. */ 949/* Convert an enumerated Windows font to an Emacs font entity. */
978static Lisp_Object 950static Lisp_Object
979w32_enumfont_pattern_entity (frame, logical_font, physical_font, 951w32_enumfont_pattern_entity (Lisp_Object frame,
980 font_type, requested_font, backend) 952 ENUMLOGFONTEX *logical_font,
981 Lisp_Object frame; 953 NEWTEXTMETRICEX *physical_font,
982 ENUMLOGFONTEX *logical_font; 954 DWORD font_type,
983 NEWTEXTMETRICEX *physical_font; 955 LOGFONT *requested_font,
984 DWORD font_type; 956 Lisp_Object backend)
985 LOGFONT *requested_font;
986 Lisp_Object backend;
987{ 957{
988 Lisp_Object entity, tem; 958 Lisp_Object entity, tem;
989 LOGFONT *lf = (LOGFONT*) logical_font; 959 LOGFONT *lf = (LOGFONT*) logical_font;
@@ -1107,8 +1077,7 @@ w32_generic_family (Lisp_Object name)
1107} 1077}
1108 1078
1109static int 1079static int
1110logfonts_match (font, pattern) 1080logfonts_match (LOGFONT *font, LOGFONT *pattern)
1111 LOGFONT *font, *pattern;
1112{ 1081{
1113 /* Only check height for raster fonts. */ 1082 /* Only check height for raster fonts. */
1114 if (pattern->lfHeight && font->lfOutPrecision == OUT_STRING_PRECIS 1083 if (pattern->lfHeight && font->lfOutPrecision == OUT_STRING_PRECIS
@@ -1132,12 +1101,9 @@ logfonts_match (font, pattern)
1132#define CSB_CHINESE ((1 << 18) | (1 << 20)) 1101#define CSB_CHINESE ((1 << 18) | (1 << 20))
1133 1102
1134static int 1103static int
1135font_matches_spec (type, font, spec, backend, logfont) 1104font_matches_spec (DWORD type, NEWTEXTMETRICEX *font,
1136 DWORD type; 1105 Lisp_Object spec, Lisp_Object backend,
1137 NEWTEXTMETRICEX *font; 1106 LOGFONT *logfont)
1138 Lisp_Object spec;
1139 Lisp_Object backend;
1140 LOGFONT *logfont;
1141{ 1107{
1142 Lisp_Object extra, val; 1108 Lisp_Object extra, val;
1143 1109
@@ -1322,9 +1288,7 @@ font_matches_spec (type, font, spec, backend, logfont)
1322} 1288}
1323 1289
1324static int 1290static int
1325w32font_coverage_ok (coverage, charset) 1291w32font_coverage_ok (FONTSIGNATURE * coverage, BYTE charset)
1326 FONTSIGNATURE * coverage;
1327 BYTE charset;
1328{ 1292{
1329 DWORD subrange1 = coverage->fsUsb[1]; 1293 DWORD subrange1 = coverage->fsUsb[1];
1330 1294
@@ -1350,9 +1314,7 @@ w32font_coverage_ok (coverage, charset)
1350 1314
1351 1315
1352static int 1316static int
1353check_face_name (font, full_name) 1317check_face_name (LOGFONT *font, char *full_name)
1354 LOGFONT *font;
1355 char *full_name;
1356{ 1318{
1357 char full_iname[LF_FULLFACESIZE+1]; 1319 char full_iname[LF_FULLFACESIZE+1];
1358 1320
@@ -1397,11 +1359,9 @@ check_face_name (font, full_name)
1397 * and the list to which the fonts are added are passed in via the 1359 * and the list to which the fonts are added are passed in via the
1398 * lparam argument, in the form of a font_callback_data struct. */ 1360 * lparam argument, in the form of a font_callback_data struct. */
1399static int CALLBACK 1361static int CALLBACK
1400add_font_entity_to_list (logical_font, physical_font, font_type, lParam) 1362add_font_entity_to_list (ENUMLOGFONTEX *logical_font,
1401 ENUMLOGFONTEX *logical_font; 1363 NEWTEXTMETRICEX *physical_font,
1402 NEWTEXTMETRICEX *physical_font; 1364 DWORD font_type, LPARAM lParam)
1403 DWORD font_type;
1404 LPARAM lParam;
1405{ 1365{
1406 struct font_callback_data *match_data 1366 struct font_callback_data *match_data
1407 = (struct font_callback_data *) lParam; 1367 = (struct font_callback_data *) lParam;
@@ -1510,11 +1470,9 @@ add_font_entity_to_list (logical_font, physical_font, font_type, lParam)
1510/* Callback function for EnumFontFamiliesEx. 1470/* Callback function for EnumFontFamiliesEx.
1511 * Terminates the search once we have a match. */ 1471 * Terminates the search once we have a match. */
1512static int CALLBACK 1472static int CALLBACK
1513add_one_font_entity_to_list (logical_font, physical_font, font_type, lParam) 1473add_one_font_entity_to_list (ENUMLOGFONTEX *logical_font,
1514 ENUMLOGFONTEX *logical_font; 1474 NEWTEXTMETRICEX *physical_font,
1515 NEWTEXTMETRICEX *physical_font; 1475 DWORD font_type, LPARAM lParam)
1516 DWORD font_type;
1517 LPARAM lParam;
1518{ 1476{
1519 struct font_callback_data *match_data 1477 struct font_callback_data *match_data
1520 = (struct font_callback_data *) lParam; 1478 = (struct font_callback_data *) lParam;
@@ -1526,8 +1484,7 @@ add_one_font_entity_to_list (logical_font, physical_font, font_type, lParam)
1526 1484
1527/* Old function to convert from x to w32 charset, from w32fns.c. */ 1485/* Old function to convert from x to w32 charset, from w32fns.c. */
1528static LONG 1486static LONG
1529x_to_w32_charset (lpcs) 1487x_to_w32_charset (char * lpcs)
1530 char * lpcs;
1531{ 1488{
1532 Lisp_Object this_entry, w32_charset; 1489 Lisp_Object this_entry, w32_charset;
1533 char *charset; 1490 char *charset;
@@ -1609,8 +1566,7 @@ x_to_w32_charset (lpcs)
1609 1566
1610/* Convert a Lisp font registry (symbol) to a windows charset. */ 1567/* Convert a Lisp font registry (symbol) to a windows charset. */
1611static LONG 1568static LONG
1612registry_to_w32_charset (charset) 1569registry_to_w32_charset (Lisp_Object charset)
1613 Lisp_Object charset;
1614{ 1570{
1615 if (EQ (charset, Qiso10646_1) || EQ (charset, Qunicode_bmp) 1571 if (EQ (charset, Qiso10646_1) || EQ (charset, Qunicode_bmp)
1616 || EQ (charset, Qunicode_sip)) 1572 || EQ (charset, Qunicode_sip))
@@ -1625,9 +1581,7 @@ registry_to_w32_charset (charset)
1625 1581
1626/* Old function to convert from w32 to x charset, from w32fns.c. */ 1582/* Old function to convert from w32 to x charset, from w32fns.c. */
1627static char * 1583static char *
1628w32_to_x_charset (fncharset, matching) 1584w32_to_x_charset (int fncharset, char *matching)
1629 int fncharset;
1630 char *matching;
1631{ 1585{
1632 static char buf[32]; 1586 static char buf[32];
1633 Lisp_Object charset_type; 1587 Lisp_Object charset_type;
@@ -1821,9 +1775,7 @@ w32_to_x_charset (fncharset, matching)
1821} 1775}
1822 1776
1823static Lisp_Object 1777static Lisp_Object
1824w32_registry (w32_charset, font_type) 1778w32_registry (LONG w32_charset, DWORD font_type)
1825 LONG w32_charset;
1826 DWORD font_type;
1827{ 1779{
1828 char *charset; 1780 char *charset;
1829 1781
@@ -1837,8 +1789,7 @@ w32_registry (w32_charset, font_type)
1837} 1789}
1838 1790
1839static int 1791static int
1840w32_decode_weight (fnweight) 1792w32_decode_weight (int fnweight)
1841 int fnweight;
1842{ 1793{
1843 if (fnweight >= FW_HEAVY) return 210; 1794 if (fnweight >= FW_HEAVY) return 210;
1844 if (fnweight >= FW_EXTRABOLD) return 205; 1795 if (fnweight >= FW_EXTRABOLD) return 205;
@@ -1852,8 +1803,7 @@ w32_decode_weight (fnweight)
1852} 1803}
1853 1804
1854static int 1805static int
1855w32_encode_weight (n) 1806w32_encode_weight (int n)
1856 int n;
1857{ 1807{
1858 if (n >= 210) return FW_HEAVY; 1808 if (n >= 210) return FW_HEAVY;
1859 if (n >= 205) return FW_EXTRABOLD; 1809 if (n >= 205) return FW_EXTRABOLD;
@@ -1869,8 +1819,7 @@ w32_encode_weight (n)
1869/* Convert a Windows font weight into one of the weights supported 1819/* Convert a Windows font weight into one of the weights supported
1870 by fontconfig (see font.c:font_parse_fcname). */ 1820 by fontconfig (see font.c:font_parse_fcname). */
1871static Lisp_Object 1821static Lisp_Object
1872w32_to_fc_weight (n) 1822w32_to_fc_weight (int n)
1873 int n;
1874{ 1823{
1875 if (n >= FW_EXTRABOLD) return intern ("black"); 1824 if (n >= FW_EXTRABOLD) return intern ("black");
1876 if (n >= FW_BOLD) return intern ("bold"); 1825 if (n >= FW_BOLD) return intern ("bold");
@@ -1881,10 +1830,7 @@ w32_to_fc_weight (n)
1881 1830
1882/* Fill in all the available details of LOGFONT from FONT_SPEC. */ 1831/* Fill in all the available details of LOGFONT from FONT_SPEC. */
1883static void 1832static void
1884fill_in_logfont (f, logfont, font_spec) 1833fill_in_logfont (FRAME_PTR f, LOGFONT *logfont, Lisp_Object font_spec)
1885 FRAME_PTR f;
1886 LOGFONT *logfont;
1887 Lisp_Object font_spec;
1888{ 1834{
1889 Lisp_Object tmp, extra; 1835 Lisp_Object tmp, extra;
1890 int dpi = FRAME_W32_DISPLAY_INFO (f)->resy; 1836 int dpi = FRAME_W32_DISPLAY_INFO (f)->resy;
@@ -2029,8 +1975,7 @@ fill_in_logfont (f, logfont, font_spec)
2029} 1975}
2030 1976
2031static void 1977static void
2032list_all_matching_fonts (match_data) 1978list_all_matching_fonts (struct font_callback_data *match_data)
2033 struct font_callback_data *match_data;
2034{ 1979{
2035 HDC dc; 1980 HDC dc;
2036 Lisp_Object families = w32font_list_family (match_data->frame); 1981 Lisp_Object families = w32font_list_family (match_data->frame);
@@ -2066,8 +2011,7 @@ list_all_matching_fonts (match_data)
2066} 2011}
2067 2012
2068static Lisp_Object 2013static Lisp_Object
2069lispy_antialias_type (type) 2014lispy_antialias_type (BYTE type)
2070 BYTE type;
2071{ 2015{
2072 Lisp_Object lispy; 2016 Lisp_Object lispy;
2073 2017
@@ -2094,8 +2038,7 @@ lispy_antialias_type (type)
2094 2038
2095/* Convert antialiasing symbols to lfQuality */ 2039/* Convert antialiasing symbols to lfQuality */
2096static BYTE 2040static BYTE
2097w32_antialias_type (type) 2041w32_antialias_type (Lisp_Object type)
2098 Lisp_Object type;
2099{ 2042{
2100 if (EQ (type, Qnone)) 2043 if (EQ (type, Qnone))
2101 return NONANTIALIASED_QUALITY; 2044 return NONANTIALIASED_QUALITY;
@@ -2241,12 +2184,8 @@ font_supported_scripts (FONTSIGNATURE * sig)
2241 The full name is in fcname format, with weight, slant and antialiasing 2184 The full name is in fcname format, with weight, slant and antialiasing
2242 specified if they are not "normal". */ 2185 specified if they are not "normal". */
2243static int 2186static int
2244w32font_full_name (font, font_obj, pixel_size, name, nbytes) 2187w32font_full_name (LOGFONT * font, Lisp_Object font_obj,
2245 LOGFONT * font; 2188 int pixel_size, char *name, int nbytes)
2246 Lisp_Object font_obj;
2247 int pixel_size;
2248 char *name;
2249 int nbytes;
2250{ 2189{
2251 int len, height, outline; 2190 int len, height, outline;
2252 char *p; 2191 char *p;
@@ -2317,11 +2256,8 @@ w32font_full_name (font, font_obj, pixel_size, name, nbytes)
2317 is written. If the buffer is not large enough to contain the name, 2256 is written. If the buffer is not large enough to contain the name,
2318 the function returns -1, otherwise it returns the number of bytes 2257 the function returns -1, otherwise it returns the number of bytes
2319 written to FCNAME. */ 2258 written to FCNAME. */
2320static int logfont_to_fcname(font, pointsize, fcname, size) 2259static int
2321 LOGFONT* font; 2260logfont_to_fcname (LOGFONT* font, int pointsize, char *fcname, int size)
2322 int pointsize;
2323 char *fcname;
2324 int size;
2325{ 2261{
2326 int len, height; 2262 int len, height;
2327 char *p = fcname; 2263 char *p = fcname;
@@ -2360,11 +2296,8 @@ static int logfont_to_fcname(font, pointsize, fcname, size)
2360} 2296}
2361 2297
2362static void 2298static void
2363compute_metrics (dc, w32_font, code, metrics) 2299compute_metrics (HDC dc, struct w32font_info *w32_font, unsigned int code,
2364 HDC dc; 2300 struct w32_metric_cache *metrics)
2365 struct w32font_info *w32_font;
2366 unsigned int code;
2367 struct w32_metric_cache *metrics;
2368{ 2301{
2369 GLYPHMETRICS gm; 2302 GLYPHMETRICS gm;
2370 MAT2 transform; 2303 MAT2 transform;
@@ -2482,7 +2415,7 @@ struct font_driver w32font_driver =
2482/* Initialize state that does not change between invocations. This is only 2415/* Initialize state that does not change between invocations. This is only
2483 called when Emacs is dumped. */ 2416 called when Emacs is dumped. */
2484void 2417void
2485syms_of_w32font () 2418syms_of_w32font (void)
2486{ 2419{
2487 DEFSYM (Qgdi, "gdi"); 2420 DEFSYM (Qgdi, "gdi");
2488 DEFSYM (Quniscribe, "uniscribe"); 2421 DEFSYM (Quniscribe, "uniscribe");