Skip to content

Commit

Permalink
TOUCHE: Add two missing accented letters to Spanish charset.
Browse files Browse the repository at this point in the history
The A-acute, I-acute, O-acute and U-acute seem to be missing from the font,
and are now all remapped to their unaccented ASCII variants. I and A
were added by 3033333, and this patch adds O and U.
This is assuming the CP850 encoding, which is not entirely verified.

See bugs #2040311 and #3483383.
  • Loading branch information
wjp committed Feb 4, 2012
1 parent 9f8520f commit e8ef680
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion engines/touche/staticres.cpp
Expand Up @@ -887,6 +887,8 @@ const uint8 Graphics::_freGerFontData[] = {
};

// spanish charset differs from original executable, see tracker item #2040311.
// We remap missing accented upper case letters from CP850 to their unaccented
// ASCII variants. Specifically, 0xB5 -> A, 0xD6 -> I, 0xE0 -> O, 0xE9 -> U.
const uint16 Graphics::_spaFontOffs[] = {
0x0000, 0x0007, 0x0024, 0x0043, 0x0072, 0x00AD, 0x00E0, 0x0113, 0x0124, 0x0141,
0x015E, 0x0191, 0x01C4, 0x01E3, 0x01F8, 0x0215, 0x0232, 0x0269, 0x0286, 0x02BD,
Expand All @@ -907,7 +909,8 @@ const uint16 Graphics::_spaFontOffs[] = {
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0703, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x1954
0x0000, 0x0000, 0x0627, 0x1954, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x097D
};

const int Graphics::_spaFontSize = ARRAYSIZE(Graphics::_spaFontOffs);
Expand Down

0 comments on commit e8ef680

Please sign in to comment.