Cluster icon indicating copy to clipboard operation
Cluster copied to clipboard

ImGui Font Issue

Open pogrammerX opened this issue 1 year ago • 2 comments

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

pogrammerX avatar Oct 20 '23 08:10 pogrammerX

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?

pezcode avatar Oct 20 '23 15:10 pezcode

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

pogrammerX avatar Nov 05 '23 14:11 pogrammerX