/frameworks/base/core/tests/coretests/src/android/provider/ |
MockFontProvider.java | 52 final static String AUTHORITY = "android.provider.fonts.font"; 100 static class Font { 101 public Font(int id, int fileId, int ttcIndex, String varSettings, int weight, int italic, 152 private static Map<String, Font[]> QUERY_MAP; 154 HashMap<String, Font[]> map = new HashMap<>(); 157 map.put("singleFontFamily", new Font[] { 158 new Font(id++, SAMPLE_FONT_FILE_0_ID, 0, null, 400, 0, Columns.RESULT_CODE_OK), 161 map.put("singleFontFamily2", new Font[] { 162 new Font(id++, SAMPLE_FONT_FILE_0_ID, 0, null, 700, 0, Columns.RESULT_CODE_OK), 165 map.put(BLOCKING_QUERY, new Font[] { [all...] |
/frameworks/base/libs/hwui/font/ |
Font.cpp | 31 #include "Font.h" 38 // Font 41 Font::Font(FontRenderer* state, const Font::FontDescription& desc) 44 Font::FontDescription::FontDescription(const SkPaint* paint, const SkMatrix& rasterMatrix) 50 mFlags |= Font::kFakeBold; 59 ALOGW("Could not query the inverse lookup transform for this font"); 63 Font::~Font() { 478 Font* font = state->mActiveFonts.get(description); local [all...] |
/external/sfntly/cpp/src/sample/subtly/ |
merger_main.cc | 23 #include "sfntly/font.h" 36 void CheckLoading(const char* font_path, Font* font) { 37 if (!font || font->num_tables() == 0) { 38 fprintf(stderr, "Could not load font %s. Terminating.\n", font_path); 51 Ptr<Font> font; local 52 font.Attach(LoadFont(argv[i])); 53 CheckLoading(argv[i], font); [all...] |
font_info.h | 23 #include "sfntly/font.h" 34 typedef std::map<FontId, sfntly::Ptr<sfntly::Font> > FontIdMap; 37 // font id that has the glyph table this glyph belongs to. 59 // Font information used for FontAssembler in the construction of a new font. 60 // Will make copies of character map, glyph id set and font id map. 66 // resolved_glyph_ids defines GlyphIds which should be in the final font 67 // fonts is a map of font ids to fonts to reference any needed table 73 // Gets the table with the specified tag from the font corresponding to 74 // font_id or NULL if there is no such font/table [all...] |
utils.cc | 21 #include "sfntly/font.h" 29 CALLER_ATTACH Font* LoadFont(const char* font_path) { 37 CALLER_ATTACH Font::Builder* LoadFontBuilder(const char* font_path) { 61 bool SerializeFont(const char* font_path, Font* font) { 66 return SerializeFont(font_path, font_factory, font); 69 bool SerializeFont(const char* font_path, FontFactory* factory, Font* font) { 70 if (!font_path || !factory || !font) 72 // Serializing the font to a stream [all...] |
/external/sfntly/cpp/src/sfntly/ |
font.h | 32 // Note: following constants are embedded in Font class in Java. They are 35 // Platform ids. These are used in a number of places within the font whenever 48 // Unicode encoding ids. These are used in a number of places within the font 62 // Windows encoding ids. These are used in a number of places within the font 79 // font whenever character encodings need to be specified. 122 // An sfnt container font object. This object is immutable and thread safe. To 123 // construct one use an instance of Font::Builder. 124 class Font : public RefCounted<Font> { 126 // A builder for a font object. The builder allows the for the creation o [all...] |
font_factory.cc | 48 FontPtr font; local 49 font.Attach(LoadSingleOTF(pbis)); 50 if (font) { 51 output->push_back(font); 62 FontPtr font; local 63 font.Attach(LoadSingleOTF(wfd)); 64 if (font) { 65 output->push_back(font); 98 void FontFactory::SerializeFont(Font* font, OutputStream* os) 129 FontPtr font; local 142 FontPtr font; local [all...] |
/external/proguard/src/proguard/gui/splash/ |
FontSprite.java | 26 * This Sprite sets the font for another given sprite. 32 private final VariableFont font; field in class:FontSprite 38 * @param font the variable Font of the given sprite. 39 * @param sprite the sprite that will be provided of a font and painted. 41 public FontSprite(VariableFont font, 44 this.font = font; 53 // Save the old font. 54 Font oldFont = graphics.getFont() [all...] |
/external/sfntly/cpp/src/sample/chromium/ |
subsetter_impl.h | 22 #include "sfntly/font.h" 68 CALLER_ATTACH Font* Subset(const IntegerSet& glyph_ids,
|
/external/sfntly/cpp/src/test/ |
test_font_utils.h | 20 #include "sfntly/font.h" 28 void SerializeFont(const char* font_path, FontFactory* factory, Font* font);
|
/frameworks/rs/ |
rsFont.h | 44 class Font : public ObjectBase { 65 ~Font(); 75 static Font * create(Context *rsc, const char *name, float fontSize, uint32_t dpi, 119 explicit 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...] |
rsFont.cpp | 34 Font::Font(Context *rsc) : ObjectBase(rsc), mCachedGlyphs(NULL) { 40 bool Font::init(const char *name, float fontSize, uint32_t dpi, const void *data, uint32_t dataLen) { 55 ALOGE("Unable to initialize font %s", name); 65 ALOGE("Unable to set font size on %s", name); 76 void Font::preDestroy() const { 86 void Font::invalidateTextureCache() { 92 void Font::drawCachedGlyph(CachedGlyphInfo *glyph, int32_t x, int32_t y) { 112 void Font::drawCachedGlyph(CachedGlyphInfo* glyph, int32_t x, int32_t y, 138 void Font::measureCachedGlyph(CachedGlyphInfo *glyph, int32_t x, int32_t y, Rect *bounds) [all...] |
/frameworks/layoutlib/bridge/src/android/graphics/ |
Typeface_Delegate.java | 41 import java.awt.Font; 84 /** @see Font#getStyle() */ 87 private SoftReference<EnumMap<FontVariant, List<Font>>> mFontsCache = new SoftReference<>(null); 235 /*package*/ static FontFamily createFontFamily(String familyName, List<FontConfig.Font> fonts, 238 for (FontConfig.Font font : fonts) { 239 String fullPathName = fontDir + font.getFontName(); 240 FontFamily_Delegate.addFont(fontFamily.mBuilderPtr, fullPathName, font.getWeight(), 241 font.isItalic()); 248 * Loads a single font or font family from dis 344 Font font = ffd.getFont(weight, isItalic); local [all...] |
BidiRenderer.java | 29 import java.awt.Font; 32 import java.awt.font.FontRenderContext; 33 import java.awt.font.GlyphVector; 41 * Render the text by breaking it into various scripts and using the right font for each script. 54 private final Font font; field in class:BidiRenderer.ScriptRun 56 private ScriptRun(int start, int limit, @NonNull Font font) { 59 this.font = font; 177 Font font = fontInfos.get(i).mFont; local [all...] |
FontFamily_Delegate.java | 31 import java.awt.Font; 74 // The cache has a drawback that if the font file changed after the font object was created, 93 * A class associating {@link Font} with its metadata. 97 Font mFont; 139 private Map<FontInfo, Font> mFonts = new LinkedHashMap<>(); 142 * The variant of the Font Family - compact or elegant. 181 // Skip font configuration files. 203 public Font getFont(int desiredWeight, boolean isItalic) { 208 Font cachedFont = mFonts.get(desiredStyle) [all...] |
/frameworks/base/cmds/bootanimation/ |
BootAnimation.h | 48 struct Font { 93 Font clockFont; 146 status_t initFont(Font* font, const char* fallback); 149 void drawText(const char* str, const Font& font, bool bold, int* x, int* y); 150 void drawClock(const Font& font, const int xPos, const int yPos);
|
/frameworks/base/core/java/android/text/ |
FontConfig.java | 31 * Font configuration descriptions for System fonts. 51 * Returns the list of aliases defined for the font families in the system fonts. 58 * Class that holds information about a Font. 60 public static final class Font { 72 public Font(@NonNull String fontName, int ttcIndex, @NonNull FontVariationAxis[] axes, 83 * Returns the name associated by the system to this font. 90 * Returns the index to be used to access this font when accessing a TTC file. 97 * Returns the list of axes associated to this font. 104 * Returns the weight value for this font. 111 * Returns whether this font is italic [all...] |
/external/javassist/sample/rmi/ |
CountApplet.java | 11 private Font font;
field in class:CountApplet 39 font = new Font("SansSerif", Font.ITALIC, 40);
68 g.setFont(font);
|
/external/sfntly/cpp/src/sfntly/table/ |
table.h | 30 class Font; 32 // A concrete implementation of a root level table in the font. This is the base 89 virtual void SetFont(Font* font); 96 Ptr<Font> font_;
|
/external/universal-tween-engine/java/applets/src/aurelienribon/tweenengine/applets/ |
Theme.java | 7 import java.awt.Font; 39 Font font = c.getFont(); local 40 c.setFont(new Font(font.getFamily(), Font.BOLD, font.getSize()));
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/X11/ |
Xdefs.h | 81 typedef struct _Font *FontPtr; /* also in fonts/include/font.h */ 86 typedef XID Font;
|
/frameworks/minikin/tests/stresstest/ |
FontFamilyTest.cpp | 38 auto font = std::make_shared<FreeTypeMinikinFontForTest>(fontPath); local 39 std::vector<Font> fonts; 40 fonts.push_back(Font::Builder(font).build());
|
/external/python/cpython2/Lib/lib-tk/ |
tkFont.py | 1 # Tkinter font wrapper 20 """Given the name of a tk named font, returns a Font representation. 22 return Font(name=name, exists=True) 24 class Font: 26 """Represents a named font. 30 font -- font specifier (name, system font, or (family, size, style)-tuple) 31 name -- name to use for this font configuration (defaults to a unique name [all...] |
/external/python/cpython3/Lib/tkinter/ |
font.py | 1 # Tkinter font wrapper 20 """Given the name of a tk named font, returns a Font representation. 22 return Font(name=name, exists=True) 25 class Font: 26 """Represents a named font. 30 font -- font specifier (name, system font, or (family, size, style)-tuple) 31 name -- name to use for this font configuration (defaults to a unique name [all...] |
/frameworks/minikin/tests/util/ |
FontTestUtils.cpp | 70 std::vector<Font> fonts; 72 if (xmlStrcmp(fontNode->name, (const xmlChar*)"font") != 0) { 86 // TODO: Support font variation axis. 97 fonts.push_back(Font::Builder(minikinFont).setStyle(style).build()); 102 fonts.push_back(Font::Builder(minikinFont).setStyle(style).build()); 125 auto font = std::make_shared<FreeTypeMinikinFontForTest>(getTestFontPath(filePath)); local 126 std::vector<Font> fonts; 127 fonts.push_back(Font::Builder(font).build()); 132 auto font = std::make_shared<FreeTypeMinikinFontForTest>(getTestFontPath(filePath)) local [all...] |