Home
last modified time | relevance | path

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

12

/frameworks/base/libs/hwui/font/
DFont.h48 class Font {
82 ~Font();
90 const Font::FontDescription& getDescription() const { in getDescription()
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*,
155 inline int strictly_order_type(const Font::FontDescription& lhs, in strictly_order_type()
156 const Font::FontDescription& rhs) { in strictly_order_type()
157 return Font::FontDescription::compare(lhs, rhs) < 0; in strictly_order_type()
160 inline int compare_type(const Font::FontDescription& lhs, const Font::FontDescription& rhs) { in compare_type()
[all …]
DFont.cpp41 Font::Font(FontRenderer* state, const Font::FontDescription& desc) : in Font() function in android::uirenderer::Font
44 Font::FontDescription::FontDescription(const SkPaint* paint, const SkMatrix& rasterMatrix) in FontDescription()
50 mFlags |= Font::kFakeBold; in FontDescription()
63 Font::~Font() { in ~Font()
69 hash_t Font::FontDescription::hash() const { in hash()
84 int Font::FontDescription::compare(const Font::FontDescription& lhs, in compare()
85 const Font::FontDescription& rhs) { in compare()
126 void Font::invalidateTextureCache(CacheTexture* cacheTexture) { in invalidateTextureCache()
135 void Font::measureCachedGlyph(CachedGlyphInfo *glyph, int x, int y, in measureCachedGlyph()
157 void Font::drawCachedGlyph(CachedGlyphInfo* glyph, int x, int y, in drawCachedGlyph()
[all …]
/frameworks/base/rs/java/android/renderscript/
DFont.java47 public class Font extends BaseObj { class
151 Font(long id, RenderScript rs) { in Font() method in Font
160 … static public Font createFromFile(RenderScript rs, Resources res, String path, float pointSize) { in createFromFile()
168 Font rsFont = new Font(fontId, rs); in createFromFile()
176 static public Font createFromFile(RenderScript rs, Resources res, File path, float pointSize) { in createFromFile()
183 … static public Font createFromAsset(RenderScript rs, Resources res, String path, float pointSize) { in createFromAsset()
192 Font rsFont = new Font(fontId, rs); in createFromAsset()
199 static public Font createFromResource(RenderScript rs, Resources res, int id, float pointSize) { in createFromResource()
223 Font rsFont = new Font(fontId, rs); in createFromResource()
239 …static public Font create(RenderScript rs, Resources res, String familyName, Style fontStyle, floa… in create()
/frameworks/rs/
DrsFont.h44 class Font : public ObjectBase {
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 = nullptr,
154 void measureText(const char *text, uint32_t len, Font::Rect *bounds);
164 friend class Font; variable
184 void precacheLatin(Font *font);
[all …]
DrsFont.cpp36 Font::Font(Context *rsc) : ObjectBase(rsc), mCachedGlyphs(NULL) { in Font() function in Font
42 bool Font::init(const char *name, float fontSize, uint32_t dpi, const void *data, uint32_t dataLen)… in init()
78 void Font::preDestroy() const { in preDestroy()
87 void Font::invalidateTextureCache() { in invalidateTextureCache()
93 void Font::drawCachedGlyph(CachedGlyphInfo *glyph, int32_t x, int32_t y) { in drawCachedGlyph()
113 void Font::drawCachedGlyph(CachedGlyphInfo* glyph, int32_t x, int32_t y, in drawCachedGlyph()
139 void Font::measureCachedGlyph(CachedGlyphInfo *glyph, int32_t x, int32_t y, Rect *bounds) { in measureCachedGlyph()
161 void Font::renderUTF(const char *text, uint32_t len, int32_t x, int32_t y, in renderUTF()
169 if (mode == Font::MEASURE) { in renderUTF()
225 Font::CachedGlyphInfo* Font::getCachedUTFChar(int32_t utfChar) { in getCachedUTFChar()
[all …]
DrsContext.h115 ObjectBaseRef<Font> mFont;
144 void setFont(Font *);
152 Font * getFont() {return mFont.get();} in getFont()
189 Font* getDefaultFont() const { in getDefaultFont()
337 ObjectBaseRef<Font> mFont;
DrsScriptC_LibGL.cpp229 static void SetMetrics(Font::Rect *metrics, in SetMetrics()
250 Font::Rect metrics; in rsrMeasureTextAlloc()
259 Font::Rect metrics; in rsrMeasureText()
264 void rsrBindFont(Context *rsc, Font *font) { in rsrBindFont()
DrsRuntime.h103 void rsrSetMetrics(Context *, Font::Rect *metrics,
109 void rsrBindFont(Context *, Font *);
DrsContext.cpp235 ObjectBaseRef<Font> lastFont(getFont()); in displayDebugStats()
700 void Context::setFont(Font *f) { in setFont()
834 Font *font = static_cast<Font *>(vfont); in rsi_ContextBindFont()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DBidiRenderer.java28 import java.awt.Font;
50 Font font;
65 private List<Font> mFonts;
80 mFonts = new ArrayList<Font>(paint.getFonts().size()); in BidiRenderer()
142 int flag = Font.LAYOUT_NO_LIMIT_CONTEXT | Font.LAYOUT_NO_START_CONTEXT; in renderText()
143 flag |= isRtl ? Font.LAYOUT_RIGHT_TO_LEFT : Font.LAYOUT_LEFT_TO_RIGHT; in renderText()
155 private void renderScript(int start, int limit, Font preferredFont, int flag, in renderScript()
179 for (Font font : mFonts) { in renderScript()
216 private void render(int start, int limit, Font font, int flag, float[] advances, in render()
266 boolean isRtl, List<Font> fonts) { in getScriptRuns()
[all …]
DTypeface_Delegate.java25 import java.awt.Font;
85 public List<Font> getFonts(FontVariant variant) { in getFonts()
89 …int weight = mWeight + ((mStyle & Font.BOLD) == 0 ? 0 : FontFamily_Delegate.BOLD_FONT_WEIGHT_DELTA… in getFonts()
93 final boolean isItalic = (mStyle & Font.ITALIC) != 0; in getFonts()
94 List<Font> fonts = new ArrayList<Font>(mFontFamilies.length); in getFonts()
98 Font font = ffd.getFont(weight, isItalic); in getFonts()
112 Font font2 = ffd2.getFont(weight, isItalic); in getFonts()
214 for (FontListParser.Font font : family.fonts) {
DFontFamily_Delegate.java30 import java.awt.Font;
94 Font mFont;
175 public Font getFont(int desiredWeight, boolean isItalic) { in getFont()
216 private static Font loadFont(String path) { in loadFont()
222 return Font.createFont(Font.TRUETYPE_FONT, f); in loadFont()
343 Font font = Font.createFont(Font.TRUETYPE_FONT, fontStream);
412 Font font = loadFont(path);
465 Font derivedFont = srcFont.mFont;
468 derivedFont = derivedFont.deriveFont(Font.BOLD);
473 derivedFont = derivedFont.deriveFont(Font.ITALIC);
DPaint_Delegate.java32 import java.awt.Font;
63 Font mFont;
1131 for (Font font : typeface_delegate.getFonts(delegate.mFontVariant)) { in nHasGlyph()
1262 List<Font> fonts = mTypeface.getFonts(mFontVariant); in updateFontObject()
1275 Font font = fonts.get(i); in updateFontObject()
/frameworks/base/graphics/java/android/graphics/
DFontListParser.java55 public static class Font { class in FontListParser
56 Font(String fontName, int ttcIndex, List<Axis> axes, int weight, boolean isItalic) { in Font() method in FontListParser.Font
77 public Family(String name, List<Font> fonts, String lang, String variant) { in Family()
85 public List<Font> fonts;
125 List<Font> fonts = new ArrayList<Font>(); in readFamily()
142 private static Font readFont(XmlPullParser parser) in readFont()
165 return new Font(fullFilename, index, axes, weight, isItalic); in readFont()
/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/libs/hwui/
DFontRenderer.cpp101 , mActiveFonts(LruCache<Font::FontDescription, Font*>::kUnlimitedCapacity) in FontRenderer()
154 LruCache<Font::FontDescription, Font*>::Iterator it(mActiveFonts); in ~FontRenderer()
164 LruCache<Font::FontDescription, Font*>::Iterator it(mActiveFonts); in flushAllAndInvalidate()
186 LruCache<Font::FontDescription, Font*>::Iterator it(mActiveFonts); in flushLargeCaches()
557 mCurrentFont = Font::create(this, paint, matrix); in setFont()
613 Font::BITMAP, dataBuffer, paddedWidth, paddedHeight, nullptr, positions); in renderDropShadow()
648 Font* font = Font::create(this, paint, matrix); in precache()
DFontRenderer.h138 friend class Font;
186 Font* mCurrentFont;
187 LruCache<Font::FontDescription, Font*> mActiveFonts;
DTextDropShadowCache.h48 , flags(paint->isFakeBoldText() ? Font::kFakeBold : 0) in ShadowText()
/frameworks/minikin/include/minikin/
DFontFamily.h145 class Font {
147 Font(MinikinFont* typeface, FontStyle style) : in Font() function
154 std::vector<Font> mFonts;
/frameworks/rs/java/tests/RsTest_11/src/com/android/rs/test/
DRSTestCore.java41 private Font mFont;
99 mFont = Font.create(mRS, mRes, "serif", Font.Style.BOLD, 8); in init()
/frameworks/rs/java/tests/RsTest_14/src/com/android/rs/test/
DRSTestCore.java41 private Font mFont;
103 mFont = Font.create(mRS, mRes, "serif", Font.Style.BOLD, 8); in init()
/frameworks/rs/java/tests/RsTest_16/src/com/android/rs/test/
DRSTestCore.java41 private Font mFont;
103 mFont = Font.create(mRS, mRes, "serif", Font.Style.BOLD, 8); in init()
/frameworks/minikin/libs/minikin/
DFontFamily.cpp105 mFonts.push_back(Font(typeface, style)); in addFontLocked()
130 const Font* bestFont = NULL; in getClosestMatch()
133 const Font& font = mFonts[i]; in getClosestMatch()
/frameworks/base/tools/layoutlib/rename_font/
DREADME3 java.awt.Font#layoutGlyphVector() if two fonts with same name but differnt
/frameworks/base/core/java/android/text/
DHtml.java1162 start(text, new Font(face)); in startFont()
1167 Font font = getLast(text, Font.class); in endFont()
1287 private static class Font { class in HtmlToSpannedConverter
1290 public Font(String face) { in Font() method in HtmlToSpannedConverter.Font

12