{ "id": "168573", "key": "TIMOB-24882", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2017-06-23T01:12:08.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "engSchedule", "ios", "label" ], "versions": [ { "id": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" }, { "id": "19882", "name": "Release 8.0.0", "archived": false, "released": true, "releaseDate": "2019-03-14" } ], "issuelinks": [], "assignee": null, "updated": "2019-05-14T15:38:01.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "*Summary:*\r\nIf a label is set up to use a \"minimumFontSize\" and an \"attributedString\", but the \"font\" property was not assigned, then the text can be downscaled lower than the configured \"minimumFontSize\".\r\n\r\n*Code to reproduce:*\r\n\r\n{code:javascript}\r\nvar window = Ti.UI.createWindow({ backgroundColor: \"gray\" });\r\nwindow.add(Ti.UI.createLabel(\r\n{\r\n\tattributedString: Ti.UI.createAttributedString(\r\n\t{\r\n\t\ttext: \"Four score and seven years ago our fathers brought forth on this continent, a new nation, conceived in Liberty, and dedicated to the proposition that all men are created equal.\",\r\n\t}),\r\n\tcolor: \"white\",\r\n\tbackgroundColor: \"black\",\r\n//\tfont: { fontSize: 20 },\r\n\tminimumFontSize: 10,\r\n}));\r\nwindow.open();\r\n{code}\r\n\r\n*Result:*\r\nText font size is downscaled to fit the entire text. It is exceeding the configured \"minimumFontSize\".\r\n\r\n*Notes:*\r\n* This is not an issue with the \"text\" property. Only with \"attributedString\".\r\n* This downscaling issue goes away with \"attributedString\" if the Label's \"font\" property is assigned.\r\n\r\n*Work-Around:*\r\nAssign the Label's \"font\" property. For example, you can set it up to use the default font size by assigning it an empty table like this...\r\n\r\n{code:javascript}\r\nmyLabel.font = {};\r\n{code}\r\n", "attachment": [ { "id": "62726", "filename": "ActualResult.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-06-23T01:12:01.000+0000", "size": 38358, "mimeType": "image/png" }, { "id": "62725", "filename": "ExpectedResult.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-06-23T01:12:01.000+0000", "size": 40413, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Label font is downscaled lower than minimumFontSize for AttributedString", "creator": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [], "maxResults": 1, "total": 1, "startAt": 0 } } }