S Silentsea Member Licensed User Longtime User May 23, 2012 #1 Hi there, maybe there is a bug in setting the style of a label, setting it via typeface to bold runs well, italic didn't work as aspected. It will be normal on my devices. Setting it in the Designer works well. But in my case i have set labels programmatically. Didn't work for me: Code: Copy Dim f As Typeface lblDescription.Typeface = f.CreateNew(f.DEFAULT,f.STYLE_ITALIC)
Hi there, maybe there is a bug in setting the style of a label, setting it via typeface to bold runs well, italic didn't work as aspected. It will be normal on my devices. Setting it in the Designer works well. But in my case i have set labels programmatically. Didn't work for me: Code: Copy Dim f As Typeface lblDescription.Typeface = f.CreateNew(f.DEFAULT,f.STYLE_ITALIC)
B BarrySumpter Active Member Licensed User Longtime User May 24, 2012 #2 Same here. italic doesn't work for me either. HTC HD2 Times New Roman Maybe a different font? Last edited: May 25, 2012
Erel B4X founder Staff member Licensed User Longtime User May 24, 2012 #3 Strange. It works fine here (test on Galaxy Nexus).
B BarrySumpter Active Member Licensed User Longtime User May 25, 2012 #4 Hi Erel, Any chance of you posting the script you got to work on your device? I'd like to run the exact script on mine. No prob if not.
Hi Erel, Any chance of you posting the script you got to work on your device? I'd like to run the exact script on mine. No prob if not.
Erel B4X founder Staff member Licensed User Longtime User May 25, 2012 #5 Similar to the one in the first post: Code: Copy Dim lbl As Label lbl.Initialize("") lbl.Text = "This is a test" lbl.Typeface = Typeface.CreateNew(Typeface.DEFAULT, Typeface.STYLE_ITALIC) Activity.AddView(lbl, 10dip, 10dip, 200dip, 100dip)
Similar to the one in the first post: Code: Copy Dim lbl As Label lbl.Initialize("") lbl.Text = "This is a test" lbl.Typeface = Typeface.CreateNew(Typeface.DEFAULT, Typeface.STYLE_ITALIC) Activity.AddView(lbl, 10dip, 10dip, 200dip, 100dip)
R Roger Garstang Well-Known Member Licensed User Longtime User May 25, 2012 #6 Not working at all on Gingerbread Tablet. Italic works on HTC One X. Tried with DEFAULT_BOLD on both as well- didn't work on Tablet, Italic Only on the One X.
Not working at all on Gingerbread Tablet. Italic works on HTC One X. Tried with DEFAULT_BOLD on both as well- didn't work on Tablet, Italic Only on the One X.
nfordbscndrd Well-Known Member Licensed User Longtime User May 26, 2012 #7 Doesn't work on Toshiba Thrive running 3.2.
B BarrySumpter Active Member Licensed User Longtime User May 26, 2012 #8 Tested again with Erel's code and not working on HD2. Could it be the Android version? 2.3.7 here.
R Roger Garstang Well-Known Member Licensed User Longtime User May 31, 2012 #10 Ended up trading my HTX One X for a Galaxy Note and Typeface.CreateNew(Typeface.DEFAULT, Typeface.STYLE_ITALIC) isn't working on it either. Tried it in a label inside a listview too. Looking like Android version more and more.
Ended up trading my HTX One X for a Galaxy Note and Typeface.CreateNew(Typeface.DEFAULT, Typeface.STYLE_ITALIC) isn't working on it either. Tried it in a label inside a listview too. Looking like Android version more and more.