View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0005820 | Spring engine | General | public | 2017-10-28 11:11 | 2017-10-31 18:41 | ||||
Reporter | hokomoko | ||||||||
Assigned To | Kloot | ||||||||
Priority | normal | Severity | major | Reproducibility | always | ||||
Status | resolved | Resolution | fixed | ||||||
Product Version | 104.0 +git | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0005820: Lua font glitch | ||||||||
Description | Fonts glitch, see picture | ||||||||
Steps To Reproduce | 1) 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 | ||||||||
Tags | No tags attached. | ||||||||
Checked infolog.txt for Errors | |||||||||
Attached Files |
|
![]() |
|
Kloot (developer) 2017-10-28 21:24 |
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. |
Kloot (developer) 2017-10-31 18:41 |
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 |
![]() |
|||
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 |