46bfc92051
Refactor: function to turn eFont into sf::Font
2025-03-16 14:03:53 -04:00
1866fff3ce
Cache measurement of space in TextStyle
...
I noticed a ton of string_length() calls on empty space strings,
each one making an sf::Text object to measure. I thought caching
the result would make the slow dialogs open faster but it didn't.
Still might as well do it, though.
2025-03-16 14:03:53 -04:00
823fb8904d
Set scale-aware text size when initializing the object
2025-03-06 21:23:57 -05:00
01c11518cc
Fix scaled text offset in fullscreen modes. Fix #651
2025-02-22 11:21:47 -05:00
32a532b7eb
draw scale-aware text clipped to the adjusted clip_rect
2025-02-17 13:03:55 -06:00
d78793c979
store clip_rects of RenderTextures
2025-02-17 12:33:08 -06:00
9c70859244
Fix C++11 compiler error
2025-02-15 15:16:39 -06:00
78d10987fe
draw scale-aware text onto RenderTextures
2025-02-15 15:16:15 -06:00
6fa63307b1
Draw scale-aware text onto windows
2025-02-15 15:12:25 -06:00
1103715faf
add an option to show pipes to TextStyle
2025-02-09 20:28:06 -06:00
0ef3ad81d9
Recast hint for spellcasters
2025-01-20 13:42:03 -06:00
37640bf349
fix compiler warnings
2025-01-20 09:41:29 -05:00
a551da6299
add very rudimentary right-alignment text option
2024-11-16 17:47:07 -06:00
a725dc606a
Fix #455 ( #467 )
...
Also fix #454 and #427
2024-11-16 15:44:12 -05:00
e2142158af
fix #465
2024-11-10 11:33:02 -05:00
13a62445a3
Fix some compile warnings
2024-08-24 20:14:40 -04:00
d81e613ea1
more DRY overload function implementation
2024-08-22 09:47:06 -04:00
c08a10867c
cTextMsg pre-calculate layout
2024-08-22 09:47:06 -04:00
5f97d8bfb3
refactor win_draw_string() so line wrapping can be cached
2024-08-22 09:47:06 -04:00
1654ac69aa
Squash a too-verbose log message
2023-01-21 16:42:54 -05:00
5b2561d034
Disable header maps in Xcode 12
2022-07-12 20:35:41 -04:00
259e4ac125
Adjust the hilited string rendering to be less reliant on mysterious magic numbers
...
It still adds a mysterious offset to all text, but the returned rectns are now perfectly aligned to redraw the hilited string.
2020-12-19 17:32:46 -05:00
542c037342
Integrate a new resource manager which should have better performance
2020-01-26 11:53:19 -05:00
9c69e006d8
Refactor rendering to use an SFML view for placing the main UI within the overall interface
2017-09-04 14:36:55 -04:00
c2ce2a2cd1
Split up the graphtool files
2017-04-14 15:43:07 -04:00