diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2019-09-20 11:11:24 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-09-21 15:13:10 -0700 |
commit | 9a35519a2a1745ff2f4f23f3561efa8e2bb94b0b (patch) | |
tree | 14964dfcc2b8f207e41a80a54c9327f8d57effa1 /packaging | |
parent | cf4dbbe5f2def7a6666e74518a5cfea668ded569 (diff) | |
download | subsurface-9a35519a2a1745ff2f4f23f3561efa8e2bb94b0b.tar.gz |
Android: bundle default font for use in OnePlus devices
This is working around a Qt Bug https://bugreports.qt.io/browse/QTBUG-69494
which prevents correct rendering of the OnePlus fonts.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'packaging')
-rwxr-xr-x | packaging/android/android-build-wrapper.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/packaging/android/android-build-wrapper.sh b/packaging/android/android-build-wrapper.sh index f5da7cabb..ef56cb575 100755 --- a/packaging/android/android-build-wrapper.sh +++ b/packaging/android/android-build-wrapper.sh @@ -81,8 +81,8 @@ if [ ! -d "$ANDROID_NDK" ] ; then fi if [ ! -d "$ANDROID_SDK"/build-tools/"${ANDROID_BUILDTOOLS_REVISION}" ] || - [ ! -d "$ANDROID_SDK"/platforms/android-"${ANDROID_PLATFORMS}" ] || - [ ! -d "$ANDROID_SDK"/platforms/android-"${ANDROID_PLATFORM}" ] ; then + [ ! -d "$ANDROID_SDK"/platforms/"${ANDROID_PLATFORMS}" ] || + [ ! -d "$ANDROID_SDK"/platforms/"${ANDROID_PLATFORM}" ] ; then if [ ! -d "$ANDROID_SDK" ] ; then if [ ! -f "$SDK_TOOLS" ] ; then wget -q https://dl.google.com/android/repository/"$SDK_TOOLS" @@ -101,6 +101,12 @@ if [ ! -d "$ANDROID_SDK"/build-tools/"${ANDROID_BUILDTOOLS_REVISION}" ] || popd fi +# now that we have an NDK, copy the font that we need for OnePlus phones +# due to https://bugreports.qt.io/browse/QTBUG-69494 +ls -l . "$ANDROID_SDK" "$ANDROID_SDK"/platforms +ls -l "$ANDROID_SDK"/platforms/"${ANDROID_PLATFORM}" "$ANDROID_SDK"/platforms/"${ANDROID_PLATFORM}"/data/fonts/Roboto-Regular.ttf +cp "$ANDROID_SDK"/platforms/"${ANDROID_PLATFORM}"/data/fonts/Roboto-Regular.ttf "$SUBSURFACE_SOURCE"/android-mobile || exit 1 + # download the Qt installer including Android bits and unpack / install QT_DOWNLOAD_URL=https://download.qt.io/archive/qt/${QT_VERSION}/${LATEST_QT}/${QT_BINARIES} if [ ! -d Qt/"${LATEST_QT}"/android_armv7 ] ; then |