Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MdeModulePkg: remove garbage pixels in LaffStd glyphs #3330

Closed
wants to merge 1 commit into from
Closed

MdeModulePkg: remove garbage pixels in LaffStd glyphs #3330

wants to merge 1 commit into from

Conversation

jengelh
Copy link

@jengelh jengelh commented Sep 13, 2022

gb

Signed-off-by: Jan Engelhardt <jengelh@inai.de>
@lersek lersek closed this Jan 6, 2023
@jengelh
Copy link
Author

jengelh commented Jan 7, 2023

Before-and-after:

00a4
00a7
00d7
00de
00e0

self-extract fragement:

int main()
{
	mkdir("uefi", 0777);
	for (const EFI_NARROW_GLYPH *g = gUsStdNarrowGlyphData; g->UnicodeWeight != 0; ++g) {
		char buf[32];
		sprintf(buf, "uefi/%04x.txt", g->UnicodeWeight);
		FILE *fp = fopen(buf, "w");
		fprintf(fp, "PCLT\n8 %zu\n", sizeof(g->GlyphCol1));
		for (int y = 0; y < (int)sizeof(g->GlyphCol1); ++y) {
			for (int x = 7; x >= 0; --x)
				fprintf(fp, g->GlyphCol1[y] & (1 << x) ? "##" : "..");
			fprintf(fp, "\n");
		}
		fclose(fp);
	}
	return 0;
}

@jengelh
Copy link
Author

jengelh commented Jan 20, 2023

done in #3938

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants