summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorRaph Levien <raph@google.com>2014-04-14 14:11:02 -0700
committerRaph Levien <raph@google.com>2014-04-17 11:16:46 -0700
commit53c0077256afebb0312f01ef4f60a7445da1f5d9 (patch)
tree6195aace369328dc798b1f9f286834e1118082b9 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent31e052bfc4c81f0aa682d723a88cd9b716b6cace (diff)
Add elegantTextHeight text appearance attribute
This patch adds an elegantTextHeight text appearance attribute and plumbs it through to the paint. This attribute selects the elegant variant of fonts (when appropriate, which is typically Arabic and indic scripts), and also specifies larger vertical metrics, to avoid clipping. The intent is for this to be the default for quantum themes, but this patch doesn't change any default behavior, just adds the attribute. The larger vertical metrics are applied to top and bottom, but should not affect line spacing in the common case. Also, with the setting, metrics are no longer dependent on the font, so setting a custom font will preserve layout and spacing. Change-Id: If3b7d41f141deff50ca078f479ca90c2aa07829a
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions