Shape the font for selecting multiple emoji fonts.

In case overridden font doesn't have sequence but support all code
points, then fallback font support the sequence, the old logic
cannot select the fallback font. To prioritize the sequence,
shape the text and use the font that produces smallest numbers of
glyphs.

To minimize the side effects and performance penalties, perform
this logic only when the emoji font is selected for the first code
point in the old logic.

Bug: 187358499
Test: minikin_tests
Change-Id: Ia7480f8fb2d40eb65f815deaca17be691483624d
11 files changed