History log of /frameworks/base/tools/layoutlib/bridge/src/android/graphics/FontFamily_Delegate.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
145bc2d067faa3fb49b71e9e8c8c70b40564061a 28-Aug-2014 Deepanshu Gupta <deepanshu@google.com> LayoutLib: support font weights.

Also fixes a shader delegate method.

Change-Id: I86be80ab55d04760084d5bf39235f2ee4de7be23
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/FontFamily_Delegate.java
0e4be2540984235a0a7b84ea0466ef3c92d27b07 12-Aug-2014 Deepanshu Gupta <deepanshu@google.com> Whitelist fonts instead of blacklist.

A list of all fonts bundled with the SDK is generated. Load this file to
know which fonts are missing from the SDK.

Change-Id: I1554f1baec842ccdde3b21a93008437e9bac9353
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/FontFamily_Delegate.java
e644ff8d92ba040d11636be0fb6c433b52bcc6c2 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/base/tools/layoutlib/bridge/src/android/graphics/FontFamily_Delegate.java
b0d767dcf17dd393646b8fc3e8c9f46dfe12e230 04-Aug-2014 Deepanshu Gupta <deepanshu@google.com> Skip loading otf fonts on Java 6

Change-Id: I9668b84812e9be333d10603657dd911024fc292d
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/FontFamily_Delegate.java
3c937cf5c730519e750cdee4d5fa61e2a593e33a 01-Jul-2014 Deepanshu Gupta <deepanshu@google.com> Support Typeface.createFromFile()

Add support for Typeface.createFromFile() for platform fonts. The
feature existed in the KitKat LayoutLib but was dropped for the L
preview. This change adds it back.

Change-Id: Ib1abe67a32c28a1fb0e2a4f3061c358b55129434
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/FontFamily_Delegate.java
ad69aee5ed503d9592c10a0f6d1a5b617d99e6c5 31-May-2014 Deepanshu Gupta <deepanshu@google.com> LayoutLib: Font variants

Update to support font variants properly.

Change-Id: Iabe37babd9ddce80a9ba9eca7e0e5a0ffb090646
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/FontFamily_Delegate.java
9113968f9570b0c8ada2dec34fa6cf893da7c022 23-May-2014 Deepanshu Gupta <deepanshu@google.com> Layoutlib: Fix FontFamily_Delegate use after unref

FontFamily_Delegate was being reused after the nUnref call. The issue is
fixed by storing the reference to the FontFamily_Delegate directly in
the Typeface_Delegate rather than storing the native pointer.

Change-Id: I0db724a83c4be3d7b64ccba0989cd64129f2a785
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/FontFamily_Delegate.java
baef8c1ffe5c900fb0da9512654bf249b5fc9269 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/base/tools/layoutlib/bridge/src/android/graphics/FontFamily_Delegate.java