Searched refs:Font (Results 1 - 25 of 29) sorted by relevance

12

/frameworks/base/libs/hwui/font/
H A DFont.h37 // 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*,
155 inline int strictly_order_type(const Font::FontDescription& lhs,
156 const Font
[all...]
H A DFont.cpp28 #include "Font.h"
38 // Font
41 Font::Font(FontRenderer* state, const Font::FontDescription& desc) : function in class:android::uirenderer::Font
44 Font::FontDescription::FontDescription(const SkPaint* paint, const SkMatrix& rasterMatrix)
50 mFlags |= Font::kFakeBold;
63 Font::~Font() {
69 hash_t Font
[all...]
/frameworks/base/rs/java/android/renderscript/
H A DFont.java43 * <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
160 static public Font createFromFile(RenderScript rs, Resources res, String path, float pointSize) {
168 Font rsFont = new Font(fontId, rs);
176 static public Font createFromFile(RenderScript rs, Resources res, File path, float pointSize) {
183 static public Font createFromAsset(RenderScript rs, Resources res, String path, float pointSize) {
192 Font rsFon
[all...]
/frameworks/rs/
H A DrsFont.h44 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 = nullptr,
154 void measureText(const char *text, uint32_t len, Font::Rect *bounds);
164 friend class Font;
[all...]
H A DrsFont.cpp36 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 DrsContext.h115 ObjectBaseRef<Font> mFont;
144 void setFont(Font *);
152 Font * getFont() {return mFont.get();}
189 Font* getDefaultFont() const {
337 ObjectBaseRef<Font> mFont;
H A DrsScriptC_LibGL.cpp229 static void SetMetrics(Font::Rect *metrics,
250 Font::Rect metrics;
259 Font::Rect metrics;
264 void rsrBindFont(Context *rsc, Font *font) {
H A DrsRuntime.h103 void rsrSetMetrics(Context *, Font::Rect *metrics,
109 void rsrBindFont(Context *, Font *);
H A DrsContext.cpp235 ObjectBaseRef<Font> lastFont(getFont());
700 void Context::setFont(Font *f) {
834 Font *font = static_cast<Font *>(vfont);
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DBidiRenderer.java28 import java.awt.Font;
50 Font font;
65 private List<Font> mFonts;
80 mFonts = new ArrayList<Font>(paint.getFonts().size());
142 int flag = Font.LAYOUT_NO_LIMIT_CONTEXT | Font.LAYOUT_NO_START_CONTEXT;
143 flag |= isRtl ? Font.LAYOUT_RIGHT_TO_LEFT : Font.LAYOUT_LEFT_TO_RIGHT;
155 private void renderScript(int start, int limit, Font preferredFont, int flag,
179 for (Font fon
[all...]
H A DTypeface_Delegate.java25 import java.awt.Font;
60 /** @see Font#getStyle() */
85 public List<Font> getFonts(FontVariant variant) {
89 int weight = mWeight + ((mStyle & Font.BOLD) == 0 ? 0 : FontFamily_Delegate.BOLD_FONT_WEIGHT_DELTA);
93 final boolean isItalic = (mStyle & Font.ITALIC) != 0;
94 List<Font> fonts = new ArrayList<Font>(mFontFamilies.length);
98 Font font = ffd.getFont(weight, isItalic);
112 Font font2 = ffd2.getFont(weight, isItalic);
214 for (FontListParser.Font fon
[all...]
H A DFontFamily_Delegate.java30 import java.awt.Font;
90 * A class associating {@link Font} with its metadata.
94 Font mFont;
114 * The variant of the Font Family - compact or elegant.
175 public Font getFont(int desiredWeight, boolean isItalic) {
216 private static Font loadFont(String path) {
222 return Font.createFont(Font.TRUETYPE_FONT, f);
343 Font font = Font
[all...]
H A DPaint_Delegate.java32 import java.awt.Font;
60 * Class associating a {@link Font} and its {@link java.awt.FontMetrics}.
63 Font mFont;
116 * Returns the list of {@link Font} objects.
1131 for (Font font : typeface_delegate.getFonts(delegate.mFontVariant)) {
1256 * Update the {@link Font} object from the typeface, text size and scaling
1262 List<Font> fonts = mTypeface.getFonts(mFontVariant);
1275 Font font = fonts.get(i);
/frameworks/base/graphics/java/android/graphics/
H A DFontListParser.java55 public static class Font { class in class:FontListParser
56 Font(String fontName, int ttcIndex, List<Axis> axes, int weight, boolean isItalic) { method in class:FontListParser.Font
77 public Family(String name, List<Font> fonts, String lang, String variant) {
85 public List<Font> fonts;
125 List<Font> fonts = new ArrayList<Font>();
142 private static Font readFont(XmlPullParser parser)
165 return new Font(fullFilename, index, axes, weight, isItalic);
H A DTypeface.java206 throw new RuntimeException("Font asset not found " + path);
252 throw new RuntimeException("Font not found " + path);
300 for (FontListParser.Font font : family.fonts) {
/frameworks/minikin/include/minikin/
H A DFontFamily.h145 class Font { class in class:android::FontFamily
147 Font(MinikinFont* typeface, FontStyle style) : function in class:android::FontFamily::Font
154 std::vector<Font> mFonts;
/frameworks/rs/java/tests/RsTest_11/src/com/android/rs/test/
H A DRSTestCore.java41 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 DRSTestCore.java41 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 DRSTestCore.java41 private Font mFont;
103 mFont = Font.create(mRS, mRes, "serif", Font.Style.BOLD, 8);
/frameworks/base/media/java/android/media/
H A DTimedText.java62 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/libs/hwui/
H A DFontRenderer.h23 #include "font/Font.h"
138 friend class Font;
186 Font* mCurrentFont;
187 LruCache<Font::FontDescription, Font*> mActiveFonts;
H A DFontRenderer.cpp101 , mActiveFonts(LruCache<Font::FontDescription, Font*>::kUnlimitedCapacity)
154 LruCache<Font::FontDescription, Font*>::Iterator it(mActiveFonts);
164 LruCache<Font::FontDescription, Font*>::Iterator it(mActiveFonts);
186 LruCache<Font::FontDescription, Font*>::Iterator it(mActiveFonts);
246 ALOGE("Font size too large to fit in cache. width, height = %i, %i",
557 mCurrentFont = Font
[all...]
H A DTextDropShadowCache.h27 #include "font/Font.h"
48 , flags(paint->isFakeBoldText() ? Font::kFakeBold : 0)
/frameworks/minikin/libs/minikin/
H A DFontFamily.cpp105 mFonts.push_back(Font(typeface, style));
130 const Font* bestFont = NULL;
133 const Font& font = mFonts[i];
/frameworks/base/core/java/android/text/
H A DHtml.java1162 start(text, new Font(face));
1167 Font font = getLast(text, Font.class);
1287 private static class Font { class in class:HtmlToSpannedConverter
1290 public Font(String face) { method in class:HtmlToSpannedConverter.Font

Completed in 382 milliseconds

12