Skip to content

Commit 155d3b7

Browse files
committed
Merge branch 'main' of github.com:FosterFramework/Foster
2 parents 0cb8d9a + 337ae50 commit 155d3b7

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

.github/workflows/build-libs.yml

+12-4
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ jobs:
2020
- os: windows-latest
2121
arch: x64
2222
lib: x64/FosterPlatform.dll
23+
- os: windows-latest
24+
arch: arm64
25+
lib: arm64/FosterPlatform.dll
2326
- os: macos-latest
2427
arch: x64-arm64
2528
lib: osx/libFosterPlatform.dylib
@@ -66,12 +69,12 @@ jobs:
6669
sudo apt-get update
6770
sudo apt-get install -y libsdl2-dev:armhf libwayland-dev:armhf libegl-dev:armhf libdrm-dev:armhf libxkbcommon-dev:armhf libpulse-dev:armhf
6871
- name: CMake Configure
69-
if: ${{ matrix.arch != 'arm64' && matrix.arch != 'arm32' }}
72+
if: ${{ !(runner.os == 'Linux' && matrix.arch == 'arm64') && !(runner.os == 'Linux' && matrix.arch == 'arm32') }}
7073
run: cmake -B build -S Platform
71-
- name: CMake Configure (arm64)
74+
- name: CMake Configure (Linux-arm64)
7275
if: ${{ runner.os == 'Linux' && matrix.arch == 'arm64' }}
7376
run: PKG_CONFIG_PATH=/usr/lib/aarch64-linux-gnu/pkgconfig cmake -B build -S Platform -DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc -DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g++ -DCMAKE_SYSTEM_PROCESSOR=aarch64 -DCMAKE_SYSTEM_NAME=Linux
74-
- name: CMake Configure (arm32)
77+
- name: CMake Configure (Linux-arm32)
7578
if: ${{ runner.os == 'Linux' && matrix.arch == 'arm32' }}
7679
run: PKG_CONFIG_PATH=/usr/lib/arm-linux-gnueabihf/pkgconfig cmake -B build -S Platform -DCMAKE_C_COMPILER=arm-linux-gnueabihf-gcc -DCMAKE_CXX_COMPILER=arm-linux-gnueabihf-g++ -DCMAKE_SYSTEM_PROCESSOR=armv7l -DCMAKE_SYSTEM_NAME=Linux
7780
- name: CMake Build
@@ -88,11 +91,16 @@ jobs:
8891
steps:
8992
- name: Checkout
9093
uses: actions/[email protected]
91-
- name: Download windows lib
94+
- name: Download windows x64 lib
9295
uses: actions/download-artifact@v3
9396
with:
9497
name: windows-latest-x64-build
9598
path: Platform/libs/x64
99+
- name: Download windows arm lib
100+
uses: actions/download-artifact@v3
101+
with:
102+
name: windows-latest-arm64-build
103+
path: Platform/libs/arm64
96104
- name: Download macos lib
97105
uses: actions/download-artifact@v3
98106
with:

Framework/Graphics/SpriteFont.cs

+1-4
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ public void WrapText(ReadOnlySpan<char> text, float maxLineWidth, List<(int Star
289289
if (lineWidth > 0 && lineWidth + nextWordWidth > maxLineWidth)
290290
{
291291
writeLinesTo.Add((start, i - start));
292-
start = i;
292+
start = i + 1;
293293
lineWidth = 0;
294294
}
295295

@@ -413,9 +413,6 @@ public void RenderText(Batcher batch, ReadOnlySpan<char> text, Vector2 position,
413413

414414
public void RenderText(Batcher batch, ReadOnlySpan<char> text, Vector2 position, Vector2 justify, Color color)
415415
{
416-
// TODO:
417-
// I feel like the vertical alignment is slightly off, but not sure how.
418-
419416
var at = position + new Vector2(0, Ascent);
420417
var last = 0;
421418

0 commit comments

Comments
 (0)