Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4124] Cache custom fonts when they are loaded the first time

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2011-05-24T11:30:50.000+0000
Affected Version/sRelease 1.7.0, Sprint 2011-20
Fix Version/sRelease 1.7.0, Sprint 2011-20
ComponentsAndroid
Labelsn/a
ReporterOpie Cyrus
AssigneeOpie Cyrus
Created2011-05-17T15:53:53.000+0000
Updated2011-05-24T11:30:50.000+0000

Description

Attachments

FileDateSize
scrollPerf.js2011-05-17T16:19:55.000+00004276

Comments

  1. Opie Cyrus 2011-05-17

    Issue can be verified using attached test app. Basically, setup a custom font as mentioned in ticket #3418 Once a custom font is setup in your Resources/fonts directory, run the test 3 times with the 'myFont' variable set to 'monospace', 'does not exist' and then your custom font. You should see monospace font used the first time, default font used the second and then your custom font used the third time. Scrolling performance should be smooth (within reason) for all three scenarios.
  2. Opie Cyrus 2011-05-17

    test app
  3. Opie Cyrus 2011-05-17

    logged time includes all investigation, source change and testing of various test cases.
  4. Eric Merriman 2011-05-24

    Verified all three options in test app work as expected. Scrolling performance good in all cases. Used Nexus S and Eris.

JSON Source