summaryrefslogtreecommitdiffstats
path: root/graphics/java/android/renderscript/Font.java
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2012-05-07 15:34:29 -0700
committerStephen Hines <srhines@google.com>2012-05-07 15:34:29 -0700
commit9c9ad3f8c218954e46aab81f9af7834cea5675ca (patch)
tree1ae4ba36dda77457b82b8e2705ecdcc2dc370327 /graphics/java/android/renderscript/Font.java
parentb3482ffbeee30650359e6ab8f3950a83e06963b4 (diff)
downloadframeworks_base-9c9ad3f8c218954e46aab81f9af7834cea5675ca.zip
frameworks_base-9c9ad3f8c218954e46aab81f9af7834cea5675ca.tar.gz
frameworks_base-9c9ad3f8c218954e46aab81f9af7834cea5675ca.tar.bz2
Revert "Deprecate"
This reverts commit a0c2eb27b408660b02fa248943166d6c7e447908. Conflicts: api/current.txt graphics/java/android/renderscript/Element.java graphics/java/android/renderscript/Script.java Change-Id: I3c8fa62b12da95b3dbc842b5284dbed65d3cf963
Diffstat (limited to 'graphics/java/android/renderscript/Font.java')
-rw-r--r--graphics/java/android/renderscript/Font.java26
1 files changed, 5 insertions, 21 deletions
diff --git a/graphics/java/android/renderscript/Font.java b/graphics/java/android/renderscript/Font.java
index cd1010c..18dacac 100644
--- a/graphics/java/android/renderscript/Font.java
+++ b/graphics/java/android/renderscript/Font.java
@@ -29,8 +29,8 @@ import android.content.res.Resources;
import android.util.Log;
import android.util.TypedValue;
-/** @deprecated renderscript is deprecated in J
- * <p>This class gives users a simple way to draw hardware accelerated text.
+/**
+ * <p>This class gives users a simple way to draw hardware accelerated text.
* Internally, the glyphs are rendered using the Freetype library and an internal cache of
* rendered glyph bitmaps is maintained. Each font object represents a combination of a typeface,
* and point size. You can create multiple font objects to represent styles such as bold or italic text,
@@ -42,7 +42,7 @@ import android.util.TypedValue;
* render large batches of text in sequence. It is also more efficient to render multiple
* characters at once instead of one by one to improve draw call batching.</p>
* <p>Font color and transparency are not part of the font object and you can freely modify
- * them in the script to suit the user's rendering needs. Font colors work as a state machine.
+ * them in the script to suit the user's rendering needs. Font colors work as a state machine.
* Every new call to draw text uses the last color set in the script.</p>
**/
public class Font extends BaseObj {
@@ -71,20 +71,10 @@ public class Font extends BaseObj {
private static Map<String, FontFamily> sFontFamilyMap;
- /** @deprecated renderscript is deprecated in J
- */
public enum Style {
- /** @deprecated renderscript is deprecated in J
- */
NORMAL,
- /** @deprecated renderscript is deprecated in J
- */
BOLD,
- /** @deprecated renderscript is deprecated in J
- */
ITALIC,
- /** @deprecated renderscript is deprecated in J
- */
BOLD_ITALIC;
}
@@ -148,7 +138,7 @@ public class Font extends BaseObj {
super(id, rs);
}
- /** @deprecated renderscript is deprecated in J
+ /**
* Takes a specific file name as an argument
*/
static public Font createFromFile(RenderScript rs, Resources res, String path, float pointSize) {
@@ -164,14 +154,10 @@ public class Font extends BaseObj {
return rsFont;
}
- /** @deprecated renderscript is deprecated in J
- */
static public Font createFromFile(RenderScript rs, Resources res, File path, float pointSize) {
return createFromFile(rs, res, path.getAbsolutePath(), pointSize);
}
- /** @deprecated renderscript is deprecated in J
- */
static public Font createFromAsset(RenderScript rs, Resources res, String path, float pointSize) {
rs.validate();
AssetManager mgr = res.getAssets();
@@ -185,8 +171,6 @@ public class Font extends BaseObj {
return rsFont;
}
- /** @deprecated renderscript is deprecated in J
- */
static public Font createFromResource(RenderScript rs, Resources res, int id, float pointSize) {
String name = "R." + Integer.toString(id);
@@ -215,7 +199,7 @@ public class Font extends BaseObj {
return rsFont;
}
- /** @deprecated renderscript is deprecated in J
+ /**
* Accepts one of the following family names as an argument
* and will attempt to produce the best match with a system font:
*