Commit 5c13c218 authored by Stas Sergeev's avatar Stas Sergeev Committed by Alexandre Julliard

Make it possible to change the encoding of fonts from the command

line, even if autodetected.
parent 04da8b8f
......@@ -352,6 +352,8 @@ int l_ascent = return_data_value(dfShort, cpe_font_struct->hdr.dfAscent);
/* charset */
if( g_lpstrCharSet ) fprintf(fs, "%s\n", g_lpstrCharSet);
else
switch( cpe_font_struct->hdr.dfCharSet[0] )
{
/* Microsoft just had to invent its own charsets! */
......@@ -370,12 +372,8 @@ int l_ascent = return_data_value(dfShort, cpe_font_struct->hdr.dfAscent);
default:
case OEM_CHARSET:
if( !g_lpstrCharSet )
{
fputs("Undefined charset, use -c option.\n", stderr);
return ERROR_DATA;
}
fprintf(fs, "%s\n", g_lpstrCharSet);
}
}
else return ERROR_DATA;
......
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