Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23335] Windows: Support font property on Ti.UI.TextField

GitHub Issuen/a
TypeImprovement
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2016-05-09T19:10:26.000+0000
Affected Version/sn/a
Fix Version/sRelease 5.4.0
ComponentsWindows
Labelsqe-5.4.0
ReporterJonas Bjurhult
AssigneeChristopher Williams
Created2016-04-28T17:56:45.000+0000
Updated2016-06-27T17:53:01.000+0000

Description

SDK 5.4.0.v20160426000033 Setting fontSize on a TextField in Windows Phone does not work, it keeps the default size no matter what is set. See example: index.xml
<Alloy>
	<Window class="container">
		<TextField id="number" hintText="hint" keyboardType="Titanium.UI.KEYBOARD_DEFAULT"></TextField>
	</Window>
</Alloy>
index.tss
'#number':{
	font: {
		fontSize: 50
	}
}

Comments

  1. Sharif AbuDarda 2016-04-28

    Hello, Can you define the fontSize as
       "#number": {
       	font: {
       		fontSize: 50
       	}
       }
       
    Use " instead of '.
  2. Jonas Bjurhult 2016-04-28

    Hi, I tried changing ' to " in my tss but it does not fix the problem
  3. Sharif AbuDarda 2016-04-28

    Hello, Can you try changing to your SDK to a GA version for building the app. Use the latest one 5.2.2.GA.
  4. Jonas Bjurhult 2016-04-28

    Same result for 5.2.2.GA, i.e still not working
  5. Nazmus Salahin 2016-05-02

    Hello, I am able to reproduce this issue with given code and given steps. Setting fontSize on a TextField on Windows Phone does not work. I tried setting fontSize: 50 and fontSize: 75 but it keeps the default size. Thanks *Environment*: *Device info:* Microsoft Lumia640 (Windows Phone 8.1) *Node.js Version:* 0.12.7 *npm Version:* 2.11.3 *Titanium SDKs:* 5.2.2.GA and 5.4.0.v20160429102159 *Java Development Kit Version:* 1.8.0_73 *Titanium CLI Version:* 5.0.5 *Appcelerator CLI Version:* 5.2.2 *Appcelerator Studio:* 4.5.0
  6. Christopher Williams 2016-05-09

    We currently do not support the font property on Ti.UI.TextField at all (there's a TODO sitting right in the code...). So it's not just the font size that won't work.
  7. Christopher Williams 2016-05-09

    https://github.com/appcelerator/titanium_mobile_windows/pull/677
  8. Harry Bryant 2016-06-27

    Verified as fixed fontSize property is now supported for Ti.UI.TextField on windows. Additionally, fontWeight is also supported. Tested on: Windows 10 Pro Windows Phone 10.0 (Microsoft Lumia 640 LTE) Appc Studio: 4.7.0.201606220541 Ti SDK: 5.4.0.v20160617074028 Appc NPM: 4.2.7-2 Appc Core: 5.4.0-18 Node: v4.4.4 *Closing Ticket.*

JSON Source