|
de12ee6bcd
|
Move some drawing functionality into internal package
|
2024-09-20 00:07:32 -04:00 |
|
|
4be5154df0
|
Add RecommendedHeight to TypeSetter
|
2024-09-19 23:57:23 -04:00 |
|
|
197346d730
|
Add algorithm for figuring out the recommended height of text
|
2024-09-19 23:54:08 -04:00 |
|
|
ef8944f2a6
|
Measure tokens in the benchmarks
|
2024-09-19 22:08:37 -04:00 |
|
|
4c42b12cc1
|
Have the test example stress the flow algorithm a bit more
|
2024-09-19 21:22:21 -04:00 |
|
|
6efe40efc2
|
Sort methods of TypeSetter alphabetically
|
2024-09-19 21:10:02 -04:00 |
|
|
17385c4c9a
|
Add RunesWithNull iterator
|
2024-09-19 21:08:14 -04:00 |
|
|
e38cac8e3b
|
Benchmark text flow
|
2024-09-19 21:05:18 -04:00 |
|
|
90b2e49664
|
Fix doc comment on TypeSetter.Runes
|
2024-09-19 10:43:50 -04:00 |
|
|
2ae07af710
|
Add little TODO
|
2024-09-19 10:43:13 -04:00 |
|
|
ce21b34f86
|
Fix LayoutBoundsSpace
|
2024-09-19 10:42:48 -04:00 |
|
|
ff8f86e034
|
5 is the appears to be the sweet spot for average token len
|
2024-09-19 09:40:00 -04:00 |
|
|
288a1fb9ef
|
Fix token slice size estimation to massively reduce waste
|
2024-09-19 09:36:01 -04:00 |
|
|
a91816df6c
|
Benchmarks report token waste
|
2024-09-19 09:33:14 -04:00 |
|
|
aa486fe660
|
Report waste as a fraction
|
2024-09-19 09:20:44 -04:00 |
|
|
cde84b8756
|
Benchmarks report len, cap, and waste of runes slice
|
2024-09-19 09:18:11 -04:00 |
|
|
013b121d46
|
Made Chinese lorem ipsum same # of runes as Latin lorem ipsum
|
2024-09-19 09:06:29 -04:00 |
|
|
85c48461c7
|
Add parsing benchmarks for latin and chinese text
|
2024-09-19 09:03:09 -04:00 |
|
|
0342e25456
|
LayoutBounds can have a negative start
This causes the LayoutBounds of center-aligned, left-aligned text
to be more accurate
|
2024-09-19 08:49:49 -04:00 |
|
|
f0adca5c37
|
Minimum size is calculated from extents instead of vice versa
|
2024-09-19 08:31:21 -04:00 |
|
|
56024caaf5
|
Fix LayoutBounds calculation
More work is needed for LayoutBoundsSpace
|
2024-09-19 08:07:39 -04:00 |
|
|
5171cbac16
|
Fix the memory problem
|
2024-09-18 23:48:21 -04:00 |
|
|
300c28853d
|
Add another memory test just to be sure
|
2024-09-18 23:37:57 -04:00 |
|
|
6fabfd9fd0
|
Test whether tokens reference the same memory as runes
|
2024-09-18 23:28:27 -04:00 |
|
|
6b6e485aca
|
Add documentation on what the DrawBounds colors mean
|
2024-09-18 22:54:25 -04:00 |
|
|
89c23a8947
|
Add test example
|
2024-09-10 15:52:56 -04:00 |
|
|
0cb6e28542
|
Add drawing functions
|
2024-09-10 15:52:46 -04:00 |
|
|
5dee53b8a9
|
Add incomplete TypeSetter struct
|
2024-09-10 15:52:33 -04:00 |
|
|
9c7732c95b
|
Add incomplete reflow stage
|
2024-09-10 15:52:18 -04:00 |
|
|
37554dd719
|
Add measurement stage
|
2024-09-10 11:20:08 -04:00 |
|
|
569defdb36
|
Add parsing stage
|
2024-09-10 11:19:57 -04:00 |
|
|
0c9d50ebcd
|
Remove setter.go
|
2024-09-10 11:19:31 -04:00 |
|
|
943fc57080
|
Remove old files from repository root
|
2024-09-10 11:18:13 -04:00 |
|
|
0592fe32b6
|
Add .editorconfig because why not
|
2024-09-10 11:17:52 -04:00 |
|
|
56cf7e3fb8
|
Update README.md
|
2024-09-10 11:17:29 -04:00 |
|
|
650ecf0c2e
|
Back up old files
|
2024-09-10 11:17:10 -04:00 |
|
|
aa00b93bd3
|
The new alignment method works
|
2024-09-06 01:22:51 -04:00 |
|
|
8a22afe95a
|
Restructure alignment process
|
2024-09-06 01:00:28 -04:00 |
|
|
ba1438b700
|
SetTabWidth now takes in an Int26_6, and doesn't use emspaces
|
2024-09-06 00:33:51 -04:00 |
|
|
2aa1d355ec
|
Add SetTabWidth to Setter (non-functional currently)
|
2024-09-06 00:30:15 -04:00 |
|
|
6e3e288628
|
Change ReccomendedHeightFor -> RecommendedHeight
Closes #1
|
2024-09-06 00:23:44 -04:00 |
|
|
f2da861f1b
|
Fix README.md
|
2024-09-06 00:23:36 -04:00 |
|
|
0beef86c58
|
TypeSetter.forInternal resets last known rune bound on new line
Closes #5
|
2024-09-03 21:17:29 -04:00 |
|
|
6a60458484
|
Create another For iterator that leaves out the fake null rune
Apparently it was intended behavior. Closes #4
|
2024-09-03 18:38:01 -04:00 |
|
|
021dd288b6
|
Drawer now draws tofu
Closes #2
|
2024-09-03 17:59:07 -04:00 |
|
|
b0e80ce961
|
DoWord adds a RuneLayout for invalid characters
Defaults to an emspace for the width. Progress on #2
|
2024-09-03 17:04:57 -04:00 |
|
|
a1bd411e43
|
Fix bug where vertically aligned text would creep downward
|
2024-05-05 02:35:25 -04:00 |
|
|
a54d40b52c
|
Add godoc badge to README.md
|
2024-05-05 06:14:39 +00:00 |
|
|
8d9e0e1340
|
TypeSetter can now do vertical text alignment yay
|
2023-09-15 15:54:46 -04:00 |
|
|
92cb318972
|
make pumkin alllll better!
|
2023-09-15 15:22:44 -04:00 |
|