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

ImGui Font Issue #16

Open
pogrammerX opened this issue Oct 20, 2023 · 2 comments
Open

ImGui Font Issue #16

pogrammerX opened this issue Oct 20, 2023 · 2 comments

Comments

@pogrammerX
Copy link

Hello, im trying to compile and run this, except i get a error at this code in the bigg library:

	io.Fonts->AddFontDefault();
	io.Fonts->GetTexDataAsRGBA32( &data, &width, &height );
	imguiFontTexture = bgfx::createTexture2D( ( uint16_t )width, ( uint16_t )height, false, 1, bgfx::TextureFormat::BGRA8, 0, bgfx::copy( data, width*height * 4 ) );
	imguiFontUniform = bgfx::createUniform( "s_tex", bgfx::UniformType::Sampler );```
	
for some reason data is always "ÿÿÿÿÿÿÿÿÿÿÿ", wdith and height seem to be correct
@pezcode
Copy link
Owner

pezcode commented Oct 20, 2023

I'm afraid I can't reproduce anything related to that. At first I figured the assets/fonts folder maybe went missing, but the code you quoted loads the default imgui font from an array in memory and doesn't even touch the file system. Very mysterious 👻

What is the exact error message you're getting?

@pogrammerX
Copy link
Author

No error message only "ÿÿÿÿÿÿÿÿÿÿÿ"

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

No branches or pull requests

2 participants