{
public static class Forms
{
+ static Lazy<int> s_dpi = new Lazy<int>(() =>
+ {
+ int dpi = 0;
+ TSystemInfo.TryGetValue<int>("http://tizen.org/feature/screen.dpi", out dpi);
+ return dpi;
+ });
class TizenDeviceInfo : DeviceInfo
{
readonly Size pixelScreenSize;
// TODO: implement me
return Color.Black;
}
+
+ internal static int ConvertToPixel(double dp)
+ {
+ return (int)Math.Round(dp * s_dpi.Value / 160.0);
+ }
}
class TizenExpressionSearch : ExpressionVisitor, IExpressionSearch
return base.VisitMember(node);
}
}
-}
\ No newline at end of file
+}
if (FontSize != -1)
{
- _formattingString.AppendFormat("font_size={0} ", FontSize);
+ _formattingString.AppendFormat("font_size={0} ", Forms.ConvertToPixel(FontSize));
}
if ((FontAttributes & FontAttributes.Bold) != 0)