2025-07-19 21:54 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0005820Spring engineGeneralpublic2017-10-31 18:41
Reporterhokomoko 
Assigned ToKloot 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version104.0 +git 
Target VersionFixed in Version 
Summary0005820: Lua font glitch
DescriptionFonts glitch, see picture
Steps To Reproduce1) Start game of Zero-K $VERSION (or probably earlier) with latest dev
2) Press Alt+F11 to show the widget selector
3) Hover over the widget names
4) All fonts on screen should glitch
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0018570

Kloot (developer)

for some reason this only happens when hovering over three specific widgets (cmd_customformations2.lua, cmd_commandinsert.lua, cmd_area_attack_tweak.lua) that contain embedded color-code characters in their description strings, e.g. the "•" on https://github.com/ZeroK-RTS/Zero-K/blob/08159f10bb784f217b63248d79b445505ad63cc5/LuaUI/Widgets/cmd_customformations2.lua#L5 representing \xe2\x80\xa2 or R=226, G=128, B=162.

however in both 103.0 and 104.0 they appear to be entirely ignored, the tooltip text looks the same with or without them.

~0018593

Kloot (developer)

Fix 3252510f3b3e2b879db888c4f12f3726e54f1264 committed to develop branch: fix 0005820 (broken by 3bd78acb00cab732af4278ed324c7ee5dbc7c517)

GetGlyph can cause the font-texture size to change in the
middle of adding quads, which means scaling has to happen
in End()

additionally Font::{Begin,Print,End} can be wrapped inside
a display list (will be deprecated later) so any immediate
scaling recorded into it would only be valid so long as no
size change took place, repo: spring changeset id: 9157
+Notes

-Issue History
Date Modified Username Field Change
2017-10-28 11:11 hokomoko New Issue
2017-10-28 11:11 hokomoko File Added: fontglitch.jpg
2017-10-28 11:11 hokomoko File Added: infolog.txt
2017-10-28 21:24 Kloot Note Added: 0018570
2017-10-29 14:44 Kloot Assigned To => Kloot
2017-10-29 14:44 Kloot Status new => assigned
2017-10-31 18:41 Kloot Changeset attached => spring develop 3252510f
2017-10-31 18:41 Kloot Note Added: 0018593
2017-10-31 18:41 Kloot Status assigned => resolved
2017-10-31 18:41 Kloot Resolution open => fixed
+Issue History