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:
parent
b2f7f94f3c
commit
129e5caa6e
2 changed files with 4300 additions and 14 deletions
|
@ -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;
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue