1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-16 02:53:11 +01:00
Commit graph

28 commits

Author SHA1 Message Date
Ell
a11a63c067 some GenericFont code style improvements 2021-11-28 00:28:17 +01:00
Ell
293602269b prevent unnecessary allocations in GenericFont 2021-11-27 23:04:06 +01:00
Ell
53b93a34f8 Made TextFormatter string size based on the currently active font and added a formatting code to allow for inline font changes 2021-11-27 22:45:37 +01:00
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
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
Ellpeck
a17301504d added macros to text formatting 2020-07-01 14:30:47 +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
Renamed from MLEM/Extensions/SpriteFontExtensions.cs (Browse further)