{ "id": "165269", "key": "TIMOB-24299", "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": [ { "id": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-01-23T06:06:06.000+0000", "created": "2017-01-11T22:07:44.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "eng-priority" ], "versions": [], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-02-03T00:13:28.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "12642", "name": "Windows", "description": "Windows authoring support" }, { "id": "15101", "name": "Windows phone", "description": "Windows phone platform" } ], "description": "h5. Issue: \r\nTried different combinations in the fontFamily field in the tss (shown in the sample project) and none of them work.\r\n\r\nApp can be downloaded from : https://propelics.box.com/s/sznwb7l7t19gcl7wpmksz1qkz2qisqbk\r\n\r\nh5. REPRODUCE\r\n1. Create a simple app like attached : [https://propelics.box.com/s/sznwb7l7t19gcl7wpmksz1qkz2qisqbk]\r\n2. Run it on Windows.\r\n3. You will not see the expected fonts at app launch.\r\n\r\nh5. ACTUAL RESULT\r\n Fonts are not shows as set in tss file for different labels.\r\n\r\nh5. EXPECTED RESULT\r\nThe labels should be displayed with fonts set in the tss.\r\n\r\nh5. Note:\r\nTried placing the font files in both:\r\n - app/assets/windows \r\nand \r\n- app/assets/windows/fonts but nothing worked.", "attachment": [ { "id": "61333", "filename": "6.0.0.GA.PNG", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-26T23:31:08.000+0000", "size": 19834, "mimeType": "image/png" }, { "id": "61334", "filename": "6.1.0.v20170126143826.PNG", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-26T23:31:08.000+0000", "size": 21277, "mimeType": "image/png" }, { "id": "61303", "filename": "fonts.zip", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-20T22:28:38.000+0000", "size": 1055460, "mimeType": "application/zip" } ], "flagged": false, "summary": "Universal Windows App (UWP): Unable to render different fonts", "creator": { "name": "nmishra", "key": "nmishra", "displayName": "Neeraj Mishra", "active": true, "timeZone": "America/Phoenix" }, "subtasks": [], "reporter": { "name": "nmishra", "key": "nmishra", "displayName": "Neeraj Mishra", "active": true, "timeZone": "America/Phoenix" }, "environment": "SDK 6.0.0.GA\r\nCLI 6.0.0\r\nStudio 4.8\r\nWindows 10", "closedSprints": [ { "id": 796, "state": "closed", "name": "2017 Sprint 02 SDK", "startDate": "2017-01-15T00:00:41.845Z", "endDate": "2017-01-29T00:00:00.000Z", "completeDate": "2017-01-30T21:10:44.640Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "404994", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile_windows/pull/930", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-20T22:54:06.000+0000", "updated": "2017-01-20T22:54:06.000+0000" }, { "id": "405047", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Fixed, can be done by specifying font file name explicitly.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'gray',\r\n layout: 'vertical'\r\n });\r\n\r\nwin.add(Ti.UI.createLabel({\r\n text: 'Hello World, Bold',\r\n font: {\r\n fontSize: 36,\r\n fontFamily: 'segoeuib.ttf#Segoe UI 8'\r\n }\r\n}));\r\n\r\nwin.add(Ti.UI.createLabel({\r\n text: 'Hello World, Italic',\r\n font: {\r\n fontSize: 36,\r\n fontFamily: 'segoeuii.ttf#Segoe UI 8'\r\n }\r\n}));\r\n\r\nwin.add(Ti.UI.createLabel({\r\n text: 'Hello World, Light',\r\n font: {\r\n fontSize: 36,\r\n fontFamily: 'segoeuil.ttf#Segoe UI 8'\r\n }\r\n}));\r\n\r\nwin.open();\r\n{code}\r\n\r\n*TODO*: Update docs http://docs.appcelerator.com/platform/latest/#!/api/Font\r\n", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-01-23T06:06:06.000+0000", "updated": "2017-01-23T06:06:06.000+0000" }, { "id": "405442", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fix with the test code provided by [~gmathews] in https://github.com/appcelerator/titanium_mobile_windows/pull/930. Was able to see different fonts being rendered on the latest build on the 6.1.0. SDK. \r\n\r\nBefore : *6.0.0.GA*\r\n!6.0.0.GA.PNG|thumbnail!\r\n\r\nAfter: *6.1.0.v20170126143826* \r\n!6.1.0.v20170126143826.PNG|thumbnail!\r\n\r\n*Environment* \r\n{code:java}\r\nLumia 640 LTE (RM-1073) (OS Build 10.0.14393.693)\r\nMobile emulator 10.0.14393.0 1080p 6inch 2gb\r\nOperating System\r\nName = Microsoft Windows 10 Pro\r\nVersion = 10.0.14393\r\nArchitecture = 64bit\r\n# CPUs = 4\r\nMemory = 17034395648\r\n \r\nNode.js\r\nNode.js Version = 4.6.0 \r\nnpm Version = 2.11.3\r\n \r\nTitanium SDK\r\nSDK Version = 6.1.0.v20170126143826\r\n{code}\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-26T23:35:27.000+0000", "updated": "2017-01-26T23:35:27.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }