dear friends...I am also facing the same problem..moreover I have found that with different displaysize I am getting different results..On what factors the value returned from skia depends so that is matches with the hardcoded values in CTS test file..please reply to the post.
On Jul 1, 7:25 pm, "deepa.sundar...@wipro.com" <deepa.sundar...@wipro.com> wrote: > we loaded the system/fonts with a new set of ".ttf" fonts by doing adb > push. > > reboot the phone. > > now the phone is up with the new loaded font. > > however when we run cts testcases on the phone: > > Some of the android.graphics.cts.PaintTest related to "FontMetrics" > cases failed. > > when we look at PaintTest.java; the font metrics are hard-coded. > > Hence the new font cases did not match those metrics and failed. > > But what is the procedure to get these testcases passed after loading > a new font pack? > > Please guide. > > **********************Error > Snapshot**************************************** > 1. -- testGetFontSpacing > fail > > junit.framework.AssertionFailedError: expected:<13.96875> but > was:<12.0> at > android.graphics.cts.PaintTest.testGetFontSpacing(PaintTest.java:607) > > 2. - testAscent > fail > > junit.framework.AssertionFailedError: expected:<-11.138672> but > was:<-10.558594> at > android.graphics.cts.PaintTest.testAscent(PaintTest.java:757) > > 3. -- testGetFontMetrics1 > fail > > junit.framework.AssertionFailedError: expected:<13.96875> but > was:<12.0> at > android.graphics.cts.PaintTest.testGetFontMetrics1(PaintTest.java: > 1558) > > 4. -- testGetFontMetrics2 > fail > > junit.framework.AssertionFailedError: expected:<-11.138672> but > was:<-10.558594> at > android.graphics.cts.PaintTest.testGetFontMetrics2(PaintTest.java: > 1600) > **********************Error**************************************** -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en