Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27638] Windows app fonts become small when titanium sdk version changed from 7.0.2.GA to 8.2.1 GA

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2020-01-14T18:39:03.000+0000
Affected Version/sRelease 8.2.1
Fix Version/sRelease 8.3.1
ComponentsWindows
LabelsengSchedule, windows
Reportershishir.roy
AssigneeGary Mathews
Created2019-11-27T12:43:23.000+0000
Updated2020-07-16T05:07:33.000+0000

Description

Hi , I have upgraded the titanium SDK 7.0.2.GA to 8.2.1 GA in Windows Desktop application. After upgrade the application font becomes smaller than the previous. Also font changes happen in all pages in the application Find below tiapp.xml details: dp true false false false true 8.2.1.GA 10.0.16299.0 10.0.14393.0 Can you please provide the reason for smaller font and how to fix

Comments

  1. Kota Iguchi 2019-11-28

  2. shishir.roy 2019-11-28

    I have added the property tag explicity in tiapp.xml px But still same result font was smaller, anything else i have to to Also i have created a sample application with dp with 8.2.1.GA but here font are render fine in application. Let me know any other changes required
  3. Kota Iguchi 2019-12-02

    [~shishir.roy] Could you provide sample program that reproduce the issue? Could you also provide more environmental information (output from ti info -o json) which would be so appreciated. Did the font become smaller when you run it under older versions such as Titanium 7.5.2.GA and 8.0.0.GA?
  4. Kota Iguchi 2019-12-04

    I found that font size becomes smaller when you specify unit specifier such as dp explicitly for fontSize property. I think this is a parity issue...Label should ignore unit specifier in order to keep consistency between iOS. Created TIMOB-27640 to track this. For a workaround you might want to remove unit specifier from fontSize.
       var win = Ti.UI.createWindow({
           backgroundColor: 'green',
           layout: 'vertical',
           title: 'Label Demo'
       });
       
       var label1 = Ti.UI.createLabel({
           color: '#900',
           font: { fontSize: '48dp' },
           text: 'A simple label',
           top: 30,
           width: Ti.UI.SIZE, height: Ti.UI.SIZE
       });
       
       var label2 = Ti.UI.createLabel({
           color: '#900',
           font: { fontSize: 48 },
           text: 'A simple label',
           width: Ti.UI.SIZE, height: Ti.UI.SIZE
       });
       
       win.add(label1);
       win.add(label2);
       win.open();
       
  5. shishir.roy 2019-12-07

    Is it fixed in any version of SDK. Because it is very difficult to change every place in the code. So please provide some appropriate solution.
  6. Kota Iguchi 2019-12-07

    I already made a fix PR for TIMOB-27640. It is in review now and it is scheduled to be merged in next release (9.0.0).
  7. shishir.roy 2019-12-09

    But you have any release 9 with GA? I have not seen in download section. If not can you please provide the estimated date of release 9 with GA
  8. Kota Iguchi 2019-12-09

    I actually don't know much about the official release date...I would suggest consulting with sales or support guys
  9. Kota Iguchi 2019-12-14

    https://github.com/appcelerator/titanium_mobile_windows/pull/1440
  10. Gary Mathews 2020-01-10

    8_3_X: https://github.com/appcelerator/titanium_mobile_windows/pull/1445
  11. Samir Mohammed 2020-01-13

    FR Passed for 8_3_X. Waiting on Jenkins build.
  12. Christopher Williams 2020-01-14

    Merged to 8_3_X for 8.3.1 release
  13. Lokesh Choudhary 2020-01-15

    Verified the fix in SDK 8.3.1.v20200115102433. Closing.

JSON Source