Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-19240

iOS: Change of fontWeight or fontFamily also changes fontSize

    Details

      Description

      The following test case shows that on iOS changing only a Label's fontWeight or fontFamily will also change the fontSize. I'd expect the fontSize to stay the same, just like it does on Android.

      Test case

      var win = Titanium.UI.createWindow({
        backgroundColor: '#ddd',
      });
       
      win.add(Ti.UI.createLabel({
        top: 100,
        text: 'No font property',
      }));
       
      win.add(Ti.UI.createLabel({
        top: 200,
        text: 'Font property for fontWeight only',
        font: {
          fontWeight: 'bold'
        }
      }));
       
      win.add(Ti.UI.createLabel({
        top: 300,
        text: 'Font property for fontFamily only',
        font: {
          fontFamily: Ti.Platform.name === 'android' ? 'Roboto' : 'AmericanTypewriter'
        }
      }));
       
      win.open();
      

        Attachments

          Activity

            People

            • Assignee:
              emerriman Eric Merriman
              Reporter:
              fokkezb Fokke Zandbergen
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-20160
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code