Line breaker

Updating the line breaker to support:
- forced line breaks (return characters)
- store break points in context of runs (no searching when breaking)
- perform alignment (center/left/right)

In order to implement tests for this in Rive, I moved the Harfbuzz shaper into Rive (conditionally compiled out) but now we can test line-breaking logic in Rive core.

Since I had to update some of the build scripts, I ran the same new premake formatter we've been using.

<img width="910" alt="CleanShot 2022-09-19 at 21 03 53@2x" src="https://user-images.githubusercontent.com/454182/191164998-6b7b131b-b624-41c7-81d2-c2e01a050680.png">

Diffs=
a1d921c85 Line breaker (#4249)
This commit is contained in:
luigi-rosso
2022-09-23 23:10:03 +00:00
parent de8474c5d2
commit 8f690ee101
29 changed files with 994 additions and 396 deletions

View File

@@ -58,7 +58,7 @@ jobs:
run: |
cd dev/test
C:\premake5.exe vs2022
MSBuild rive_tests.sln
MSBuild rive.sln
build\bin\debug\tests.exe
build-macos: