From 5dd8bf28f5587f07cf997dda50b4f98603f82ef3 Mon Sep 17 00:00:00 2001 From: elasota Date: Thu, 15 Apr 2021 20:03:06 -0400 Subject: [PATCH] Add IsUsingPreinstalledFonts API --- Aerofoil/GpSystemServices_Win32.cpp | 5 +++++ Aerofoil/GpSystemServices_Win32.h | 1 + AerofoilAndroid/app/jni/main/GpSystemServices_Android.cpp | 5 +++++ AerofoilAndroid/app/jni/main/GpSystemServices_Android.h | 1 + AerofoilWeb/GpSystemServices_Web.cpp | 5 +++++ AerofoilWeb/GpSystemServices_Web.h | 1 + AerofoilX/GpSystemServices_X.cpp | 5 +++++ AerofoilX/GpSystemServices_X.h | 1 + GpCommon/IGpSystemServices.h | 1 + 9 files changed, 25 insertions(+) diff --git a/Aerofoil/GpSystemServices_Win32.cpp b/Aerofoil/GpSystemServices_Win32.cpp index 8758638..46ce6fd 100644 --- a/Aerofoil/GpSystemServices_Win32.cpp +++ b/Aerofoil/GpSystemServices_Win32.cpp @@ -283,6 +283,11 @@ bool GpSystemServices_Win32::AreFontResourcesSeekable() const return true; } +bool GpSystemServices_Win32::IsUsingPreinstalledFonts() const +{ + return false; +} + IGpClipboardContents *GpSystemServices_Win32::GetClipboardContents() const { IGpClipboardContents *cbObject = nullptr; diff --git a/Aerofoil/GpSystemServices_Win32.h b/Aerofoil/GpSystemServices_Win32.h index 90b26b2..9afec5f 100644 --- a/Aerofoil/GpSystemServices_Win32.h +++ b/Aerofoil/GpSystemServices_Win32.h @@ -38,6 +38,7 @@ public: void SetTextInputEnabled(bool isEnabled) override; bool IsTextInputEnabled() const override; bool AreFontResourcesSeekable() const override; + bool IsUsingPreinstalledFonts() const override; IGpClipboardContents *GetClipboardContents() const override; void SetClipboardContents(IGpClipboardContents *contents) override; diff --git a/AerofoilAndroid/app/jni/main/GpSystemServices_Android.cpp b/AerofoilAndroid/app/jni/main/GpSystemServices_Android.cpp index 1cefa7e..746a7e7 100644 --- a/AerofoilAndroid/app/jni/main/GpSystemServices_Android.cpp +++ b/AerofoilAndroid/app/jni/main/GpSystemServices_Android.cpp @@ -104,6 +104,11 @@ bool GpSystemServices_Android::AreFontResourcesSeekable() const return false; } +bool GpSystemServices_Android::IsUsingPreinstalledFonts() const +{ + return false; +} + IGpClipboardContents *GpSystemServices_Android::GetClipboardContents() const { return nullptr; diff --git a/AerofoilAndroid/app/jni/main/GpSystemServices_Android.h b/AerofoilAndroid/app/jni/main/GpSystemServices_Android.h index 81c9985..60780df 100644 --- a/AerofoilAndroid/app/jni/main/GpSystemServices_Android.h +++ b/AerofoilAndroid/app/jni/main/GpSystemServices_Android.h @@ -19,6 +19,7 @@ public: void SetTextInputEnabled(bool isEnabled) override; bool IsTextInputEnabled() const override; bool AreFontResourcesSeekable() const override; + bool IsUsingPreinstalledFonts() const override; IGpClipboardContents *GetClipboardContents() const override; void SetClipboardContents(IGpClipboardContents *contents) override; diff --git a/AerofoilWeb/GpSystemServices_Web.cpp b/AerofoilWeb/GpSystemServices_Web.cpp index 25f3147..e457736 100644 --- a/AerofoilWeb/GpSystemServices_Web.cpp +++ b/AerofoilWeb/GpSystemServices_Web.cpp @@ -185,6 +185,11 @@ bool GpSystemServices_Web::AreFontResourcesSeekable() const return true; } +bool GpSystemServices_Web::IsUsingPreinstalledFonts() const +{ + return false; +} + IGpClipboardContents *GpSystemServices_Web::GetClipboardContents() const { return m_clipboardContents; diff --git a/AerofoilWeb/GpSystemServices_Web.h b/AerofoilWeb/GpSystemServices_Web.h index ebc7e5d..a9d42aa 100644 --- a/AerofoilWeb/GpSystemServices_Web.h +++ b/AerofoilWeb/GpSystemServices_Web.h @@ -22,6 +22,7 @@ public: void SetTextInputEnabled(bool isEnabled) override; bool IsTextInputEnabled() const override; bool AreFontResourcesSeekable() const override; + bool IsUsingPreinstalledFonts() const override; IGpClipboardContents *GetClipboardContents() const override; void SetClipboardContents(IGpClipboardContents *contents) override; int64_t GetTime() const override; diff --git a/AerofoilX/GpSystemServices_X.cpp b/AerofoilX/GpSystemServices_X.cpp index ed1401a..25c022d 100644 --- a/AerofoilX/GpSystemServices_X.cpp +++ b/AerofoilX/GpSystemServices_X.cpp @@ -113,6 +113,11 @@ bool GpSystemServices_X::AreFontResourcesSeekable() const return true; } +bool GpSystemServices_X::IsUsingPreinstalledFonts() const +{ + return false; +} + IGpClipboardContents *GpSystemServices_X::GetClipboardContents() const { return m_clipboardContents; diff --git a/AerofoilX/GpSystemServices_X.h b/AerofoilX/GpSystemServices_X.h index f9e9998..4eecc5f 100644 --- a/AerofoilX/GpSystemServices_X.h +++ b/AerofoilX/GpSystemServices_X.h @@ -22,6 +22,7 @@ public: void SetTextInputEnabled(bool isEnabled) override; bool IsTextInputEnabled() const override; bool AreFontResourcesSeekable() const override; + bool IsUsingPreinstalledFonts() const override; IGpClipboardContents *GetClipboardContents() const override; void SetClipboardContents(IGpClipboardContents *contents) override; diff --git a/GpCommon/IGpSystemServices.h b/GpCommon/IGpSystemServices.h index e60e9a9..66a204c 100644 --- a/GpCommon/IGpSystemServices.h +++ b/GpCommon/IGpSystemServices.h @@ -36,6 +36,7 @@ public: virtual void SetTextInputEnabled(bool isEnabled) = 0; virtual bool IsTextInputEnabled() const = 0; virtual bool AreFontResourcesSeekable() const = 0; + virtual bool IsUsingPreinstalledFonts() const = 0; virtual IGpClipboardContents *GetClipboardContents() const = 0; virtual void SetClipboardContents(IGpClipboardContents *contents) = 0; };