Kae
12a28d5345
fix: last minor text wrapping bug
2024-04-04 15:09:40 +11:00
Kae
be676518f4
fix rare text wrapping bug in the chat box
...
also removed unnecessary leftover variables from when text wrapping used to always create a StringList
2024-04-03 12:19:55 +11:00
Kae
84a2d8f7f8
change fonts to woff2
2024-03-25 12:49:18 +11:00
Kai Blaschke
cd23817bf1
Fixed remaining compiler warnings
...
Some warnings (e.g. in Opus and the tests) can't be fixed, only suppressed.
2024-02-28 18:30:27 +01:00
Kai Blaschke
431a9c00a5
Fixed a huge amount of Clang warnings
...
On Linux and macOS, using Clang to compile OpenStarbound produces about 400 MB worth of warnings during the build, making the compiler output unreadable and slowing the build down considerably.
99% of the warnings were unqualified uses of std::move and std::forward, which are now all properly qualified.
Fixed a few other minor warnings about non-virtual destructors and some uses of std::move preventing copy elision on temporary objects.
Most remaining warnings are now unused parameters.
2024-02-19 16:55:19 +01:00
Kae
2a204b384f
Add optional alpha threshold option for fonts
2023-08-04 23:47:52 +10:00
Kae
cb19eef701
Add character swapping (no GUI yet)
2023-07-22 22:31:04 +10:00
Kae
a45d16b4ed
Cache font directives
2023-07-04 06:01:29 +10:00
Kae
081dd693ca
Add 1-px padding around font and round to fix jitter
2023-07-03 20:07:16 +10:00
Kae
d018957b09
Fix font glyph generation to work correctly with other fonts
2023-07-03 14:21:51 +10:00
Kae
17af21fd42
use raw wrapWidth ptr instead of Maybe
2023-07-02 00:52:36 +10:00
Kae
210d6326fc
Fix splitting bug and optimize a little
2023-07-02 00:36:32 +10:00
Kae
5a56f8b81a
Re-optimize text splitting while maintaining vanilla behavior
2023-07-01 23:20:25 +10:00
Kae
e29a46d100
Fix text wrapping splitting inside of words with color codes in them
2023-07-01 14:01:27 +10:00
Kae
d5fbd2001b
RenderPrimitive micro-optimizations
2023-06-30 04:34:10 +10:00
Kae
1e213aac5f
Decimal zoom with lerp
2023-06-29 07:05:01 +10:00
Kae
a78102c2a9
Update StarTextPainter.cpp
2023-06-29 02:42:05 +10:00
Kae
48ec889579
TextPainter now uses StringView
2023-06-28 20:08:11 +10:00
Kae
152af87655
Fix broken regex, make game timestep non-const
2023-06-28 00:20:22 +10:00
Kae
332983c97b
The Formatting String Catastrophe
2023-06-27 20:23:44 +10:00
LDA
c9e889723b
resolved most of the compiler warnings/errors under gcc
...
also update xxhash and tinyformat
2023-06-26 11:58:35 -07:00
Kae
0135629301
small cleanup in TextPainter
2023-06-23 19:32:41 +10:00
Kae
92ef4dba0f
fonts can reload now
2023-06-21 23:13:37 +10:00
Kae
f0fec34dc9
The Fontpocalypse
...
I hate it
2023-06-21 22:29:40 +10:00
Kae
865f9a328a
Fix glyph width issue with custom fonts
...
haha woopsies!!
2023-06-21 20:40:40 +10:00
Kae
ee296e3381
font directives bwahahaha
2023-06-21 20:29:23 +10:00
Kae
8dce334931
custom fonts!!
2023-06-21 19:46:23 +10:00
Kae
bd783d3195
make the chat really pretty!!
...
also slightly optimized text shadow rendering, made sure glyphs with directives stay centered and added two extra Lua arguments to canvas.drawText
2023-06-21 00:59:41 +10:00
Kae
6352e8e319
everything everywhere
...
all at once
2023-06-20 14:33:09 +10:00