[TIMOB-26523] iOS 11+: Support large title style (dynamic fonts)
| GitHub Issue | n/a |
|---|---|
| Type | New Feature |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2019-04-25T12:04:24.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 8.1.0 |
| Components | iOS |
| Labels | 2019-cl |
| Reporter | Hans Knöchel |
| Assignee | Vijay Singh |
| Created | 2018-11-06T11:41:51.000+0000 |
| Updated | 2019-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
}
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();FR passed. danger failed .waiting for resolving that to merge.
PR Merged.
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