/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/ |
H A D | FontFactory.java | 19 import com.google.typography.font.sfntly.Font.Builder; 97 * @see Font#digest() 107 * @see Font#digest() 127 public Font[] loadFonts(InputStream is) throws IOException { in loadFonts() 133 return new Font[] {loadSingleOTF(pbis) }; in loadFonts() 157 private Font loadSingleOTF(InputStream is) throws IOException { in loadSingleOTF() 161 private Font[] loadCollection(InputStream is) throws IOException { in loadCollection() 162 Font.Builder[] builders = loadCollectionForBuilding(is); in loadCollection() 163 Font[] fonts = new Font[builder in loadCollection() [all...] |
/third_party/icu/icu4j/demos/src/com/ibm/icu/dev/demo/impl/ |
H A D | DemoUtility.java | 14 import java.awt.Font; 27 public static final Font titleFont = new Font("TimesRoman",Font.BOLD,18); 28 public static final Font labelFont = new Font("TimesRoman",Font.BOLD,14); 29 public static final Font choiceFont = new Font("Helvetica",Font [all...] |
/third_party/skia/third_party/externals/sfntly/cpp/src/sfntly/ |
H A D | font.cc | 60 * Font class 62 Font::~Font() {} in ~Font() 64 bool Font::HasTable(int32_t tag) const { in HasTable() 68 Table* Font::GetTable(int32_t tag) { in GetTable() 74 const TableMap* Font::GetTableMap() { in GetTableMap() 78 void Font::Serialize(OutputStream* os, std::vector<int32_t>* table_ordering) { in Serialize() 90 Font::Font(int32_t sfnt_version, std::vector<uint8_t>* digest) in Font() function in sfntly::Font 97 void Font [all...] |
H A D | font_factory.cc | 98 void FontFactory::SerializeFont(Font* font, OutputStream* os) { in SerializeFont() 103 CALLER_ATTACH Font::Builder* FontFactory::NewFontBuilder() { in NewFontBuilder() 104 return Font::Builder::GetOTFBuilder(this); in NewFontBuilder() 107 CALLER_ATTACH Font* FontFactory::LoadSingleOTF(InputStream* is) { in LoadSingleOTF() 113 CALLER_ATTACH Font* FontFactory::LoadSingleOTF(WritableFontData* wfd) { in LoadSingleOTF() 145 Font::Builder* FontFactory::LoadSingleOTFForBuilding(InputStream* is) { in LoadSingleOTFForBuilding() 147 Font::Builder* builder = Font::Builder::GetOTFBuilder(this, is); in LoadSingleOTFForBuilding() 152 CALLER_ATTACH Font::Builder* 156 Font in LoadSingleOTFForBuilding() [all...] |
H A D | font_factory.h | 77 // Font serialization 82 void SerializeFont(Font* font, OutputStream* os); 85 CALLER_ATTACH Font::Builder* NewFontBuilder(); 109 CALLER_ATTACH Font* LoadSingleOTF(InputStream* is); 110 CALLER_ATTACH Font* LoadSingleOTF(WritableFontData* wfd); 115 CALLER_ATTACH Font::Builder* LoadSingleOTFForBuilding(InputStream* is); 116 CALLER_ATTACH Font::Builder*
|
H A D | font.h | 32 // Note: following constants are embedded in Font class in Java. They are 123 // construct one use an instance of Font::Builder. 124 class Font : public RefCounted<Font> { class 127 // immutable Font objects. The builder is a one use non-thread safe object and 128 // once the Font object has been created it is no longer usable. To create a 129 // further Font object new builder will be required. 148 // Build the Font. After this call this builder will no longer be usable. 149 CALLER_ATTACH Font* Build(); 201 void BuildTablesFromBuilders(Font* fon [all...] |
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/fontinfo/ |
H A D | FontUtils.java | 19 import com.google.typography.font.sfntly.Font; 35 * Font Utility functions 40 * Gets a Font object for a font file in the given path 44 * @return the Font object representing the font 48 public static Font[] getFonts(String fontFile) throws IOException { in getFonts() 53 * Gets a Font object for a font file in the InputStream 57 * @return the Font object representing the font 61 public static Font[] getFonts(InputStream is) throws IOException { in getFonts() 64 Font[] fonts = null; in getFonts() 87 public static Table getTable(Font fon [all...] |
H A D | FontInfo.java | 5 import com.google.typography.font.sfntly.Font; 6 import com.google.typography.font.sfntly.Font.MacintoshEncodingId; 7 import com.google.typography.font.sfntly.Font.PlatformId; 8 import com.google.typography.font.sfntly.Font.UnicodeEncodingId; 9 import com.google.typography.font.sfntly.Font.WindowsEncodingId; 64 public static String sfntVersion(Font font) { in sfntVersion() 80 public static DataDisplayTable listFontMetrics(Font font) { in listFontMetrics() 130 public static DataDisplayTable listTables(Font font) { in listTables() 175 public static DataDisplayTable listNameEntries(Font font) { in listNameEntries() 223 public static DataDisplayTable listCmaps(Font fon [all...] |
/third_party/skia/third_party/externals/sfntly/cpp/src/sample/subtly/ |
H A D | stats.h | 25 class Font; 31 int32_t TotalFontSize(Font* font); 33 double TableSizePercent(Font* font, int32_t tag); 35 void PrintComparison(FILE* out, Font* font, Font* new_font); 37 void PrintStats(FILE* out, Font* font);
|
H A D | utils.h | 24 CALLER_ATTACH sfntly::Font* LoadFont(const char* font_path); 25 CALLER_ATTACH sfntly::Font::Builder* LoadFontBuilder(const char* font_path); 33 bool SerializeFont(const char* font_path, sfntly::Font* font); 35 sfntly::Font* font);
|
H A D | stats.cc | 27 int32_t TotalFontSize(Font* font) { in TotalFontSize() 37 double TableSizePercent(Font* font, int32_t tag) { in TableSizePercent() 42 void PrintComparison(FILE* out, Font* font, Font* new_font) { in PrintComparison() 70 void PrintStats(FILE* out, Font* font) { in PrintStats()
|
/third_party/skia/third_party/externals/sfntly/java/test/com/google/typography/font/sfntly/testutils/ |
H A D | TestFontUtils.java | 19 import com.google.typography.font.sfntly.Font; 20 import com.google.typography.font.sfntly.Font.Builder; 49 Logger.getLogger(Font.class.getCanonicalName()); 60 public static Font[] loadFont(File file) throws IOException { in loadFont() 72 public static Font[] loadFont(File file, boolean fingerprint) throws IOException { in loadFont() 94 public static Font[] loadFont(File file, byte[]... expectedFingerprints) throws IOException { in loadFont() 95 Font[] fonts = loadFont(file, true); in loadFont() 112 public static Font[] loadFontUsingByteArray(File file) throws IOException { in loadFontUsingByteArray() 124 public static Font[] loadFontUsingByteArray(File file, boolean fingerprint) throws IOException { in loadFontUsingByteArray() 138 Font[] buildAndCheckFon [all...] |
/third_party/skia/third_party/externals/sfntly/java/test/com/google/typography/font/sfntly/ |
H A D | NameEditingTests.java | 19 import com.google.typography.font.sfntly.Font.PlatformId; 20 import com.google.typography.font.sfntly.Font.WindowsEncodingId; 47 Font.Builder fontBuilder = TestFontUtils.builderForFontFile(fontFile); in testChangeOneName() 57 Font font = fontBuilder.build(); in testChangeOneName() 61 Font[] serializedFontArray = TestFontUtils.loadFont(serializedFontFile); in testChangeOneName() 76 Font.Builder fontBuilder = TestFontUtils.builderForFontFile(fontFile); in testModifyNameTableAndRevert() 89 Font font = fontBuilder.build(); in testModifyNameTableAndRevert() 93 Font[] serializedFontArray = TestFontUtils.loadFont(serializedFontFile); in testModifyNameTableAndRevert() 105 Font.Builder fontBuilder = TestFontUtils.builderForFontFile(fontFile); in testRemoveOneName() 116 Font fon in testRemoveOneName() [all...] |
H A D | CMapEditingTests.java | 55 Font.Builder fontBuilder = TestFontUtils.builderForFontFile(TEST_FONT_FILE); in testRemoveAllButOneCMap() 69 Font font = fontBuilder.build(); in testRemoveAllButOneCMap() 82 Font font = TestFontUtils.loadFont(TEST_FONT_FILE)[0]; in testCopyAllCMapToNewFont() 85 Font.Builder fontBuilder = factory.newFontBuilder(); in testCopyAllCMapToNewFont() 95 Font newFont = fontBuilder.build(); in testCopyAllCMapToNewFont() 105 Font.Builder fontBuilder = TestFontUtils.builderForFontFile(TEST_FONT_FILE); in testCMap4WithNoEditing() 113 Font newFont = fontBuilder.build(); in testCMap4WithNoEditing() 125 Font.Builder fontBuilder = TestFontUtils.builderForFontFile(TEST_FONT_FILE); in testCMap4Editing() 160 Font newFont = fontBuilder.build(); in testCMap4Editing() 169 //Font originalFon in testCMap4Editing() [all...] |
H A D | GPosTests.java | 21 List<Font> gposFontList = new ArrayList<Font>(); in testGposFiles() 23 Font[] fonts; in testGposFiles() 32 Font font = fonts[i]; in testGposFiles() 34 System.out.format("Font %s(%d) has GPOS\n", name, i); in testGposFiles() 45 for (Font font : gposFontList) { in testGposFiles()
|
H A D | HheaTests.java | 32 Font.Builder fontBuilder = factory.newFontBuilder(); in testAdvanceWidthMax() 37 Font font = fontBuilder.build(); in testAdvanceWidthMax() 44 Font.Builder fontBuilder = factory.newFontBuilder(); in testNumHMetrics() 49 Font font = fontBuilder.build(); in testNumHMetrics()
|
/third_party/skia/third_party/externals/sfntly/java/test/com/google/typography/font/sfntly/issue_tests/ |
H A D | Issue27Tests.java | 3 import com.google.typography.font.sfntly.Font; 25 Font.Builder fontBuilder = fontFactory.loadFontsForBuilding(new FileInputStream(fontFile))[0]; in testIssue27() 28 nameTableBuilder.nameBuilder(Font.PlatformId.Windows.value(), in testIssue27() 29 Font.WindowsEncodingId.UnicodeUCS4.value(), in testIssue27() 32 Font font = fontBuilder.build(); in testIssue27()
|
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/subsetter/ |
H A D | Subsetter.java | 19 import com.google.typography.font.sfntly.Font; 43 protected final Font font; 59 protected Subsetter(Font font, FontFactory fontFactory) { in Subsetter() 96 throw new InvalidParameterException("Font has no cmap table."); in setCMaps() 119 public Font.Builder subset() throws IOException { in subset() 120 Font.Builder fontBuilder = this.fontFactory.newFontBuilder(); in subset() 174 protected void setUpTables(Font.Builder fontBuilder) { in setUpTables()
|
H A D | RenumberingCMapTableSubsetter.java | 19 import com.google.typography.font.sfntly.Font; 20 import com.google.typography.font.sfntly.Font.Builder; 40 private static CMapFormat4 getCMapFormat4(Font font) { in getCMapFormat4() 50 static Map<Integer, Integer> computeMapping(Subsetter subsetter, Font font) { in computeMapping() 67 public boolean subset(Subsetter subsetter, Font font, Builder fontBuilder) throws IOException { in subset()
|
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/sample/sflint/ |
H A D | SFLint.java | 19 import com.google.typography.font.sfntly.Font; 86 Font[] fontArray = fontFactory.loadFonts(fis); in lintFontFile() 87 for (Font font : fontArray) { in lintFontFile() 97 private void lintNameTable(Font font) { in lintNameTable() 119 private void lintWindowsClipping(Font font) { in lintWindowsClipping() 159 private void lintAdvanceWidths(Font font) { in lintAdvanceWidths() 175 private void lintCompositeGlyph(Font font, CompositeGlyph glyph, int glyphId) { in lintCompositeGlyph() 197 private void lintAllGlyphs(Font font) { in lintAllGlyphs() 213 private void lintOS2Misc(Font font) { in lintOS2Misc() 227 private void lintFont(Font fon [all...] |
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/sample/sfview/ |
H A D | RuleDump.java | 3 import com.google.typography.font.sfntly.Font; 20 Font[] fonts = loadFont(new File(fontName)); in main() 25 Font font = fonts[0]; in main() 29 public static Font[] loadFont(File file) throws IOException { in loadFont()
|
H A D | SFView.java | 3 import com.google.typography.font.sfntly.Font; 18 Font[] fonts = loadFont(new File(fontName)); in main() 22 for (Font font : fonts) { in main() 34 private static Font[] loadFont(File file) throws IOException { in loadFont()
|
/third_party/python/Lib/tkinter/test/test_tkinter/ |
H A D | test_font.py | 17 cls.font = font.Font(root=cls.root, name=fontname, exists=True) 19 cls.font = font.Font(root=cls.root, name=fontname, exists=False) 41 f = font.Font(root=self.root, family=family, exists=True) 43 f = font.Font(root=self.root, family=family, exists=False) 67 font1 = font.Font(root=self.root, name=fontname, exists=True) 68 font2 = font.Font(root=self.root, name=fontname, exists=True) 78 font3 = font.Font(root=root2, name=fontname, exists=True) 113 self.assertIsInstance(testfont, font.Font) 118 repr(self.font), f'<tkinter.font.Font object {fontname!r}>' 155 self.assertIsInstance(testfont, font.Font) [all...] |
/third_party/skia/third_party/externals/sfntly/java/test/com/google/typography/font/tools/subsetter/ |
H A D | BasicSubsetTests.java | 19 import com.google.typography.font.sfntly.Font; 20 import com.google.typography.font.sfntly.Font.MacintoshEncodingId; 21 import com.google.typography.font.sfntly.Font.PlatformId; 49 Font[] srcFontArray = TestFontUtils.loadFont(fontFile); in testSubsetGlyphs() 50 Font srcFont = srcFontArray[0]; in testSubsetGlyphs() 90 Font.Builder dstFontBuilder = subsetter.subset(); in testSubsetGlyphs() 94 Font dstFont = dstFontBuilder.build(); in testSubsetGlyphs()
|
/third_party/python/Lib/tkinter/ |
H A D | font.py | 11 "nametofont", "Font", "families", "names"] 21 """Given the name of a tk named font, returns a Font representation. 23 return Font(name=name, exists=True, root=root) 26 class Font: class 108 if not isinstance(other, Font): 127 return Font(self._tk, **self.actual()) 209 f = Font(family="times", size=30, weight=NORMAL) 225 f = Font(font=("Courier", 20, "bold")) 234 fb = Font(font=w["font"]).copy()
|