public static void SetFontAttributes(this NLabel label, FontAttributes attr)
        {
            bool isBold   = attr.HasFlag(FontAttributes.Bold);
            bool isItalic = attr.HasFlag(FontAttributes.Italic);
            var  style    = new PropertyMap();

            style.Add("weight", isBold ? "bold" : "normal")
            .Add("slant", isItalic ? "italic" : "normal");
            label.FontStyle = style;
        }
Esempio n. 2
0
 internal TextLabel(Tizen.NUI.BaseComponents.TextLabel nuiInstance) : base(nuiInstance)
 {
     SetNUIInstance(nuiInstance);
 }