Lines Matching refs:rs
151 Font(long id, RenderScript rs) {
152 super(id, rs);
159 static public Font createFromFile(RenderScript rs, Resources res, String path, float pointSize) {
160 rs.validate();
162 long fontId = rs.nFontCreateFromFile(path, pointSize, dpi);
167 Font rsFont = new Font(fontId, rs);
175 static public Font createFromFile(RenderScript rs, Resources res, File path, float pointSize) {
176 return createFromFile(rs, res, path.getAbsolutePath(), pointSize);
182 static public Font createFromAsset(RenderScript rs, Resources res, String path, float pointSize) {
183 rs.validate();
187 long fontId = rs.nFontCreateFromAsset(mgr, path, pointSize, dpi);
191 Font rsFont = new Font(fontId, rs);
198 static public Font createFromResource(RenderScript rs, Resources res, int id, float pointSize) {
201 rs.validate();
214 fontId = rs.nFontCreateFromAssetStream(name, pointSize, dpi, asset);
222 Font rsFont = new Font(fontId, rs);
238 static public Font create(RenderScript rs, Resources res, String familyName, Style fontStyle, float pointSize) {
242 return createFromFile(rs, res, fontPath, pointSize);