Home | History | Annotate | Download | only in renderscript

Lines Matching defs:Font

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