Home | History | Annotate | Download | only in renderscript

Lines Matching defs:Font

37  * rendered glyph bitmaps is maintained. Each font object represents a combination of a typeface,
38 * and point size. You can create multiple font objects to represent styles such as bold or italic text,
39 * faces, and different font sizes. During creation, the Android system quieries device's screen DPI to
42 * font to the RenderScript is required. A note of caution on performance, though the state changes
46 * <p>Font color and transparency are not part of the font object and you can freely modify
47 * them in the script to suit the user's rendering needs. Font colors work as a state machine.
50 public class Font extends BaseObj {
52 //These help us create a font by family name
154 Font(int id, RenderScript rs) {
162 static public Font createFromFile(RenderScript rs, Resources res, String path, float pointSize) {
168 throw new RSRuntimeException("Unable to create font from file " + path);
170 Font rsFont = new Font(fontId, rs);
178 static public Font createFromFile(RenderScript rs, Resources res, File path, float pointSize) {
185 static public Font createFromAsset(RenderScript rs, Resources res, String path, float pointSize) {
192 throw new RSRuntimeException("Unable to create font from asset " + path);
194 Font rsFont = new Font(fontId, rs);
201 static public Font createFromResource(RenderScript rs, Resources res, int id, float pointSize) {
223 throw new RSRuntimeException("Unable to create font from resource " + id);
225 Font rsFont = new Font(fontId, rs);
232 * and will attempt to produce the best match with a system font:
239 * Returns default font if no match could be found.
241 static public Font create(RenderScript rs, Resources res, String familyName, Style fontStyle, float pointSize) {