View Issue Details

IDProjectCategoryView StatusLast Update
0005097Dwarf FortressCreaturespublic2015-12-15 01:55
ReporterKattel Assigned ToBaughn  
PrioritynormalSeverityminorReproducibilityhave not tried
Status assignedResolutionopen 
OSwin 7 
Product Version0.34.01 
Summary0005097: Names overwriting text with TrueType
Descriptionnames of creatures seem to be overflowing into next column in units screen of fort mode.
Steps To Reproducehave a named zombie creature die and be re-zombified. its name stretches across all the columns obscuring the other text.
TagsNo tags attached.

Relationships

related to 0005078 resolvedToady One Zombies re-animated multiple times, resulting in malformed creature/corpse names 
related to 0005696 feedbackuser6 Strange gaps in report texts 

Activities

user6

2012-02-15 07:11

  ~0019631

Reminder sent to: Kattel

Please upload a save demonstrating this problem to http://dffd.wimbli.com/

Does it depend on TrueType being on/off in init.txt?

krenshala

2012-03-07 17:29

reporter   ~0021239

Last edited: 2012-03-07 17:30

Foot, in the Phoebus thread we believe we have isolated what is going on here. The specific posts from Phoebus are http://www.bay12forums.com/smf/index.php?topic=57557.msg3070385#msg3070385 and the one immediately after it (which includes screenshots).

Quoting Phoebus:

Edit.:
Ok, I've found why you're getting so much vanishing text.
When the TTF engine writes text, it reserves and draws over an area of the screen equal to the size of the text if it was drawn without TTF.
If that area overlaps text on the right, the text on the right vanishes.

The reason why it does that is a bug from the 31.03 update:

Quote
    (*) SDL version: TrueType text will now overwrite properly in some adventure mode circumstances (Baughn)

That fix also overwrites text that it shouldn't causing vanishing text.

That source of vanishing text has nothing to do with the graphic set.

user6

2012-03-07 17:34

  ~0021240

Reminder sent to: Baughn

TrueType overwiting text inappropriately and stuff. Details and screenshots here: http://www.bay12forums.com/smf/index.php?topic=57557.msg3070385#msg3070385

Baughn

2012-03-08 16:34

manager   ~0021286

Reminder sent to: Toady One

Yes, okay. What to do...

...

Hm. I suppose I can make TTF behave differently in fort-mode than in adventure-mode, but that really sticks in my craw. More to the point, it'd be hard to maintain and debug for everyone involved.

The better option, probably, is for graphicst::addst to return the number of tiles it just overwrote, and explicitly add black space if that's necessary. Not knowing how the addst client code in adventure mode looks, I can't say how nice a solution that'd be.

Another option would be to explicitly pass along a boolean telling it to pad the string or not, but that's barely any better than just distinguishing modes.

Thoughts?

Musaab

2012-03-09 00:32

reporter   ~0021299

This bug, in my opinion, is one of the most annoying I've encountered in a long while. Please put emphasis on this one for a fix real soon.

Kijiro

2012-03-09 13:41

reporter   ~0021314

I seem to encounter this bug most often when assigning animals to a pasture. I have also noticed than when naming things, the cursor is farther to the right than it should be.

krenshala

2012-03-10 14:00

reporter   ~0021342

Last edited: 2012-03-11 11:18

Baughn/Footkerchief, I've found out something else with this issue:

When assigning dwarves to my militia, I would get the hidden text bug. It looks to me like the width of the space allocated is double what it should be.

Took a screenshot, and measured -- sure enough, it fits what I'm seeing:
http://i.imgur.com/Zx7Sf.png
For each name, the red and green lines are the same length. The green is a copy of the red shifted over to extend its line.

[edit] Just tried this with a non-fixed width font (per a correction from Phoebus) and it is the width of the tilebased string being blacked, not double the TTF string length. I can post a screenshot of that as well if needed, though the one linked above should show this as well.

Musaab

2012-03-13 03:30

reporter   ~0021436

Any updates on this, Baughn?

Musaab

2012-03-27 03:10

reporter   ~0021783

This issue persists even with the options on the title screen.

Musaab

2012-05-09 01:06

reporter   ~0022459

Anyone home?

randyshipp

2012-06-15 17:01

reporter   ~0023022

Agreed...experiencing exactly this problem and it does make the Pen/Pasture assignment screen very annoying to use.

Leonidas

2012-07-25 23:01

reporter   ~0023359

I have this problem in many areas of fortress mode. It's a partial workaround to give everyone short nicknames that overwrite their longer first names. My biggest problem is with nobles, because they have big blobs of text after their names. When my Captain of the Guard was injured, I didn't realize the severity of his injuries because his long name was wiping out several of the symbols on the Heath Care screen. Rolling the screen left to right eventually revealed them.

Pufferfish

2012-07-26 14:20

reporter   ~0023363

I can confirm it in my game, with truefont on - it's fixed when I have it off, both Ironhand and phoebus graphic tilesets. It not only affects names, but in some cases in workshops, it'll overwrite the active/repeat letters. It's annoying, really, but the workaround is simple. I just miss the easily readable words. Quite a bit actually.

Qrox

2015-03-14 04:33

reporter   ~0032374

This bug still persists after such a long time... Please consider prioritize a fix for this. I'm not clear how the game handles truetype font, but from my personal programming experience, perhaps you can use some utilities to get the *actual* pixel length of the rendered string, and only fill that length of background (or better, do not draw the background if the UI has already filled the screen entirely)

Add Note

Note

Issue History

Date Modified Username Field Change
2012-02-14 21:45 Kattel New Issue
2012-02-15 07:11 user6 Note Added: 0019631
2012-02-15 07:12 user6 Relationship added related to 0005078
2012-03-07 17:29 krenshala Note Added: 0021239
2012-03-07 17:30 krenshala Note Edited: 0021239
2012-03-07 17:34 user6 Note Added: 0021240
2012-03-08 15:34 user6 Status new => assigned
2012-03-08 15:34 user6 Assigned To => Baughn
2012-03-08 15:35 user6 Summary Names overwriting text => Names overwriting text with TrueType
2012-03-08 16:34 Baughn Note Added: 0021286
2012-03-09 00:32 Musaab Note Added: 0021299
2012-03-09 13:41 Kijiro Note Added: 0021314
2012-03-10 14:00 krenshala Note Added: 0021342
2012-03-11 11:18 krenshala Note Edited: 0021342
2012-03-13 03:30 Musaab Note Added: 0021436
2012-03-24 07:41 user6 Relationship added related to 0005696
2012-03-27 03:10 Musaab Note Added: 0021783
2012-05-09 01:06 Musaab Note Added: 0022459
2012-06-15 17:01 randyshipp Note Added: 0023022
2012-07-25 23:01 Leonidas Note Added: 0023359
2012-07-26 14:20 Pufferfish Note Added: 0023363
2015-03-14 04:33 Qrox Note Added: 0032374