mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 21:21:06 +01:00 
			
		
		
		
	Merge branch 'master' into docking
# Conflicts: # docs/CHANGELOG.txt # examples/example_glfw_vulkan/main.cpp # examples/example_sdl_vulkan/main.cpp # imgui.cpp
This commit is contained in:
		| @@ -2313,8 +2313,8 @@ bool    ImFontAtlasBuildWithStbTruetype(ImFontAtlas* atlas) | ||||
|             const int codepoint = src_tmp.GlyphsList[glyph_i]; | ||||
|             const stbtt_packedchar& pc = src_tmp.PackedChars[glyph_i]; | ||||
|             stbtt_aligned_quad q; | ||||
|             float dummy_x = 0.0f, dummy_y = 0.0f; | ||||
|             stbtt_GetPackedQuad(src_tmp.PackedChars, atlas->TexWidth, atlas->TexHeight, glyph_i, &dummy_x, &dummy_y, &q, 0); | ||||
|             float unused_x = 0.0f, unused_y = 0.0f; | ||||
|             stbtt_GetPackedQuad(src_tmp.PackedChars, atlas->TexWidth, atlas->TexHeight, glyph_i, &unused_x, &unused_y, &q, 0); | ||||
|             dst_font->AddGlyph(&cfg, (ImWchar)codepoint, q.x0 + font_off_x, q.y0 + font_off_y, q.x1 + font_off_x, q.y1 + font_off_y, q.s0, q.t0, q.s1, q.t1, pc.xadvance); | ||||
|         } | ||||
|     } | ||||
| @@ -2334,6 +2334,7 @@ void ImFontAtlasBuildSetupFont(ImFontAtlas* atlas, ImFont* font, ImFontConfig* f | ||||
|         font->ClearOutputData(); | ||||
|         font->FontSize = font_config->SizePixels; | ||||
|         font->ConfigData = font_config; | ||||
|         font->ConfigDataCount = 0; | ||||
|         font->ContainerAtlas = atlas; | ||||
|         font->Ascent = ascent; | ||||
|         font->Descent = descent; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user