mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
GRAPHICS: Add Latin Extended-A to GUI font
This fixes incorrectly rendered characters in the about crawler. The following BDF file was used as source: https://opensource.apple.com/source/X11fonts/X11fonts-10.2/font-adobe-75dpi/font-adobe-75dpi-X11R7.0-1.0.0/helvB12.bdf
This commit is contained in:
@@ -189,7 +189,7 @@ int main(int argc, char *argv[]) {
|
||||
if (sscanf(line.c_str(), "CHARS %d", &charsAvailable) != 1)
|
||||
error("Invalid CHARS");
|
||||
|
||||
font.numCharacters = 256;
|
||||
font.numCharacters = 384;
|
||||
font.bitmaps = new unsigned char *[font.numCharacters];
|
||||
memset(font.bitmaps, 0, sizeof(unsigned char *) * font.numCharacters);
|
||||
font.advances = new unsigned char[font.numCharacters];
|
||||
@@ -289,10 +289,10 @@ int main(int argc, char *argv[]) {
|
||||
}
|
||||
}
|
||||
} else if (line == "ENDCHAR") {
|
||||
if (encoding == -1 || !hasWidth || !hasBitmap)
|
||||
if (!hasWidth || !hasBitmap)
|
||||
error("Character not completly defined");
|
||||
|
||||
if (encoding < font.numCharacters) {
|
||||
if (encoding >= 0 && encoding < font.numCharacters) {
|
||||
font.advances[encoding] = xAdvance;
|
||||
font.boxes[encoding] = bbox;
|
||||
font.bitmaps[encoding] = bitmap;
|
||||
|
||||
+4297
-11
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user