summaryrefslogtreecommitdiffstats
path: root/graphics/java/android/renderscript/Font.java
diff options
context:
space:
mode:
authorAlex Sakhartchouk <alexst@google.com>2012-04-19 16:30:58 -0700
committerAlex Sakhartchouk <alexst@google.com>2012-04-19 16:30:58 -0700
commita0c2eb27b408660b02fa248943166d6c7e447908 (patch)
tree932a25b9e5be808ec05f9913ae876ebf8a5b692e /graphics/java/android/renderscript/Font.java
parentcada1ae71781795c10a359f1e11ad5a3f125cf67 (diff)
downloadframeworks_base-a0c2eb27b408660b02fa248943166d6c7e447908.zip
frameworks_base-a0c2eb27b408660b02fa248943166d6c7e447908.tar.gz
frameworks_base-a0c2eb27b408660b02fa248943166d6c7e447908.tar.bz2
Deprecate
Change-Id: Idad2c5ad4f8a30f8cc60d88318f2e1809866d309
Diffstat (limited to 'graphics/java/android/renderscript/Font.java')
-rw-r--r--graphics/java/android/renderscript/Font.java26
1 files changed, 21 insertions, 5 deletions
diff --git a/graphics/java/android/renderscript/Font.java b/graphics/java/android/renderscript/Font.java
index 18dacac..cd1010c 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;
-/**
- * <p>This class gives users a simple way to draw hardware accelerated text.
+/** @deprecated renderscript is deprecated in J
+ * <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,10 +71,20 @@ 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;
}
@@ -138,7 +148,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) {
@@ -154,10 +164,14 @@ 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();
@@ -171,6 +185,8 @@ 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);
@@ -199,7 +215,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:
*