Skip to content
Permalink
Browse files

- added a fallback mapping for the typographic upper quotation mark t…

…o the generic form
  • Loading branch information...
coelckers committed Mar 12, 2019
1 parent fd4295b commit 7f8b048347bf65a722c5b79875bd310e3f975f4c
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/gamedata/fonts/v_font.cpp
@@ -857,6 +857,11 @@ int stripaccent(int code)
static const uint16_t u200map[] = {0xc4, 0xe4, 0xc2, 0xe2, 0xcb, 0xeb, 0xca, 0xea, 0xcf, 0xef, 0xce, 0xee, 0xd6, 0xf6, 0xd4, 0xe4, 'R', 'r', 'R', 'r', 0xdc, 0xfc, 0xdb, 0xfb, 0x15e, 0x15f, 0x162, 0x163};
return u200map[code - 0x200];
}
else if (code == 0x201d)
{
// Map the typographic upper quotation mark to the generic form
code = '"';
}

// skip the rest of Latin characters because none of them are relevant for modern languages.

2 comments on commit 7f8b048

@Nemrtvi

This comment has been minimized.

Copy link
Contributor

Nemrtvi replied Mar 13, 2019

I should mention that it only looks the same in Doom.

@coelckers

This comment has been minimized.

Copy link
Owner Author

coelckers replied Mar 14, 2019

This is a fallback for fonts that do not provide the character. The base quotation mark is always better than nothing and should be made the fallback for the other ones as well, now that I think about it

Please sign in to comment.
You can’t perform that action at this time.