Open Daneel53 opened 2 months ago
I assume this is done for compatibility with SDF fonts off: So it will have to depend on current font mode (or better, if this can be implemented, restrict text drawing to scrollable rectangle, which would work for all fonts, specially variable-spaced ones)
I suppose that 29 characters always were enough for the English names, whatever the font is. So, for English, no matter if the line length is pushed to 50, additional chars shall not be used. With other languages, we just cannot play with SDF font because this font don't have any character with accent, which make it totally not usable as your example above with esoteric characters that replace the é and the â shows clearly. So, in other languages than English, SDF font is not to be taken into account, we cannot use it.
I think that we can just change this value for the moment, it is clearly better than to have end of lines cut whatever the font is. After that, if somebody have the time and willing to implement a more clever solution that will work for any font, it will still be possible.
After having entered a search clue on the travel map, the resulting list has lines cut at 29 characters. This is probably an issue only for other languages than English that are more verbose.
This comes from the script DaggerfallTravelMapWindow.cs where the listbox is explicitely created with MaxCharacters = 29.
I changed the 29 for 50 with the Unity editor and the list is is now correctly displayed.
Please change this value in DFU code.