Home
last modified time | relevance | path

Searched refs:Font (Results 1 – 25 of 46) sorted by relevance

12

/frameworks/base/graphics/java/android/renderscript/
DFont.java49 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/
DFontLoader.java25 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/
DFont.cpp36 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 …]
DFont.h42 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/
DrsFont.h45 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 …]
DrsFont.cpp34 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 …]
DrsContext.h88 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;
DrsScriptC_LibGL.cpp233 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/
DTypeface_Delegate.java27 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/
DRsRenderStatesRS.java23 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 …]
DRsListRS.java87 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/
DTextTest.java88 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()
DUiTest.java50 Font mFontSans;
102 mFontSans = Font.create(mRS, mRes, "sans-serif", Font.Style.NORMAL, 8); in init()
/frameworks/base/libs/hwui/
DFontRenderer.h106 friend class Font;
139 void removeFont(const Font* font);
154 Font* mCurrentFont;
155 Vector<Font*> mActiveFonts;
DFontRenderer.cpp110 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()
DAndroid.mk10 font/Font.cpp \
/frameworks/base/media/java/android/media/
DTimedText.java101 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/
DSceneGraphRS.java26 import android.renderscript.Font.Style;
64 private Font mItalic;
197 mItalic = Font.create(mRS, mRes, "serif", Font.Style.ITALIC, 8); in initRS()
DSimpleModelRS.java54 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/
DRSTestCore.java41 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/
DRSTestCore.java41 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/
DFBOTestRS.java59 private Font mItalic;
195 mItalic = Font.create(mRS, mRes, "serif", Font.Style.ITALIC, 8); in initRS()
DFBOSyncRS.java60 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/
DRSTestCore.java41 private Font mFont;
128 mFont = Font.create(mRS, mRes, "serif", Font.Style.BOLD, 8); in init()
/frameworks/base/core/java/android/text/
DHtml.java651 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

12