Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Medium
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2013 Sprint 20, 2013 Sprint 20 API, Release 3.2.0
-
Component/s: iOS
-
Labels:
Description
The following code snippet demonstrates the issue. The italic fonts does not show up as expected on iOS (bold), on Android it does work.
var win1 = Ti.UI.createWindow({
|
backgroundColor:'white',
|
layout:'vertical'
|
});
|
|
function makeLabel(labelText, labelFont)
|
{
|
return Titanium.UI.createLabel({
|
top: 20,
|
text:labelText,
|
font:labelFont,
|
width:'auto',
|
height:'auto'
|
});
|
}
|
|
var theTestFont = 'Serif';
|
|
win1.add(makeLabel('Font normal normal', { fontFamily:theTestFont, fontWeight:'normal', fontStyle:'normal'}));
|
win1.add(makeLabel('Font bold normal', { fontFamily:theTestFont, fontWeight:'bold', fontStyle:'normal'}));
|
win1.add(makeLabel('Font normal italic', { fontFamily:theTestFont, fontWeight:'normal', fontStyle:'italic'}));
|
win1.add(makeLabel('Font bold italic', { fontFamily:theTestFont, fontWeight:'bold', fontStyle:'italic'}));
|
|
win1.open();
|
Attachments
Issue Links
- is cloned from
-
TIMOB-6053 Android: fontStyle not supported on Android
-
- Closed
-
- relates to
-
TIMOB-24823 iOS: Label font style does not show italic when bold
-
- Closed
-