/third_party/skia/third_party/externals/sfntly/cpp/src/sfntly/data/ |
D | writable_font_data.cc | 27 WritableFontData::WritableFontData(ByteArray* ba) : ReadableFontData(ba) { in WritableFontData() function in sfntly::WritableFontData 30 WritableFontData::~WritableFontData() {} in ~WritableFontData() 34 WritableFontData* WritableFontData::CreateWritableFontData(int32_t length) { in CreateWritableFontData() 42 WritableFontDataPtr wfd = new WritableFontData(ba); in CreateWritableFontData() 50 WritableFontData* WritableFontData::CreateWritableFontData(std::vector<uint8_t>* b) { in CreateWritableFontData() 53 WritableFontDataPtr wfd = new WritableFontData(ba); in CreateWritableFontData() 57 int32_t WritableFontData::WriteByte(int32_t index, uint8_t b) { in WriteByte() 62 int32_t WritableFontData::WriteBytes(int32_t index, in WriteBytes() 72 int32_t WritableFontData::WriteBytes(int32_t index, std::vector<uint8_t>* b) { in WriteBytes() 77 int32_t WritableFontData::WriteBytesPad(int32_t index, in WriteBytesPad() [all …]
|
D | writable_font_data.h | 26 class WritableFontData : public ReadableFontData { 28 explicit WritableFontData(ByteArray* ba); 29 virtual ~WritableFontData(); 38 static CALLER_ATTACH WritableFontData* CreateWritableFontData(int32_t length); 45 static CALLER_ATTACH WritableFontData* CreateWritableFontData(std::vector<uint8_t>* b); 199 WritableFontData(WritableFontData* data, int32_t offset); 205 WritableFontData(WritableFontData* data, int32_t offset, int32_t length); 207 typedef Ptr<WritableFontData> WritableFontDataPtr;
|
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/data/ |
D | WritableFontData.java | 28 public final class WritableFontData extends ReadableFontData { class 40 public static final WritableFontData createWritableFontData(int length) { in createWritableFontData() 48 WritableFontData wfd = new WritableFontData(ba); in createWritableFontData() 60 public static final WritableFontData createWritableFontData(byte[] b) { in createWritableFontData() 62 WritableFontData wfd = new WritableFontData(ba); in createWritableFontData() 73 public static final WritableFontData createWritableFontData(ReadableFontData original) { in createWritableFontData() 83 WritableFontData wfd = new WritableFontData(ba); in createWritableFontData() 93 private WritableFontData(ByteArray<? extends ByteArray<?>> array) { in WritableFontData() method in WritableFontData 103 private WritableFontData(WritableFontData data, int offset) { in WritableFontData() method in WritableFontData 114 private WritableFontData(WritableFontData data, int offset, int length) { in WritableFontData() method in WritableFontData [all …]
|
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/table/ |
D | FontDataTable.java | 20 import com.google.typography.font.sfntly.data.WritableFontData; 72 protected int serialize(WritableFontData data) { in serialize() 77 private WritableFontData wData; 95 this.wData = WritableFontData.createWritableFontData(dataSize); in Builder() 98 protected Builder(WritableFontData data) { in Builder() 118 public WritableFontData data() { in data() 119 WritableFontData newData; in data() 125 newData = WritableFontData.createWritableFontData(size); in data() 129 newData = WritableFontData.createWritableFontData(data != null ? data.length() : 0); in data() 137 public void setData(WritableFontData data) { in setData() [all …]
|
D | GenericTableBuilder.java | 19 import com.google.typography.font.sfntly.data.WritableFontData; 35 static GenericTableBuilder createBuilder(Header header, WritableFontData data) { in createBuilder() 43 private GenericTableBuilder(Header header, WritableFontData data) { in GenericTableBuilder()
|
D | ByteArrayTableBuilder.java | 20 import com.google.typography.font.sfntly.data.WritableFontData; 39 protected ByteArrayTableBuilder(Header header, WritableFontData data) { in ByteArrayTableBuilder() 78 WritableFontData data = this.internalWriteData(); in setByteValue()
|
D | TableBasedTableBuilder.java | 20 import com.google.typography.font.sfntly.data.WritableFontData; 39 protected TableBasedTableBuilder(Header header, WritableFontData data) { in TableBasedTableBuilder() 80 protected int subSerialize(WritableFontData newData) { in subSerialize()
|
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/subsetter/ |
D | GlyphStripper.java | 20 import com.google.typography.font.sfntly.data.WritableFontData; 39 WritableFontData newGlyphData = null; in stripGlyph() 53 newGlyphData = WritableFontData.createWritableFontData(0); in stripGlyph() 58 private WritableFontData stripSimpleGlyph(Glyph glyph) { in stripSimpleGlyph() 69 WritableFontData newGlyf = WritableFontData.createWritableFontData(paddedSize); in stripSimpleGlyph() 83 private int writeHeaderAndContoursSize(WritableFontData newGlyf, int newGlyfOffset, in writeHeaderAndContoursSize() 88 WritableFontData newGlyfSlice = newGlyf.slice(newGlyfOffset, headerAndNumberOfContoursSize); in writeHeaderAndContoursSize() 94 private int writeZeroInstructionLength(WritableFontData newGlyf, int offset) { in writeZeroInstructionLength() 99 private int writeEndSimpleGlyph(WritableFontData newGlyf, int newGlyfOffset, in writeEndSimpleGlyph() 102 WritableFontData newGlyfSlice = newGlyf.slice(newGlyfOffset, length); in writeEndSimpleGlyph() [all …]
|
D | PostScriptTableBuilder.java | 20 import com.google.typography.font.sfntly.data.WritableFontData; 348 private final WritableFontData v1Data; 352 v1Data = WritableFontData.createWritableFontData(V1_TABLE_SIZE); in PostScriptTableBuilder() 401 WritableFontData data = WritableFontData.createWritableFontData(newLength); in build()
|
/third_party/skia/third_party/externals/sfntly/java/test/com/google/typography/font/sfntly/data/ |
D | FontDataTests.java | 86 ReadableFontData rfd = fillTestWFD(WritableFontData.createWritableFontData(size), size); in testReadableFontData() 93 WritableFontData wfd = WritableFontData.createWritableFontData(arraySetupOffsets[0]); in testReadableFontDataSearching() 116 WritableFontData wfd = WritableFontData.createWritableFontData(size); in testWritableFontData() 119 slicingWriteTest(wfd, WritableFontData.createWritableFontData(size)); in testWritableFontData() 124 WritableFontData wfd = WritableFontData.createWritableFontData(0); in testWritableFontData() 127 slicingWriteTest(wfd, WritableFontData.createWritableFontData(0)); in testWritableFontData() 141 private void slicingWriteTest(ReadableFontData rfd, WritableFontData wfd) throws Exception { in slicingWriteTest() 146 WritableFontData slice = null; in slicingWriteTest() 235 ReadableFontData rfd, WritableFontData wfd, int bufferSize) { in writeFontDataWithBuffer() 247 ReadableFontData rfd, WritableFontData wfd, int windowSize) { in writeFontDataWithSlidingWindow() [all …]
|
/third_party/skia/third_party/externals/sfntly/cpp/src/sfntly/table/ |
D | font_data_table.cc | 45 int32_t FontDataTable::Serialize(WritableFontData* data) { in Serialize() 52 CALLER_ATTACH WritableFontData* FontDataTable::Builder::Data() { in Data() 62 new_data.Attach(WritableFontData::CreateWritableFontData(size)); in Data() 66 new_data.Attach(WritableFontData::CreateWritableFontData( in Data() 93 new_data.Attach(WritableFontData::CreateWritableFontData(size)); in Build() 117 WritableFontData* FontDataTable::Builder::InternalWriteData() { in InternalWriteData() 120 new_data.Attach(WritableFontData::CreateWritableFontData( in InternalWriteData() 148 w_data_.Attach(WritableFontData::CreateWritableFontData(data_size)); in Builder() 151 FontDataTable::Builder::Builder(WritableFontData* data) in Builder() 173 void FontDataTable::Builder::InternalSetData(WritableFontData* data, in InternalSetData()
|
D | font_data_table.h | 41 CALLER_ATTACH WritableFontData* Data(); 49 WritableFontData* InternalWriteData(); 75 Builder(WritableFontData* data); 81 virtual int32_t SubSerialize(WritableFontData* new_data) = 0; 89 void InternalSetData(WritableFontData* data, bool data_changed); 113 virtual int32_t Serialize(WritableFontData* data);
|
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/ |
D | FontFactory.java | 22 import com.google.typography.font.sfntly.data.WritableFontData; 189 WritableFontData wfd = WritableFontData.createWritableFontData(is.available()); in loadCollectionForBuilding() 218 WritableFontData rfd = WritableFontData.createWritableFontData(b); in loadFonts() 238 WritableFontData wfd = WritableFontData.createWritableFontData(b); in loadFontsForBuilding() 245 private Font loadSingleOTF(WritableFontData wfd) throws IOException { in loadSingleOTF() 249 private Font[] loadCollection(WritableFontData wfd) throws IOException { in loadCollection() 258 private Font.Builder loadSingleOTFForBuilding(WritableFontData wfd, int offsetToOffsetTable) in loadSingleOTFForBuilding() 268 private Font.Builder[] loadCollectionForBuilding(WritableFontData wfd) throws IOException { in loadCollectionForBuilding()
|
D | Font.java | 22 import com.google.typography.font.sfntly.data.WritableFontData; 612 private Map<Header, WritableFontData> dataBlocks; 635 private void loadFont(WritableFontData wfd, int offsetToOffsetTable) throws IOException { in loadFont() 652 FontFactory factory, WritableFontData wfd, int offsetToOffsetTable) throws IOException { in getOTFBuilder() 780 WritableFontData data; in newTableBuilder() 781 data = WritableFontData.createWritableFontData(srcData.length()); in newTableBuilder() 829 Map<Header, WritableFontData> tableData) { in buildAllTableBuilders() 841 private Table.Builder<? extends Table> getTableBuilder(Header header, WritableFontData data) { in getTableBuilder() 958 private Map<Header, WritableFontData> loadTableData( in loadTableData() 960 Map<Header, WritableFontData> tableData = in loadTableData() [all …]
|
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/conversion/eot/ |
D | EOTWriter.java | 23 import com.google.typography.font.sfntly.data.WritableFontData; 57 public WritableFontData convert(Font font) throws IOException { in convert() 77 WritableFontData writableFontData = createWritableFontData((int) eotSize); in convert() 143 private int writeFontPANOSE(int index, OS2Table os2Table, WritableFontData writableFontData) { in writeFontPANOSE() 148 private int writeReservedFields(int start, WritableFontData writableFontData) { in writeReservedFields() 156 private int writeUnicodeRanges(int start, OS2Table os2Table, WritableFontData writableFontData) { in writeUnicodeRanges() 167 private int writeCodePages(int start, OS2Table os2Table, WritableFontData writableFontData) { in writeCodePages() 180 private int writePadding(int index, WritableFontData writableFontData) { in writePadding() 184 private int writeUTF16String(int start, byte[] str, WritableFontData writableFontData) { in writeUTF16String() 203 private WritableFontData createWritableFontData(int length) { in createWritableFontData() [all …]
|
D | HdmxEncoder.java | 21 import com.google.typography.font.sfntly.data.WritableFontData; 37 public WritableFontData encode(Font sourceFont) { in encode() 58 WritableFontData result = WritableFontData.createWritableFontData(resultSize); in encode()
|
/third_party/skia/third_party/externals/sfntly/cpp/src/test/ |
D | font_data_test.cc | 82 FillTestFontDataWithShortsForSearching(WritableFontData* wfd, in FillTestFontDataWithShortsForSearching() 110 wfd.Attach(WritableFontData::CreateWritableFontData(array_setup_offset[0])); in TestReadableFontDataSearching() 179 void WriteFontDataWithSingleByte(ReadableFontData* rfd, WritableFontData* wfd) { in WriteFontDataWithSingleByte() 187 WritableFontData* wfd, in WriteFontDataWithBuffer() 199 WritableFontData* wfd, in WriteFontDataWithSlidingWindow() 267 void SlicingWriteTest(ReadableFontData* rfd, WritableFontData* wfd) { in SlicingWriteTest() 277 w_slice.Attach(down_cast<WritableFontData*>(wfd->Slice(trim, length))); in SlicingWriteTest() 286 w_slice.Attach(down_cast<WritableFontData*>(wfd->Slice(trim, length))); in SlicingWriteTest() 294 w_slice.Attach(down_cast<WritableFontData*>(wfd->Slice(trim, length))); in SlicingWriteTest() 319 WritableFontDataPtr wfd = new WritableFontData(ba); in TestWritableFontData() [all …]
|
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/conversion/woff/ |
D | WoffWriter.java | 22 import com.google.typography.font.sfntly.data.WritableFontData; 43 public WritableFontData convert(Font font) { in convert() 48 WritableFontData writableFontData = WritableFontData.createWritableFontData(length); in convert() 91 private int writeWoffHeader(WritableFontData writableFontData, in writeWoffHeader() 134 private int writeTableDirectoryEntries(WritableFontData writableFontData, int start, in writeTableDirectoryEntries() 146 private int writeTables(WritableFontData writableFontData, int start, in writeTables() 224 public int writeEntry(WritableFontData writableFontData, int tableOffset, int start) { in writeEntry() 234 public int writeTable(WritableFontData writableFontData, int index) { in writeTable()
|
/third_party/skia/third_party/externals/sfntly/cpp/src/sfntly/ |
D | font_factory.cc | 57 wfd.Attach(WritableFontData::CreateWritableFontData(b)); in LoadFonts() 86 wfd.Attach(WritableFontData::CreateWritableFontData(b)); in LoadFontsForBuilding() 113 CALLER_ATTACH Font* FontFactory::LoadSingleOTF(WritableFontData* wfd) { in LoadSingleOTF() 131 void FontFactory::LoadCollection(WritableFontData* wfd, FontArray* output) { in LoadCollection() 153 FontFactory::LoadSingleOTFForBuilding(WritableFontData* wfd, in LoadSingleOTFForBuilding() 167 wfd.Attach(WritableFontData::CreateWritableFontData(is->Available())); in LoadCollectionForBuilding() 172 void FontFactory::LoadCollectionForBuilding(WritableFontData* wfd, in LoadCollectionForBuilding()
|
D | font_factory.h | 110 CALLER_ATTACH Font* LoadSingleOTF(WritableFontData* wfd); 113 void LoadCollection(WritableFontData* wfd, FontArray* output); 117 LoadSingleOTFForBuilding(WritableFontData* wfd, 121 void LoadCollectionForBuilding(WritableFontData* ba,
|
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/table/bitmap/ |
D | BigGlyphMetrics.java | 20 import com.google.typography.font.sfntly.data.WritableFontData; 88 WritableFontData data = WritableFontData.createWritableFontData(Offset.metricsLength.offset); in createBuilder() 97 protected Builder(WritableFontData data) { in Builder() 195 protected int subSerialize(WritableFontData newData) { in subSerialize()
|
D | IndexSubTableFormat2.java | 20 import com.google.typography.font.sfntly.data.WritableFontData; 81 WritableFontData data, int indexSubTableOffset, int firstGlyphIndex, int lastGlyphIndex) { in createBuilder() 96 private Builder(WritableFontData data, int firstGlyphIndex, int lastGlyphIndex) { in Builder() 131 WritableFontData data = in bigMetrics() 200 protected int subSerialize(WritableFontData newData) { in subSerialize()
|
/third_party/skia/third_party/externals/sfntly/cpp/src/sfntly/table/bitmap/ |
D | index_sub_table_format2.cc | 114 data.Attach(down_cast<WritableFontData*>(InternalWriteData()->Slice( in BigMetrics() 154 IndexSubTableFormat2::Builder::CreateBuilder(WritableFontData* data, in CreateBuilder() 163 new_data.Attach(down_cast<WritableFontData*>( in CreateBuilder() 192 WritableFontData* new_data) { in SubSerialize() 199 target.Attach(down_cast<WritableFontData*>(new_data->Slice(size))); in SubSerialize() 205 slice.Attach(down_cast<WritableFontData*>(new_data->Slice(size))); in SubSerialize() 217 IndexSubTableFormat2::Builder::Builder(WritableFontData* data, in Builder()
|
D | index_sub_table_format5.cc | 156 IndexSubTableFormat5::Builder::CreateBuilder(WritableFontData* data, in CreateBuilder() 165 new_data.Attach(down_cast<WritableFontData*>( in CreateBuilder() 201 WritableFontData* new_data) { in SubSerialize() 208 target.Attach(down_cast<WritableFontData*>(new_data->Slice( in SubSerialize() 215 slice.Attach(down_cast<WritableFontData*>(new_data->Slice(size))); in SubSerialize() 239 data.Attach(down_cast<WritableFontData*>(InternalWriteData()->Slice( in BigMetrics() 268 IndexSubTableFormat5::Builder::Builder(WritableFontData* data, in Builder()
|
/third_party/skia/third_party/externals/sfntly/cpp/src/sfntly/table/core/ |
D | cmap_table.h | 145 Builder(WritableFontData* data, 149 virtual int32_t SubSerialize(WritableFontData* new_data); 225 CALLER_ATTACH static Builder* NewInstance(WritableFontData* data, 239 Builder(WritableFontData* data, int32_t offset, const CMapId& cmap_id); 277 Builder(WritableFontData* data, 367 static CALLER_ATTACH Builder* NewInstance(WritableFontData* data, 381 Builder(WritableFontData* data, int32_t offset, const CMapId& cmap_id); 392 virtual int32_t SubSerialize(WritableFontData* new_data); 501 Builder(Header* header, WritableFontData* data); 505 virtual int32_t SubSerialize(WritableFontData* new_data); [all …]
|