531dab6d3a2ffcd13684367659dfd0296f86cfe5 |
|
27-Aug-2014 |
Raph Levien <raph@google.com> |
Fix incorrect return value on missing glyph The GetGlyph function returns a boolean indicating whether the glyph exists in the font. However, we were testing the pointer, so the test would always succeed even if the glyph was missing. This interfered with fallback algorithms for rendering compatibility characters. Bug: 15816880 Bug: 16856221 Change-Id: I95cd45bb8f5e8ddf74cf23e6e624fbf30172e00a
/frameworks/base/core/jni/android/graphics/MinikinSkia.cpp
|
e21e2a2d1d85d422230c1115abba824338763a88 |
|
29-Jul-2014 |
Behdad Esfahbod <behdad@google.com> |
Clean up Minikin includes Include headers where they are used. Add header guards to MinikinSkia.h Change-Id: If341231625348290d28a7d625561fffc171a8407
/frameworks/base/core/jni/android/graphics/MinikinSkia.cpp
|
0627ec08dcc2e87c17e9b85f045dfb27dc4884b3 |
|
07-Jun-2014 |
Raph Levien <raph@google.com> |
Support fake italics This patch adds fake italics, using essentially the same mechanism as the fake bold implementation. Also combines fake bold/italic settings with ones explicitly set in the paint. Change-Id: Ia7eb3ddc8a6192d191711ba723ffd0d1d9d93f2e
/frameworks/base/core/jni/android/graphics/MinikinSkia.cpp
|
1fc0fa87d42ce9268ece76b85b9edc834593e53a |
|
07-Jun-2014 |
Raph Levien <raph@google.com> |
Support for fake bold in Minikin builds Part of the fix for bug 15436379 Fake bold doesn't fully work (Minikin) This patch queries the Minikin layout for when fake bold is needed, and applies that to both shaping and drawing paint. Also simplifies refcounting (the lifetime of all MinikinFont objects is subsumed by the enclosing FontCollection). Note: the fake bold flag set by the user is ignored in this patch. Fake italics would be possible using the same mechanism, but it's slightly more complicated (fake and user-set textSkewX values would need to be combined, and the latter restored after drawing). Change-Id: Ica2c4604846cbb37e5a783778b18d8993c9d4563
/frameworks/base/core/jni/android/graphics/MinikinSkia.cpp
|
e95b5850ac2e56330abf68362451e7614b3dfe16 |
|
31-May-2014 |
Raph Levien <raph@google.com> |
Support for scaleX and skewX in Minikin Passes textScaleX and textSkewX parameters, as well as paint flags from the paint to Minikin, to support nontrivial scale and stretch of text. Passing paint flags should minimize kerning artifacts arising from mismatch of glyph rendering in layout and drawing. Also, replaces unsafe snprintf to a fixed size buffer with a safe version, which still avoids an allocation per layout operation. This is part of the fix for bug 15186705 "Usability of the suggestion strip in recent OTA's is severely reduced" Change-Id: I79788383135836f4c21fb84405f36382627bf959
/frameworks/base/core/jni/android/graphics/MinikinSkia.cpp
|
9d9ee3d666c63938311839002ec974673998c6d0 |
|
13-May-2014 |
Raph Levien <raph@google.com> |
BiDi support for Minikin This patch plumbs the bidiFlags for the various text drawing and measurement functions down to Minikin, so that the latter can do layout in a BiDi-aware manner. With the corresponding changes to Minikin, it is sufficient to correctly display RTL text in TextViews. Change-Id: Ie904f297373b9ad418050a474506605c7c127b0f
/frameworks/base/core/jni/android/graphics/MinikinSkia.cpp
|
1a73f732f91e97c9c66b808c245ddda36a10e987 |
|
31-Jan-2014 |
Raph Levien <raph@google.com> |
Start of Minikin integration This is the current state of the Minikin integration. All changes are hidden behind USE_MINIKIN #ifdef, so it should be safe to apply. To play with the Minikin branch, set this in your BoardConfig.mk . This change also merges in 64-bit changes that were happenening in parallel. Change-Id: Idd94553bcbe324c5875d0ff06495c966c3e95b7f
/frameworks/base/core/jni/android/graphics/MinikinSkia.cpp
|
a033630e805c407080221e20b236b6054f324670 |
|
23-May-2013 |
Raph Levien <raph@google.com> |
Initial integration of Minikin to framework With this patch, framework does at least some of its text rendering using Minikin instead of TextLayoutCache. There's a lot of stuff broken and not yet implemented, but the phone will boot. Changes are hidden behind USE_MINIKIN, which should be set in BoardConfig.mk for the brave. Without that, there are changes to signatures in JNI methods and so on, but shouldn't be any visible changes. This commit also introduces a new abstraction for Typeface: The new TypefaceImpl abstraction represents the functionality that corresponds to a Java Typeface object. Currently it is backed by SkTypeface, but in the migration to Minikin it is a FontCollection combined with a FontStyle. This patch introduces a USE_MINIKIN preprocessor switch, so there is no substantial change to existing Skia-based code, but which lets us start replacing the implementation with the Minikin version. Change-Id: I532c4c2d32d4f4c1f349dc1db37caa112af587ea
/frameworks/base/core/jni/android/graphics/MinikinSkia.cpp
|