/frameworks/base/graphics/java/android/renderscript/ |
D | Font.java | 49 public class Font extends BaseObj { class 153 Font(int id, RenderScript rs) { in Font() method in Font 161 … static public Font createFromFile(RenderScript rs, Resources res, String path, float pointSize) { in createFromFile() 169 Font rsFont = new Font(fontId, rs); in createFromFile() 177 static public Font createFromFile(RenderScript rs, Resources res, File path, float pointSize) { in createFromFile() 184 … static public Font createFromAsset(RenderScript rs, Resources res, String path, float pointSize) { in createFromAsset() 193 Font rsFont = new Font(fontId, rs); in createFromAsset() 200 static public Font createFromResource(RenderScript rs, Resources res, int id, float pointSize) { in createFromResource() 224 Font rsFont = new Font(fontId, rs); in createFromResource() 240 …static public Font create(RenderScript rs, Resources res, String familyName, Style fontStyle, floa… in create()
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | FontLoader.java | 25 import java.awt.Font; 64 Font.PLAIN, 65 Font.BOLD, 66 Font.ITALIC, 67 Font.BOLD | Font.ITALIC 142 public synchronized List<Font> getFont(String family, int style) { in getFont() 143 List<Font> result = new ArrayList<Font>(); in getFont() 167 public synchronized List<Font> getFallbackFonts(int style) { in getFallbackFonts() 168 List<Font> result = new ArrayList<Font>(); in getFallbackFonts() 178 final Font[] font = new Font[4]; // Matches the 4 type-face styles. [all …]
|
/frameworks/base/libs/hwui/font/ |
D | Font.cpp | 36 Font::Font(FontRenderer* state, uint32_t fontId, float fontSize, in Font() function in android::uirenderer::Font 45 Font::~Font() { in ~Font() 53 void Font::invalidateTextureCache(CacheTexture* cacheTexture) { in invalidateTextureCache() 62 void Font::measureCachedGlyph(CachedGlyphInfo *glyph, int x, int y, in measureCachedGlyph() 84 void Font::drawCachedGlyph(CachedGlyphInfo* glyph, int x, int y, in drawCachedGlyph() 103 void Font::drawCachedGlyphBitmap(CachedGlyphInfo* glyph, int x, int y, in drawCachedGlyphBitmap() 131 void Font::drawCachedGlyph(CachedGlyphInfo* glyph, float x, float hOffset, float vOffset, in drawCachedGlyph() 168 CachedGlyphInfo* Font::getCachedGlyph(SkPaint* paint, glyph_t textUnit, bool precaching) { in getCachedGlyph() 186 void Font::render(SkPaint* paint, const char* text, uint32_t start, uint32_t len, in render() 197 void Font::render(SkPaint* paint, const char *text, uint32_t start, uint32_t len, in render() [all …]
|
D | Font.h | 42 class Font { 48 ~Font(); 67 static Font* create(FontRenderer* state, uint32_t fontId, float fontSize, 73 typedef void (Font::*RenderGlyph)(CachedGlyphInfo*, int, int, uint8_t*, 91 Font(FontRenderer* state, uint32_t fontId, float fontSize, int flags, uint32_t italicStyle,
|
/frameworks/rs/ |
D | rsFont.h | 45 class Font : public ObjectBase { 66 ~Font(); 76 static Font * create(Context *rsc, const char *name, float fontSize, uint32_t dpi, 120 Font(Context *rsc); 147 ObjectBaseRef<Font> mDefault; 151 Font::RenderMode mode = Font::FRAMEBUFFER, 152 Font::Rect *bounds = NULL, 155 void measureText(const char *text, uint32_t len, Font::Rect *bounds); 165 friend class Font; variable 185 void precacheLatin(Font *font); [all …]
|
D | rsFont.cpp | 34 Font::Font(Context *rsc) : ObjectBase(rsc), mCachedGlyphs(NULL) { in Font() function in Font 40 bool Font::init(const char *name, float fontSize, uint32_t dpi, const void *data, uint32_t dataLen)… in init() 76 void Font::preDestroy() const { in preDestroy() 85 void Font::invalidateTextureCache() { in invalidateTextureCache() 91 void Font::drawCachedGlyph(CachedGlyphInfo *glyph, int32_t x, int32_t y) { in drawCachedGlyph() 111 void Font::drawCachedGlyph(CachedGlyphInfo* glyph, int32_t x, int32_t y, in drawCachedGlyph() 137 void Font::measureCachedGlyph(CachedGlyphInfo *glyph, int32_t x, int32_t y, Rect *bounds) { in measureCachedGlyph() 159 void Font::renderUTF(const char *text, uint32_t len, int32_t x, int32_t y, in renderUTF() 167 if (mode == Font::MEASURE) { in renderUTF() 223 Font::CachedGlyphInfo* Font::getCachedUTFChar(int32_t utfChar) { in getCachedUTFChar() [all …]
|
D | rsContext.h | 88 ObjectBaseRef<Font> mFont; 112 void setFont(Font *); 120 Font * getFont() {return mFont.get();} in getFont() 154 Font* getDefaultFont() const { in getDefaultFont() 239 ObjectBaseRef<Font> mFont;
|
D | rsScriptC_LibGL.cpp | 233 static void SetMetrics(Font::Rect *metrics, in SetMetrics() 254 Font::Rect metrics; in rsrMeasureTextAlloc() 263 Font::Rect metrics; in rsrMeasureText() 268 void rsrBindFont(Context *rsc, Script *sc, Font *font) { in rsrBindFont()
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
D | Typeface_Delegate.java | 27 import java.awt.Font; 64 private List<Font> mFonts; 82 public static List<Font> getFonts(Typeface typeface) { in getFonts() 86 public static List<Font> getFonts(int native_int) { in getFonts() 95 public List<Font> getFonts() { in getFonts() 154 Font font = Font.createFont(Font.TRUETYPE_FONT, f); in nativeCreateFromFile() 203 private Typeface_Delegate(Font font) { in Typeface_Delegate()
|
/frameworks/base/tests/RenderScriptTests/MiscSamples/src/com/example/android/rs/miscsamples/ |
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); in initFonts() 329 mFontSerif = Font.create(mRS, mRes, "serif", Font.Style.NORMAL, 8); in initFonts() 331 mFontSerifBold = Font.create(mRS, mRes, "serif", Font.Style.BOLD, 8); in initFonts() [all …]
|
D | RsListRS.java | 87 private Font mItalic; 132 mItalic = Font.create(mRS, mRes, "serif", Font.Style.BOLD_ITALIC, 8); in initRS()
|
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/ |
D | TextTest.java | 88 mTextScript.set_gFontSans(Font.create(mRS, mRes, "sans-serif", in initTextScript() 89 Font.Style.NORMAL, 8.0f / metrics.density)); in initTextScript() 90 mTextScript.set_gFontSerif(Font.create(mRS, mRes, "serif", in initTextScript() 91 Font.Style.NORMAL, 8.0f / metrics.density)); in initTextScript()
|
D | UiTest.java | 50 Font mFontSans; 102 mFontSans = Font.create(mRS, mRes, "sans-serif", Font.Style.NORMAL, 8); in init()
|
/frameworks/base/libs/hwui/ |
D | FontRenderer.h | 106 friend class Font; 139 void removeFont(const Font* font); 154 Font* mCurrentFont; 155 Vector<Font*> mActiveFonts;
|
D | FontRenderer.cpp | 110 Vector<Font*> fontsToDereference = mActiveFonts; in ~FontRenderer() 472 flags |= Font::kFakeBold; in setFont() 482 mCurrentFont = Font::create(this, fontId, fontSize, flags, italicStyle, in setFont() 520 Font::BITMAP, dataBuffer, paddedWidth, paddedHeight, NULL, positions); in renderDropShadow() 554 flags |= Font::kFakeBold; in precache() 564 Font* font = Font::create(this, SkTypeface::UniqueID(paint->getTypeface()), in precache() 614 void FontRenderer::removeFont(const Font* font) { in removeFont()
|
D | Android.mk | 10 font/Font.cpp \
|
/frameworks/base/media/java/android/media/ |
D | TimedText.java | 101 private List<Font> mFontList = null; 244 public static final class Font { class in TimedText 260 public Font(int id, String name) { in Font() method in TimedText.Font 604 Font font = new Font(id, name); in readFont() 607 mFontList = new ArrayList<Font>(); in readFont()
|
/frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/ |
D | SceneGraphRS.java | 26 import android.renderscript.Font.Style; 64 private Font mItalic; 197 mItalic = Font.create(mRS, mRes, "serif", Font.Style.ITALIC, 8); in initRS()
|
D | SimpleModelRS.java | 54 private Font mItalic; 177 mItalic = Font.create(mRS, mRes, "serif", Font.Style.ITALIC, 8); in initRS()
|
/frameworks/base/tests/RenderScriptTests/tests_v11/src/com/android/rs/test/ |
D | RSTestCore.java | 41 private Font mFont; 99 mFont = Font.create(mRS, mRes, "serif", Font.Style.BOLD, 8); in init()
|
/frameworks/base/tests/RenderScriptTests/tests_v14/src/com/android/rs/test/ |
D | RSTestCore.java | 41 private Font mFont; 103 mFont = Font.create(mRS, mRes, "serif", Font.Style.BOLD, 8); in init()
|
/frameworks/base/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/ |
D | FBOTestRS.java | 59 private Font mItalic; 195 mItalic = Font.create(mRS, mRes, "serif", Font.Style.ITALIC, 8); in initRS()
|
D | FBOSyncRS.java | 60 private Font mItalic; 203 mItalic = Font.create(mRS, mRes, "serif", Font.Style.ITALIC, 8); in initRS()
|
/frameworks/base/tests/RenderScriptTests/tests/src/com/android/rs/test/ |
D | RSTestCore.java | 41 private Font mFont; 128 mFont = Font.create(mRS, mRes, "serif", Font.Style.BOLD, 8); in init()
|
/frameworks/base/core/java/android/text/ |
D | Html.java | 651 text.setSpan(new Font(color, face), len, len, Spannable.SPAN_MARK_MARK); in startFont() 656 Object obj = getLast(text, Font.class); in endFont() 662 Font f = (Font) obj; in endFont() 820 private static class Font { class in HtmlToSpannedConverter 824 public Font(String color, String face) { in Font() method in HtmlToSpannedConverter.Font
|