/frameworks/base/libs/hwui/font/ |
H A D | Font.h | 39 // Font 48 class Font { class in namespace:android::uirenderer 82 ~Font(); 90 const Font::FontDescription& getDescription() const { 97 static Font* create(FontRenderer* state, const SkPaint* paint, const SkMatrix& matrix); 102 Font(FontRenderer* state, const Font::FontDescription& desc); 104 typedef void (Font::*RenderGlyph)(CachedGlyphInfo*, int, int, uint8_t*, 156 inline int strictly_order_type(const Font::FontDescription& lhs, 157 const Font [all...] |
H A D | Font.cpp | 30 #include "Font.h" 40 // Font 43 Font::Font(FontRenderer* state, const Font::FontDescription& desc) : function in class:android::uirenderer::Font 48 Font::FontDescription::FontDescription(const SkPaint* paint, const SkMatrix& rasterMatrix) 54 mFlags |= Font::kFakeBold; 67 Font::~Font() { 75 hash_t Font [all...] |
/frameworks/base/rs/java/android/renderscript/ |
H A D | Font.java | 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 { class in inherits:BaseObj 151 Font(long id, RenderScript rs) { method in class:Font 159 static public Font createFromFile(RenderScript rs, Resources res, String path, float pointSize) { 167 Font rsFont = new Font(fontId, rs); 175 static public Font createFromFile(RenderScript rs, Resources res, File path, float pointSize) { 182 static public Font createFromAsset(RenderScript rs, Resources res, String path, float pointSize) { 191 Font rsFon [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Typeface_Delegate.java | 25 import java.awt.Font; 58 /** @see Font#getStyle() */ 83 public List<Font> getFonts(FontVariant variant) { 87 int weight = mWeight + ((mStyle & Font.BOLD) == 0 ? 0 : FontFamily_Delegate.BOLD_FONT_WEIGHT_DELTA); 91 final boolean isItalic = (mStyle & Font.ITALIC) != 0; 92 List<Font> fonts = new ArrayList<Font>(mFontFamilies.length); 96 Font font = ffd.getFont(weight, isItalic); 110 Font font2 = ffd2.getFont(weight, isItalic);
|
H A D | BidiRenderer.java | 22 import java.awt.Font; 51 Font font; 66 private List<Font> mFonts; 81 mFonts = new ArrayList<Font>(paint.getFonts().size()); 143 int flag = Font.LAYOUT_NO_LIMIT_CONTEXT | Font.LAYOUT_NO_START_CONTEXT; 144 flag |= isRtl ? Font.LAYOUT_RIGHT_TO_LEFT : Font.LAYOUT_LEFT_TO_RIGHT; 156 private void renderScript(int start, int limit, Font preferredFont, int flag, 180 for (Font fon [all...] |
H A D | FontFamily_Delegate.java | 28 import java.awt.Font; 65 * A class associating {@link Font} with its metadata. 69 Font mFont; 89 * The variant of the Font Family - compact or elegant. 150 public Font getFont(int desiredWeight, boolean isItalic) { 189 /*package*/ static Font loadFont(String path) { 195 return Font.createFont(Font.TRUETYPE_FONT, f); 310 Font font = loadFont(path); 360 Font derivedFon [all...] |
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/ |
H A D | TextTest.java | 88 mTextScript.set_gFontSans(Font.create(mRS, mRes, "sans-serif", 89 Font.Style.NORMAL, 8.0f / metrics.density)); 90 mTextScript.set_gFontSerif(Font.create(mRS, mRes, "serif", 91 Font.Style.NORMAL, 8.0f / metrics.density));
|
/frameworks/rs/ |
H A D | rsFont.h | 44 class Font : public ObjectBase { class in namespace:android::renderscript 65 ~Font(); 75 static Font * create(Context *rsc, const char *name, float fontSize, uint32_t dpi, 119 Font(Context *rsc); 146 ObjectBaseRef<Font> mDefault; 150 Font::RenderMode mode = Font::FRAMEBUFFER, 151 Font::Rect *bounds = NULL, 154 void measureText(const char *text, uint32_t len, Font::Rect *bounds); 164 friend class Font; [all...] |
H A D | rsFont.cpp | 36 Font::Font(Context *rsc) : ObjectBase(rsc), mCachedGlyphs(NULL) { function in class:Font 42 bool Font::init(const char *name, float fontSize, uint32_t dpi, const void *data, uint32_t dataLen) { 78 void Font::preDestroy() const { 87 void Font::invalidateTextureCache() { 93 void Font::drawCachedGlyph(CachedGlyphInfo *glyph, int32_t x, int32_t y) { 113 void Font::drawCachedGlyph(CachedGlyphInfo* glyph, int32_t x, int32_t y, 139 void Font::measureCachedGlyph(CachedGlyphInfo *glyph, int32_t x, int32_t y, Rect *bounds) { 161 void Font::renderUTF(const char *text, uint32_t len, int32_t x, int32_t y, 169 if (mode == Font [all...] |
H A D | rsContext.h | 109 ObjectBaseRef<Font> mFont; 138 void setFont(Font *); 146 Font * getFont() {return mFont.get();} 183 Font* getDefaultFont() const { 278 ObjectBaseRef<Font> mFont;
|
H A D | rsScriptC_LibGL.cpp | 233 static void SetMetrics(Font::Rect *metrics, 254 Font::Rect metrics; 263 Font::Rect metrics; 268 void rsrBindFont(Context *rsc, Font *font) {
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | FontListParser.java | 45 public static class Font { class in class:FontListParser 46 Font(String fontName, int weight, boolean isItalic) { method in class:FontListParser.Font 63 public Family(String name, List<Font> fonts, String lang, String variant) { 71 public List<Font> fonts; 110 List<Font> fonts = new ArrayList<Font>(); 120 fonts.add(new Font(fullFilename, weight, isItalic));
|
/frameworks/base/tests/RenderScriptTests/MiscSamples/src/com/example/android/rs/miscsamples/ |
H A D | RsListRS.java | 87 private Font mItalic; 132 mItalic = Font.create(mRS, mRes, "serif", Font.Style.BOLD_ITALIC, 8);
|
H A D | RsRenderStatesRS.java | 23 import android.renderscript.Font.Style; 110 Font mFontSans; 111 Font mFontSerif; 112 Font mFontSerifBold; 113 Font mFontSerifItalic; 114 Font mFontSerifBoldItalic; 115 Font mFontMono; 328 mFontSans = Font.create(mRS, mRes, "sans-serif", Font.Style.NORMAL, 8); 329 mFontSerif = Font [all...] |
/frameworks/base/libs/hwui/ |
H A D | FontRenderer.h | 32 #include "font/Font.h" 141 friend class Font; 175 void removeFont(const Font* font); 191 Font* mCurrentFont; 192 LruCache<Font::FontDescription, Font*> mActiveFonts;
|
H A D | FontRenderer.cpp | 101 mActiveFonts(LruCache<Font::FontDescription, Font*>::kUnlimitedCapacity) { 164 LruCache<Font::FontDescription, Font*>::Iterator it(mActiveFonts); 174 LruCache<Font::FontDescription, Font*>::Iterator it(mActiveFonts); 194 LruCache<Font::FontDescription, Font*>::Iterator it(mActiveFonts); 254 ALOGE("Font size too large to fit in cache. width, height = %i, %i", 591 mCurrentFont = Font [all...] |
/frameworks/minikin/include/minikin/ |
H A D | FontFamily.h | 149 class Font { class in class:android::FontFamily 151 Font(MinikinFont* typeface, FontStyle style) : function in class:android::FontFamily::Font 158 std::vector<Font> mFonts;
|
/frameworks/rs/java/tests/RsTest_11/src/com/android/rs/test/ |
H A D | RSTestCore.java | 41 private Font mFont; 99 mFont = Font.create(mRS, mRes, "serif", Font.Style.BOLD, 8);
|
/frameworks/rs/java/tests/RsTest_14/src/com/android/rs/test/ |
H A D | RSTestCore.java | 41 private Font mFont; 103 mFont = Font.create(mRS, mRes, "serif", Font.Style.BOLD, 8);
|
/frameworks/rs/java/tests/RsTest_16/src/com/android/rs/test/ |
H A D | RSTestCore.java | 41 private Font mFont; 103 mFont = Font.create(mRS, mRes, "serif", Font.Style.BOLD, 8);
|
/frameworks/base/media/java/android/media/ |
H A D | TimedText.java | 62 private static final int KEY_STRUCT_FONT_LIST = 9; // List<Font> 101 private List<Font> mFontList = null; 244 public static final class Font { class in class:TimedText 260 public Font(int id, String name) { method in class:TimedText.Font 592 * To parse and store the Font list 604 Font font = new Font(id, name); 607 mFontList = new ArrayList<Font>(); 724 * List of CharPos, Karaoke, Font, Style, and HyperText, or 3) an instance of
|
/frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/ |
H A D | SceneGraphRS.java | 26 import android.renderscript.Font.Style; 64 private Font mItalic; 197 mItalic = Font.create(mRS, mRes, "serif", Font.Style.ITALIC, 8);
|
H A D | SimpleModelRS.java | 54 private Font mItalic; 177 mItalic = Font.create(mRS, mRes, "serif", Font.Style.ITALIC, 8);
|
/frameworks/base/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/ |
H A D | FBOSyncRS.java | 60 private Font mItalic; 203 mItalic = Font.create(mRS, mRes, "serif", Font.Style.ITALIC, 8);
|
H A D | FBOTestRS.java | 59 private Font mItalic; 195 mItalic = Font.create(mRS, mRes, "serif", Font.Style.ITALIC, 8);
|