StyleMonitor::StyleMonitor(Integration::PlatformAbstraction& platformAbstraction)
: mPlatformAbstraction(platformAbstraction),
- mDefaultFontSize(0u)
+ mDefaultFontSize(-1)
{
+ mPlatformAbstraction.GetDefaultFontDescription( mDefaultFontFamily, mDefaultFontStyle );
+ mDefaultFontSize = mPlatformAbstraction.GetDefaultFontSize();
}
StyleMonitor::~StyleMonitor()
return mDefaultFontStyle;
}
-unsigned int StyleMonitor::GetDefaultFontSize() const
+int StyleMonitor::GetDefaultFontSize() const
{
return mDefaultFontSize;
}
/**
* @copydoc Dali::StyleMonitor::GetDefaultFontSize() const
*/
- unsigned int GetDefaultFontSize() const;
+ int GetDefaultFontSize() const;
/**
* @copydoc Dali::StyleMonitor::GetTheme() const
std::string mDefaultFontFamily; ///< The default font family
std::string mDefaultFontStyle; ///< The default font style
std::string mUserDefinedThemeFilePath; ///< String containing the user defined theme file path
- unsigned int mDefaultFontSize; ///< The default accessibility font size e.g. 0 is smallest
+ int mDefaultFontSize; ///< The default accessibility font size e.g. 0 is smallest
};
} // namespace Adaptor
/**
* @brief Retrieves the default font size.
*
- * This is an accessibility size, which is mapped to a UI Control specific point-size in stylesheets.
+ * This is an logical 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.
- * @return The default font size.
+ * @return The default font size, or a negative value if not set.
*/
int GetDefaultFontSize() const;
int TizenPlatformAbstraction::GetDefaultFontSize() const
{
- int fontSize( 0 );
+ int fontSize( -1 );
#ifndef DALI_PROFILE_UBUNTU
vconf_get_int( VCONFKEY_SETAPPL_ACCESSIBILITY_FONT_SIZE, &fontSize );