1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-06-09 16:19:16 +02:00
Commit graph

32 commits

Author SHA1 Message Date
Ell
9aef994c51 Added GenericFont SplitStringSeparate which differentiates between existing newline characters and splits due to maximum width 2021-10-12 03:23:35 +02:00
Ell
516265bf5b Fixed GenericFont's SplitString using incorrect width for special characters and improved documentation 2021-07-28 17:22:47 +02:00
Ell
14940d39c5 added text alignment options to tokenized strings and paragraphs 2021-06-25 15:23:30 +02:00
Ell
f3b3feec9b updated non-netstandard projects to net5.0 2021-04-22 02:21:36 +02:00
Ell
8078d41724 simplified GenericFont implementation 2021-04-19 14:02:28 +02:00
Ell
e7ab8fefe8 improved performance of SplitString and re-added Zwsp compatibility 2021-04-14 23:13:19 +02:00
Ell
55477c6341 removed Zwsp functionality, which was incomplete and did not work 2021-04-14 00:49:33 +02:00
Ell
37609ade76 fixed DrawString in generic font ignoring text scale for alignment 2021-03-12 20:47:57 +01:00
Ell
b6ef243cf4 GenericFont support for zero-width spaces 2020-12-31 17:22:51 +01:00
Ell
106102adf6 clean up unused using statements 2020-12-14 21:51:27 +01:00
Ell
f63a410cd2 use the actual unicode 1em space in GenericFont 2020-12-08 01:43:52 +01:00
Ell
aaeda825e0 fixed some documentation issues 2020-10-06 20:14:57 +02:00
Ell
b814839458 made GenericFont a GenericDataHolder 2020-09-28 20:38:56 +02:00
Ell
bd43c14a33 copy SpriteFont in GenericSpriteFont so that we don't modify the passed fonts' default character 2020-09-28 02:52:51 +02:00
Ellpeck
a17301504d added macros to text formatting 2020-07-01 14:30:47 +02:00
Ellpeck
d891e19d2a reduce string allocations when rendering text 2020-06-21 23:23:52 +02:00
Ellpeck
7eaa1da860 fixed the new MeasureString in GenericFont not returning an empty size for empty strings 2020-06-20 15:42:36 +02:00
Ellpeck
64b9246aa5 clean up GenericFont changes 2020-06-20 12:12:34 +02:00
Ellpeck
90e0ff55d1 use a custom character for image codes rather than trying to calculate spaces 2020-06-20 01:18:27 +02:00
Ellpeck
deec553b22 code cleanup 2020-06-18 17:24:35 +02:00
Ellpeck
1d38262388 only use nbsp in image codes if the font supports it 2020-06-04 22:18:53 +02:00
Ellpeck
e9cc9b7d99 document raw content and text formatting 2020-05-21 12:53:42 +02:00
Ellpeck
d8daa3779a start on xml documentation, yay 2020-05-20 23:59:40 +02:00
Ellpeck
037ed43410 streamline ui text formatting and paragraph links 2020-05-17 00:10:29 +02:00
Ellpeck
bc61e36ac5 actually append ellipsis to the right end 2020-04-11 15:47:33 +02:00
Ellpeck
e4ba2bc38f allow adding ellipsis to truncatestring 2020-04-11 15:44:55 +02:00
Ellpeck
d5ce920e52 added text aligning to generic fonts 2020-04-11 15:32:01 +02:00
Ellpeck
80f36c78bd a lot of font cleanup 2020-03-28 22:25:06 +01:00
Ellpeck
e39394bce3 finished better text editing my dudes 2019-09-05 18:15:51 +02:00
Ellpeck
226640ef3a simplify text rendering quite a bit after realizing that monogame deals with multiple lines on its own 2019-08-25 19:07:45 +02:00
Ellpeck
b1d41d572c added panels and paragraphs 2019-08-09 19:28:48 +02:00
Ellpeck
82747e1331 added generic font wrapper 2019-08-09 14:26:20 +02:00