Skip to content
Snippets Groups Projects
Commit 5c13c218 authored by Stas Sergeev's avatar Stas Sergeev Committed by Alexandre Julliard
Browse files

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

line, even if autodetected.
parent 04da8b8f
Branches
Tags
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment