return mIsLoadingResult;
}
+/**
+ * @copydoc PlatformAbstraction::GetDefaultFontDescription()
+ */
+void TestPlatformAbstraction::GetDefaultFontDescription( std::string& family, std::string& style ) const
+{
+ mTrace.PushCall("GetDefaultFontFamily", "");
+ family = mGetDefaultFontFamilyResult;
+ style = mGetDefaultFontStyleResult;
+}
+
+/**
+ * @copydoc PlatformAbstraction::GetDefaultFontSize()
+ */
+int TestPlatformAbstraction::GetDefaultFontSize() const
+{
+ mTrace.PushCall("GetDefaultFontSize", "");
+ return mGetDefaultFontSizeResult;
+}
+
/**
* @copydoc PlatformAbstraction::SetDpi()
*/
// EXTERNAL INCLUDES
#include <stdint.h>
#include <cstring>
+#include <string>
// INTERNAL INCLUDES
#include <dali/public-api/common/set-wrapper.h>
*/
virtual bool IsLoading();
+ /**
+ * @copydoc PlatformAbstraction::GetDefaultFontFamily()
+ */
+ virtual void GetDefaultFontDescription( std::string& family, std::string& style ) const;
+
+ /**
+ * @copydoc PlatformAbstraction::GetDefaultFontSize()
+ */
+ virtual int GetDefaultFontSize() const;
+
/**
* @copydoc PlatformAbstraction::SetDpi()
*/
size_t mSeconds;
size_t mMicroSeconds;
bool mIsLoadingResult;
+ std::string mGetDefaultFontFamilyResult;
+ std::string mGetDefaultFontStyleResult;
+ int mGetDefaultFontSizeResult;
Resources mResources;
Integration::ResourceRequest* mRequest;
Vector2 mSize;
*/
virtual void JoinLoaderThreads() = 0;
+ // Font Queries
+
+ /**
+ * Called by Dali to retrieve the default font family & style for the platform.
+ * Multi-threading note: this method will be called from the main thread only i.e. not
+ * from within the Core::Render() method.
+ * @param[out] The default font family.
+ * @param[out] The default font style.
+ */
+ virtual void GetDefaultFontDescription( std::string& family, std::string& style ) const = 0;
+
+ /**
+ * Called by Dali to retrieve the default font size for the platform.
+ * This is an accessibility size, which is mapped to a UI Control specific point-size in stylesheets.
+ * For example if zero the smallest size, this could potentially map to TextLabel point-size 8.
+ * Multi-threading note: this method will be called from the main thread only i.e. not
+ * from within the Core::Render() method.
+ * @return The default font size.
+ */
+ virtual int GetDefaultFontSize() const = 0;
+
/**
* Sets horizontal and vertical pixels per inch value that is used by the display
* @param[in] dpiHorizontal horizontal dpi value