OSDN Git Service

Fix for Typeface.create(Typeface, style) semantics changed in KK
authorRaph Levien <raph@google.com>
Wed, 6 Nov 2013 19:12:11 +0000 (11:12 -0800)
committerRaph Levien <raph@google.com>
Wed, 6 Nov 2013 19:16:01 +0000 (11:16 -0800)
commit4f0064fa3448c95e116a8d5646547a7a0fa8a432
treec801159ccd2545cd3d4b403a4fa4191c21361483
parenta80d6424987602cc3141d4cb4cdee21a54747691
Fix for Typeface.create(Typeface, style) semantics changed in KK

This is a fix for bug 11553661. The "closest match" heuristic for
resolving a typeface when an exact match was not found changed between
JB MR2 and KK, resulting in loss of custom typeface when StyleSpan was
applied. This patch reinstates the logic that had been present. Also
reported externally as:
https://code.google.com/p/android/issues/detail?id=61771

Change-Id: Ia432fca07c4bf3b830ee2487cd8f5267a9cfb7ff
core/jni/android/graphics/Typeface.cpp