History log of /frameworks/layoutlib/bridge/src/android/graphics/BidiRenderer.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
89606974eb8dcab1d14d3570f17b1f5654ff008c 04-Jul-2017 Diego Perez <diegoperez@google.com> Reduce allocations in BidiRenderer

Avoid allocating a new list for fonts and a new RectF when not needed.
Make the ScriptRun holder class completely immutable.

Test: Existing tests pass
Change-Id: I09e73b11b8b9bd15eb873c4b4e0c7e0611294654
/frameworks/layoutlib/bridge/src/android/graphics/BidiRenderer.java
461dbc33c6e74c10b38154dc4c27a6e4a5271689 29-Jun-2017 Jerome Gaillard <jgaillard@google.com> Fix BidiRenderer.renderText

When creating a Bidi object with a start > 0, Bidi creates a copy of the
text array starting at start, so that it will always consider the text
to render to start from index 0. We need to make sure we use the same
text as Bidi when rendering.

Test: RenderTests.testAllWidgets
Change-Id: I58d2c4b9a03d23b3f1b657f342845e9a42049280
/frameworks/layoutlib/bridge/src/android/graphics/BidiRenderer.java
0fd92b1ab7787f9932d98ebd910fc0416dfc3435 02-Aug-2016 Diego Perez <diegoperez@google.com> Avoid passing antialias when measuring scaled text

This is a workaround for a JDK bug that crashes the VM when
measuring scaled antialsed text.
This disables antialiasing when measuring scaled text in a specific
version of the VM.

Bug: http://b.android.com/211659
Change-Id: I637ed03cf827b65c993550998ac55d42869237ad
/frameworks/layoutlib/bridge/src/android/graphics/BidiRenderer.java
9fe7fca9bcdceade9c654c6a8dcf0c48be16d78d 12-May-2015 Deepanshu Gupta <deepanshu@google.com> Add missing delegates for M preview.

- Remove ICU dependency (use the version bundled with platform).
- Restructure intelliJ project to move dependencies to module.
- Minor fixes to layoutlib tests.

TODO:
- Load ICU data.
- Hyphenator doesn't work.
- High quality line breaker not present.

Change-Id: I965e096e17bfc97ee995a649c3f4f6f64bb4f70d
/frameworks/layoutlib/bridge/src/android/graphics/BidiRenderer.java
382256f48d53d2e239bf7435049dd01a4e18cfb0 09-Aug-2014 Deepanshu Gupta <deepanshu@google.com> Don't show warnings for fonts not bundled.

The extended font set, used on Nexus 5, new Nexus 7 etc., uses OpenType
CFF fonts which don't work well with Java. These fonts are deliberately
excluded from the SDK build.

This change skips the warnings for the missing fonts. However, we still
show warnings for other fonts that failed to load. If the set of fonts
bundled with the SDK changes, we will need to update the list of missing
fonts in FontFamily_Delegate.java.

Change-Id: I3197b5350d048daa09512e8024188909179b1799
/frameworks/layoutlib/bridge/src/android/graphics/BidiRenderer.java
721c18230bef20054dba9eff95d043219b33a2a6 04-Aug-2014 Deepanshu Gupta <deepanshu@google.com> Skip loading otf fonts on Java 6

Change-Id: I9668b84812e9be333d10603657dd911024fc292d
/frameworks/layoutlib/bridge/src/android/graphics/BidiRenderer.java
237740ba09c2dc38ea37e6e5ca1fe1d90e26c298 26-Jun-2014 Deepanshu Gupta <deepanshu@google.com> Update text rendering delegates.

The flags for RTL and LTR are simplified in commit
0a1d91862a3822dcbbb412bcd6d69b0f5f079f8b. This change follows up the
same in LayoutLib.

This also fixes the following bug which incorrectly computed runs with
'en-dash' (\u20132) as RTL.

Bug: http://b.android.com/69432
Change-Id: Iaed62d13ce31f107773576ed2ef412be6037cd04
/frameworks/layoutlib/bridge/src/android/graphics/BidiRenderer.java
017c06241e22e290406ae53402f96e3e2a9597b8 20-May-2014 Deepanshu Gupta <deepanshu@google.com> Layoutlib fixes for L [DO NOT MERGE]

This adds the new delegates that were missing. This starts the work on
changes related to Minikin Fonts.

There are some changes related to TypedArray that still need to be
fixed.

Change-Id: Ic2397b64aa3f1f48926e849b14689c47d9ee7f8c
(cherry picked from commit 7ca3612094270183243938e79337c84effea7ad0)
/frameworks/layoutlib/bridge/src/android/graphics/BidiRenderer.java
e153974013e3062b4ed994afdfd7a6c042df474d 07-Jan-2014 Deepanshu Gupta <deepanshu@google.com> Improve text rendering and measurement.

1. Fix a bug where baseline of the run was modified while rendering
resulting in crooked text in some cases.

2. Use GlyphVector.getLogicalBounds() for text measurement which is more
accurate than getVisualBounds().

3. This change also optimizes text rendering by not computing the advances
for individual glyphs when not needed.

Change-Id: I66792c4d8f50eaf29afa70bccca1e6c812a3fa28
/frameworks/layoutlib/bridge/src/android/graphics/BidiRenderer.java
eb998d3d38dfb2cab9759ce6b85d0af34f16f77c 07-Jan-2014 Deepanshu Gupta <deepanshu@google.com> Fix the measurement of text bounds.

Bug: 12366230
Change-Id: I203b678363dc7b688c744503ee10216baca658a9
/frameworks/layoutlib/bridge/src/android/graphics/BidiRenderer.java
a6b207a2cfc2f542a1f9b1eaee1a9047f25b4dea 12-Jul-2013 Deepanshu Gupta <deepanshu@google.com> Fix text rendering

There are still some errors
1. Little vertical clippping for extra tall glyphs.
2. Breaking into scripts isn't perfect which results in incorrect layout
of text.

Change-Id: I54de3c05eca5e8affb1135c120eea24c3afe8a47
/frameworks/layoutlib/bridge/src/android/graphics/BidiRenderer.java