Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26523] iOS 11+: Support large title style (dynamic fonts)

GitHub Issuen/a
TypeNew Feature
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2019-04-25T12:04:24.000+0000
Affected Version/sn/a
Fix Version/sRelease 8.1.0
ComponentsiOS
Labels2019-cl
ReporterHans Knöchel
AssigneeVijay Singh
Created2018-11-06T11:41:51.000+0000
Updated2019-04-25T12:04:28.000+0000

Description

Titanium is pretty well suited regarding dynamic fonts, which becomes more and more important in larger scale applications. We need one more style which is currently missing (UIFontTextStyleLargeTitle) which will complete the dynamic font support. Note: Until the below PR is merged, the following enum raw value will allow to use it today:
font: {
  textStyle: 'UICTFontTextStyleTitle0' // Raw value of UIFontTextStyleLargeTitle
}

Comments

  1. Hans Knöchel 2018-11-06

    PR: https://github.com/appcelerator/titanium_mobile/pull/10425 Test-Case:
       
       var win = Ti.UI.createWindow({
           backgroundColor: '#fff',
           extendSafeArea: false
       });
       
       var scrollView = Ti.UI.createScrollView({ layout: 'vertical', top: 50 });
       
       var textStyles = [
           Ti.UI.TEXT_STYLE_HEADLINE,
           Ti.UI.TEXT_STYLE_SUBHEADLINE,
           Ti.UI.TEXT_STYLE_BODY,
           Ti.UI.TEXT_STYLE_FOOTNOTE,
           Ti.UI.TEXT_STYLE_CAPTION1,
           Ti.UI.TEXT_STYLE_CAPTION2,
           Ti.UI.TEXT_STYLE_CALLOUT,
           Ti.UI.TEXT_STYLE_TITLE1,
           Ti.UI.TEXT_STYLE_TITLE2,
           Ti.UI.TEXT_STYLE_TITLE3,
           Ti.UI.TEXT_STYLE_LARGE_TITLE,
       ];
       
       for (var i = 0; i < textStyles.length; i++) {
           var textStyle = textStyles[i];
           scrollView.add(Ti.UI.createLabel({
               top: 20,
               text: textStyle,
               font: {
                   textStyle: textStyle
               }
           }));
       }
       
       win.add(scrollView);
       win.open();
       
  2. Keerthi Mahalingam 2019-04-09

    FR passed. danger failed .waiting for resolving that to merge.
  3. Lokesh Choudhary 2019-04-22

    PR Merged.
  4. Samir Mohammed 2019-04-25

    Closing ticket, fix verified in SDK Version 8.1.0.v20190423134840 Test and other information can be found at: https://github.com/appcelerator/titanium_mobile/pull/10425

JSON Source