if(mStyleMonitor)
{
mStyleMonitor.StyleChangeSignal().Connect(this, &StyleManager::StyleMonitorChange);
- mDefaultFontSize = mStyleMonitor.GetDefaultFontSize();
}
// Set the full path for the default style theme.
builder.ApplyStyle(styleName, control);
}
+ if(mDefaultFontSize == -1 && mStyleMonitor.EnsureFontClientCreated())
+ {
+ mDefaultFontSize = mStyleMonitor.GetDefaultFontSize();
+ }
+
if(mDefaultFontSize >= 0)
{
// Apply the style for logical font size