Commit 4eb22c68 authored by Bill Medland's avatar Bill Medland Committed by Alexandre Julliard

Make the font name and size settings reflect the data in the font file

rather than arbitrary values.
parent 0249fcd5
......@@ -338,8 +338,9 @@ int l_ascent = return_data_value(dfShort, &cpe_font_struct->hdr.fi.dfAscent);
point_size = 10 * return_data_value(dfShort, &cpe_font_struct->hdr.fi.dfPoints );
dpi = (l_cellheight * 720) / point_size;
fprintf(fs, "%d-%d-%d-%d-", l_cellheight, 10*l_cellheight, 72, 72);
/* point_size, dpi, dpi); */
fprintf(fs, "%d-%d-%d-%d-",l_cellheight, point_size,
return_data_value (dfShort, &cpe_font_struct->hdr.fi.dfHorizRes),
return_data_value (dfShort, &cpe_font_struct->hdr.fi.dfVertRes));
/* spacing */
......@@ -379,7 +380,7 @@ int l_ascent = return_data_value(dfShort, &cpe_font_struct->hdr.fi.dfAscent);
else return ERROR_DATA;
fprintf(fs, "SIZE %d %d %d\n",
l_cellheight,
return_data_value(dfShort, &cpe_font_struct->hdr.fi.dfPoints ),
return_data_value(dfShort, &cpe_font_struct->hdr.fi.dfHorizRes),
return_data_value(dfShort, &cpe_font_struct->hdr.fi.dfVertRes)); /* dfVertRes[2] */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment