From da09a9e767cf4880d9c0f9e05a1099743cd9034e Mon Sep 17 00:00:00 2001 From: Patrick Dawson Date: Sat, 20 Apr 2024 09:40:29 +0200 Subject: [PATCH] try format --- .github/workflows/gdext.yml | 6 ------ gdext/scripts/vcpkg-macos.sh | 6 ------ gdext/src/Fonts.cpp | 4 +++- 3 files changed, 3 insertions(+), 13 deletions(-) diff --git a/.github/workflows/gdext.yml b/.github/workflows/gdext.yml index 0465de88..da6c2940 100644 --- a/.github/workflows/gdext.yml +++ b/.github/workflows/gdext.yml @@ -139,18 +139,12 @@ jobs: - name: Build debug run: | export PATH="$(brew --prefix llvm@15)/bin:$PATH" - echo $PATH - export CC=$(which clang) - export CXX=$(which clang++) - env - clang++ --version cd gdext scons - name: Build release run: | export PATH="$(brew --prefix llvm@15)/bin:$PATH" - echo $PATH cd gdext scons target=template_release diff --git a/gdext/scripts/vcpkg-macos.sh b/gdext/scripts/vcpkg-macos.sh index 3fdb7090..756fd35b 100644 --- a/gdext/scripts/vcpkg-macos.sh +++ b/gdext/scripts/vcpkg-macos.sh @@ -6,12 +6,6 @@ $VCPKG_ROOT/vcpkg install --triplet x64-osx mv vcpkg_installed $vcpkg_x64 $VCPKG_ROOT/vcpkg install --triplet arm64-osx -echo "zzzzzzzzzzzzzzzzzzzzzz" -cat /Users/runner/work/imgui-godot/imgui-godot/vcpkg/buildtrees/detect_compiler/config-arm64-osx-rel-CMakeCache.txt.log -cat /Users/runner/work/imgui-godot/imgui-godot/vcpkg/buildtrees/detect_compiler/config-arm64-osx-rel-out.log -cat /Users/runner/work/imgui-godot/imgui-godot/vcpkg/buildtrees/detect_compiler/config-arm64-osx-rel-err.log -echo "zzzzzzzzzzzzzzzzzzzzzz" - for libpath in "lib" "debug/lib" do pushd vcpkg_installed/arm64-osx/$libpath diff --git a/gdext/src/Fonts.cpp b/gdext/src/Fonts.cpp index 959d6f60..68e30b86 100644 --- a/gdext/src/Fonts.cpp +++ b/gdext/src/Fonts.cpp @@ -6,6 +6,7 @@ #include #include +#include #include using namespace godot; @@ -97,7 +98,8 @@ void Fonts::Impl::AddFontToAtlas(const Ref& font, int fontSize, bool m fs::path fontpath = (font->get_path().utf8().get_data()); // no std::format in Clang 14 - std::string fontdesc = fontpath.filename().string() + ", "s + std::to_string(fontSize) + "px"; + std::string fontdesc = std::format("{}, {}px", fontpath.filename().string(), fontSize); + // std::string fontdesc = fontpath.filename().string() + ", "s + std::to_string(fontSize) + "px"; if (fontdesc.length() > 39) fontdesc.resize(39); std::copy(fontdesc.begin(), fontdesc.end(), fc.Name);