/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/table/bitmap/ |
D | BitmapSizeTable.java | 104 public BitmapGlyphInfo glyphInfo(int glyphId) { in glyphInfo() argument 105 IndexSubTable subTable = searchIndexSubTables(glyphId); in glyphInfo() 109 return subTable.glyphInfo(glyphId); in glyphInfo() 112 public int glyphOffset(int glyphId) { in glyphOffset() argument 113 IndexSubTable subTable = searchIndexSubTables(glyphId); in glyphOffset() 117 return subTable.glyphOffset(glyphId); in glyphOffset() 120 public int glyphLength(int glyphId) { in glyphLength() argument 121 IndexSubTable subTable = searchIndexSubTables(glyphId); in glyphLength() 125 return subTable.glyphLength(glyphId); in glyphLength() 128 public int glyphFormat(int glyphId) { in glyphFormat() argument [all …]
|
D | IndexSubTable.java | 83 public BitmapGlyphInfo glyphInfo(int glyphId) { in glyphInfo() argument 84 int loca = this.checkGlyphRange(glyphId); in glyphInfo() 88 if (this.glyphStartOffset(glyphId) == -1) { in glyphInfo() 92 return new BitmapGlyphInfo(glyphId, this.imageDataOffset(), this.glyphStartOffset(glyphId), in glyphInfo() 93 this.glyphLength(glyphId), this.imageFormat()); in glyphInfo() 96 public final int glyphOffset(int glyphId) { in glyphOffset() argument 97 int glyphStartOffset = this.glyphStartOffset(glyphId); in glyphOffset() 110 public abstract int glyphStartOffset(int glyphId); in glyphStartOffset() argument 112 public abstract int glyphLength(int glyphId); in glyphLength() argument 116 protected static int checkGlyphRange(int glyphId, int firstGlyphId, int lastGlyphId) { in checkGlyphRange() argument [all …]
|
D | BitmapGlyphInfo.java | 27 private final int glyphId; field in BitmapGlyphInfo 44 public BitmapGlyphInfo(int glyphId, int blockOffset, int startOffset, int length, int format) { in BitmapGlyphInfo() argument 45 this.glyphId = glyphId; in BitmapGlyphInfo() 62 public BitmapGlyphInfo(int glyphId, int startOffset, int length, int format) { in BitmapGlyphInfo() argument 63 this.glyphId = glyphId; in BitmapGlyphInfo() 71 public int glyphId() { in glyphId() method in BitmapGlyphInfo 72 return this.glyphId; in glyphId() 105 result = prime * result + glyphId; in hashCode() 126 if (this.glyphId != other.glyphId) { in equals()
|
D | IndexSubTableFormat2.java | 55 public int glyphStartOffset(int glyphId) { in glyphStartOffset() argument 56 int loca = this.checkGlyphRange(glyphId); in glyphStartOffset() 61 public int glyphLength(int glyphId) { in glyphLength() argument 62 this.checkGlyphRange(glyphId); in glyphLength() 110 public int glyphStartOffset(int glyphId) { in glyphStartOffset() argument 111 int loca = super.checkGlyphRange(glyphId); in glyphStartOffset() 116 public int glyphLength(int glyphId) { in glyphLength() argument 117 super.checkGlyphRange(glyphId); in glyphLength() 140 private int glyphId; field in IndexSubTableFormat2.Builder.BitmapGlyphInfoIterator 143 this.glyphId = IndexSubTableFormat2.Builder.this.firstGlyphIndex(); in BitmapGlyphInfoIterator() [all …]
|
D | IndexSubTableFormat1.java | 46 public int glyphStartOffset(int glyphId) { in glyphStartOffset() argument 47 int loca = this.checkGlyphRange(glyphId); in glyphStartOffset() 52 public int glyphLength(int glyphId) { in glyphLength() argument 53 int loca = this.checkGlyphRange(glyphId); in glyphLength() 105 public int glyphLength(int glyphId) { in glyphLength() argument 106 int loca = this.checkGlyphRange(glyphId); in glyphLength() 112 public int glyphStartOffset(int glyphId) { in glyphStartOffset() argument 113 int loca = this.checkGlyphRange(glyphId); in glyphStartOffset() 152 private int glyphId; field in IndexSubTableFormat1.Builder.BitmapGlyphInfoIterator 155 this.glyphId = IndexSubTableFormat1.Builder.this.firstGlyphIndex(); in BitmapGlyphInfoIterator() [all …]
|
D | IndexSubTableFormat3.java | 46 public int glyphStartOffset(int glyphId) { in glyphStartOffset() argument 47 int loca = this.checkGlyphRange(glyphId); in glyphStartOffset() 52 public int glyphLength(int glyphId) { in glyphLength() argument 53 int loca = this.checkGlyphRange(glyphId); in glyphLength() 108 public int glyphLength(int glyphId) { in glyphLength() argument 109 int loca = this.checkGlyphRange(glyphId); in glyphLength() 115 public int glyphStartOffset(int glyphId) { in glyphStartOffset() argument 116 int loca = this.checkGlyphRange(glyphId); in glyphStartOffset() 156 private int glyphId; field in IndexSubTableFormat3.Builder.BitmapGlyphInfoIterator 159 this.glyphId = IndexSubTableFormat3.Builder.this.firstGlyphIndex(); in BitmapGlyphInfoIterator() [all …]
|
D | IndexSubTableFormat4.java | 52 public int glyphStartOffset(int glyphId) { in glyphStartOffset() argument 53 this.checkGlyphRange(glyphId); in glyphStartOffset() 54 int pairIndex = this.findCodeOffsetPair(glyphId); in glyphStartOffset() 64 public int glyphLength(int glyphId) { in glyphLength() argument 65 this.checkGlyphRange(glyphId); in glyphLength() 66 int pairIndex = this.findCodeOffsetPair(glyphId); in glyphLength() 76 protected int findCodeOffsetPair(int glyphId) { in findCodeOffsetPair() argument 78 Offset.codeOffsetPairLength.offset, this.numGlyphs(), glyphId); in findCodeOffsetPair() 171 public int glyphLength(int glyphId) { in glyphLength() argument 172 this.checkGlyphRange(glyphId); in glyphLength() [all …]
|
D | IndexSubTableFormat5.java | 64 public int glyphStartOffset(int glyphId) { in glyphStartOffset() argument 65 this.checkGlyphRange(glyphId); in glyphStartOffset() 68 FontData.DataSize.USHORT.size(), this.numGlyphs(), glyphId); in glyphStartOffset() 76 public int glyphLength(int glyphId) { in glyphLength() argument 77 this.checkGlyphRange(glyphId); in glyphLength() 145 public int glyphLength(int glyphId) { in glyphLength() argument 150 public int glyphStartOffset(int glyphId) { in glyphStartOffset() argument 151 this.checkGlyphRange(glyphId); in glyphStartOffset() 153 int loca = Collections.binarySearch(glyphArray, glyphId); in glyphStartOffset() 277 for (Integer glyphId : this.glyphArray) { in subSerialize() [all …]
|
/third_party/flutter/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/table/bitmap/ |
D | BitmapSizeTable.java | 104 public BitmapGlyphInfo glyphInfo(int glyphId) { in glyphInfo() argument 105 IndexSubTable subTable = searchIndexSubTables(glyphId); in glyphInfo() 109 return subTable.glyphInfo(glyphId); in glyphInfo() 112 public int glyphOffset(int glyphId) { in glyphOffset() argument 113 IndexSubTable subTable = searchIndexSubTables(glyphId); in glyphOffset() 117 return subTable.glyphOffset(glyphId); in glyphOffset() 120 public int glyphLength(int glyphId) { in glyphLength() argument 121 IndexSubTable subTable = searchIndexSubTables(glyphId); in glyphLength() 125 return subTable.glyphLength(glyphId); in glyphLength() 128 public int glyphFormat(int glyphId) { in glyphFormat() argument [all …]
|
D | IndexSubTable.java | 83 public BitmapGlyphInfo glyphInfo(int glyphId) { in glyphInfo() argument 84 int loca = this.checkGlyphRange(glyphId); in glyphInfo() 88 if (this.glyphStartOffset(glyphId) == -1) { in glyphInfo() 92 return new BitmapGlyphInfo(glyphId, this.imageDataOffset(), this.glyphStartOffset(glyphId), in glyphInfo() 93 this.glyphLength(glyphId), this.imageFormat()); in glyphInfo() 96 public final int glyphOffset(int glyphId) { in glyphOffset() argument 97 int glyphStartOffset = this.glyphStartOffset(glyphId); in glyphOffset() 110 public abstract int glyphStartOffset(int glyphId); in glyphStartOffset() argument 112 public abstract int glyphLength(int glyphId); in glyphLength() argument 116 protected static int checkGlyphRange(int glyphId, int firstGlyphId, int lastGlyphId) { in checkGlyphRange() argument [all …]
|
D | BitmapGlyphInfo.java | 27 private final int glyphId; field in BitmapGlyphInfo 44 public BitmapGlyphInfo(int glyphId, int blockOffset, int startOffset, int length, int format) { in BitmapGlyphInfo() argument 45 this.glyphId = glyphId; in BitmapGlyphInfo() 62 public BitmapGlyphInfo(int glyphId, int startOffset, int length, int format) { in BitmapGlyphInfo() argument 63 this.glyphId = glyphId; in BitmapGlyphInfo() 71 public int glyphId() { in glyphId() method in BitmapGlyphInfo 72 return this.glyphId; in glyphId() 105 result = prime * result + glyphId; in hashCode() 126 if (this.glyphId != other.glyphId) { in equals()
|
D | IndexSubTableFormat2.java | 55 public int glyphStartOffset(int glyphId) { in glyphStartOffset() argument 56 int loca = this.checkGlyphRange(glyphId); in glyphStartOffset() 61 public int glyphLength(int glyphId) { in glyphLength() argument 62 this.checkGlyphRange(glyphId); in glyphLength() 110 public int glyphStartOffset(int glyphId) { in glyphStartOffset() argument 111 int loca = super.checkGlyphRange(glyphId); in glyphStartOffset() 116 public int glyphLength(int glyphId) { in glyphLength() argument 117 super.checkGlyphRange(glyphId); in glyphLength() 140 private int glyphId; field in IndexSubTableFormat2.Builder.BitmapGlyphInfoIterator 143 this.glyphId = IndexSubTableFormat2.Builder.this.firstGlyphIndex(); in BitmapGlyphInfoIterator() [all …]
|
D | IndexSubTableFormat3.java | 46 public int glyphStartOffset(int glyphId) { in glyphStartOffset() argument 47 int loca = this.checkGlyphRange(glyphId); in glyphStartOffset() 52 public int glyphLength(int glyphId) { in glyphLength() argument 53 int loca = this.checkGlyphRange(glyphId); in glyphLength() 108 public int glyphLength(int glyphId) { in glyphLength() argument 109 int loca = this.checkGlyphRange(glyphId); in glyphLength() 115 public int glyphStartOffset(int glyphId) { in glyphStartOffset() argument 116 int loca = this.checkGlyphRange(glyphId); in glyphStartOffset() 156 private int glyphId; field in IndexSubTableFormat3.Builder.BitmapGlyphInfoIterator 159 this.glyphId = IndexSubTableFormat3.Builder.this.firstGlyphIndex(); in BitmapGlyphInfoIterator() [all …]
|
D | IndexSubTableFormat1.java | 46 public int glyphStartOffset(int glyphId) { in glyphStartOffset() argument 47 int loca = this.checkGlyphRange(glyphId); in glyphStartOffset() 52 public int glyphLength(int glyphId) { in glyphLength() argument 53 int loca = this.checkGlyphRange(glyphId); in glyphLength() 105 public int glyphLength(int glyphId) { in glyphLength() argument 106 int loca = this.checkGlyphRange(glyphId); in glyphLength() 112 public int glyphStartOffset(int glyphId) { in glyphStartOffset() argument 113 int loca = this.checkGlyphRange(glyphId); in glyphStartOffset() 152 private int glyphId; field in IndexSubTableFormat1.Builder.BitmapGlyphInfoIterator 155 this.glyphId = IndexSubTableFormat1.Builder.this.firstGlyphIndex(); in BitmapGlyphInfoIterator() [all …]
|
D | IndexSubTableFormat4.java | 52 public int glyphStartOffset(int glyphId) { in glyphStartOffset() argument 53 this.checkGlyphRange(glyphId); in glyphStartOffset() 54 int pairIndex = this.findCodeOffsetPair(glyphId); in glyphStartOffset() 64 public int glyphLength(int glyphId) { in glyphLength() argument 65 this.checkGlyphRange(glyphId); in glyphLength() 66 int pairIndex = this.findCodeOffsetPair(glyphId); in glyphLength() 76 protected int findCodeOffsetPair(int glyphId) { in findCodeOffsetPair() argument 78 Offset.codeOffsetPairLength.offset, this.numGlyphs(), glyphId); in findCodeOffsetPair() 171 public int glyphLength(int glyphId) { in glyphLength() argument 172 this.checkGlyphRange(glyphId); in glyphLength() [all …]
|
D | IndexSubTableFormat5.java | 64 public int glyphStartOffset(int glyphId) { in glyphStartOffset() argument 65 this.checkGlyphRange(glyphId); in glyphStartOffset() 68 FontData.DataSize.USHORT.size(), this.numGlyphs(), glyphId); in glyphStartOffset() 76 public int glyphLength(int glyphId) { in glyphLength() argument 77 this.checkGlyphRange(glyphId); in glyphLength() 145 public int glyphLength(int glyphId) { in glyphLength() argument 150 public int glyphStartOffset(int glyphId) { in glyphStartOffset() argument 151 this.checkGlyphRange(glyphId); in glyphStartOffset() 153 int loca = Collections.binarySearch(glyphArray, glyphId); in glyphStartOffset() 277 for (Integer glyphId : this.glyphArray) { in subSerialize() [all …]
|
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/table/truetype/ |
D | LocaTable.java | 69 public int glyphOffset(int glyphId) { in glyphOffset() argument 70 if (glyphId < 0 || glyphId >= this.numGlyphs) { in glyphOffset() 73 return this.loca(glyphId); in glyphOffset() 82 public int glyphLength(int glyphId) { in glyphLength() argument 83 if (glyphId < 0 || glyphId >= this.numGlyphs) { in glyphLength() 86 return this.loca(glyphId + 1) - this.loca(glyphId); in glyphLength() 224 private int checkGlyphRange(int glyphId) { in checkGlyphRange() argument 225 if (glyphId < 0 || glyphId > this.lastGlyphIndex()) { in checkGlyphRange() 228 return glyphId; in checkGlyphRange() 317 public int glyphOffset(int glyphId) { in glyphOffset() argument [all …]
|
/third_party/flutter/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/table/truetype/ |
D | LocaTable.java | 69 public int glyphOffset(int glyphId) { in glyphOffset() argument 70 if (glyphId < 0 || glyphId >= this.numGlyphs) { in glyphOffset() 73 return this.loca(glyphId); in glyphOffset() 82 public int glyphLength(int glyphId) { in glyphLength() argument 83 if (glyphId < 0 || glyphId >= this.numGlyphs) { in glyphLength() 86 return this.loca(glyphId + 1) - this.loca(glyphId); in glyphLength() 224 private int checkGlyphRange(int glyphId) { in checkGlyphRange() argument 225 if (glyphId < 0 || glyphId > this.lastGlyphIndex()) { in checkGlyphRange() 228 return glyphId; in checkGlyphRange() 317 public int glyphOffset(int glyphId) { in glyphOffset() argument [all …]
|
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/sample/sflint/ |
D | SFLint.java | 127 for (int glyphId = 0; glyphId < nGlyphs; glyphId++) { in lintWindowsClipping() 128 int offset = loca.glyphOffset(glyphId); in lintWindowsClipping() 129 int length = loca.glyphLength(glyphId); in lintWindowsClipping() 136 if (glyphId == 0 || xMin < bbox_xMin) { in lintWindowsClipping() 139 if (glyphId == 0 || yMin < bbox_yMin) { in lintWindowsClipping() 142 if (glyphId == 0 || xMax > bbox_xMax) { in lintWindowsClipping() 145 if (glyphId == 0 || yMax > bbox_yMax) { in lintWindowsClipping() 175 private void lintCompositeGlyph(Font font, CompositeGlyph glyph, int glyphId) { in lintCompositeGlyph() argument 190 reportProblem("glyph " + glyphId + " contains duplicate references"); in lintCompositeGlyph() 201 for (int glyphId = 0; glyphId < nGlyphs; glyphId++) { in lintAllGlyphs() [all …]
|
/third_party/flutter/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/sample/sflint/ |
D | SFLint.java | 127 for (int glyphId = 0; glyphId < nGlyphs; glyphId++) { in lintWindowsClipping() 128 int offset = loca.glyphOffset(glyphId); in lintWindowsClipping() 129 int length = loca.glyphLength(glyphId); in lintWindowsClipping() 136 if (glyphId == 0 || xMin < bbox_xMin) { in lintWindowsClipping() 139 if (glyphId == 0 || yMin < bbox_yMin) { in lintWindowsClipping() 142 if (glyphId == 0 || xMax > bbox_xMax) { in lintWindowsClipping() 145 if (glyphId == 0 || yMax > bbox_yMax) { in lintWindowsClipping() 175 private void lintCompositeGlyph(Font font, CompositeGlyph glyph, int glyphId) { in lintCompositeGlyph() argument 190 reportProblem("glyph " + glyphId + " contains duplicate references"); in lintCompositeGlyph() 201 for (int glyphId = 0; glyphId < nGlyphs; glyphId++) { in lintAllGlyphs() [all …]
|
/third_party/flutter/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/sfnttool/ |
D | GlyphCoverage.java | 53 int glyphId = cmap.glyphId(c); in getGlyphCoverage() local 54 touchGlyph(font, coverage, glyphId); in getGlyphCoverage() 61 private static void touchGlyph(Font font, Set<Integer> coverage, int glyphId) { in touchGlyph() argument 62 if (!coverage.contains(glyphId)) { in touchGlyph() 63 coverage.add(glyphId); in touchGlyph() 64 Glyph glyph = getGlyph(font, glyphId); in touchGlyph() 88 private static Glyph getGlyph(Font font, int glyphId) { in getGlyph() argument 91 int offset = locaTable.glyphOffset(glyphId); in getGlyph() 92 int length = locaTable.glyphLength(glyphId); in getGlyph()
|
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/sfnttool/ |
D | GlyphCoverage.java | 53 int glyphId = cmap.glyphId(c); in getGlyphCoverage() local 54 touchGlyph(font, coverage, glyphId); in getGlyphCoverage() 61 private static void touchGlyph(Font font, Set<Integer> coverage, int glyphId) { in touchGlyph() argument 62 if (!coverage.contains(glyphId)) { in touchGlyph() 63 coverage.add(glyphId); in touchGlyph() 64 Glyph glyph = getGlyph(font, glyphId); in touchGlyph() 88 private static Glyph getGlyph(Font font, int glyphId) { in getGlyph() argument 91 int offset = locaTable.glyphOffset(glyphId); in getGlyph() 92 int length = locaTable.glyphLength(glyphId); in getGlyph()
|
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/sample/sfntdump/ |
D | SfntDump.java | 403 for (int glyphId = 0; glyphId < nGlyphs; glyphId++) { in dumpFont() 404 System.out.printf("%d: %s\n", glyphId, post.glyphName(glyphId)); in dumpFont() 447 for (int glyphId = this.glyphSet.nextSetBit(0); in dumpFont() 448 glyphId >= 0; glyphId = this.glyphSet.nextSetBit(glyphId+1)) { in dumpFont() 449 int offset = locaTable.glyphOffset(glyphId); in dumpFont() 450 int length = locaTable.glyphLength(glyphId); in dumpFont() 452 System.out.println("glyph id = " + glyphId); in dumpFont() 503 int glyphId = cmap.glyphId(charId); in dumpChar() local 504 int offset = locaTable.glyphOffset(glyphId); in dumpChar() 505 int length = locaTable.glyphLength(glyphId); in dumpChar() [all …]
|
/third_party/flutter/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/sample/sfntdump/ |
D | SfntDump.java | 403 for (int glyphId = 0; glyphId < nGlyphs; glyphId++) { in dumpFont() 404 System.out.printf("%d: %s\n", glyphId, post.glyphName(glyphId)); in dumpFont() 447 for (int glyphId = this.glyphSet.nextSetBit(0); in dumpFont() 448 glyphId >= 0; glyphId = this.glyphSet.nextSetBit(glyphId+1)) { in dumpFont() 449 int offset = locaTable.glyphOffset(glyphId); in dumpFont() 450 int length = locaTable.glyphLength(glyphId); in dumpFont() 452 System.out.println("glyph id = " + glyphId); in dumpFont() 503 int glyphId = cmap.glyphId(charId); in dumpChar() local 504 int offset = locaTable.glyphOffset(glyphId); in dumpChar() 505 int length = locaTable.glyphLength(glyphId); in dumpChar() [all …]
|
/third_party/flutter/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/table/core/ |
D | HorizontalMetricsTable.java | 102 public int advanceWidth(int glyphId) { in advanceWidth() argument 103 if (glyphId < this.numHMetrics) { in advanceWidth() 104 return this.hMetricAdvanceWidth(glyphId); in advanceWidth() 109 public int leftSideBearing(int glyphId) { in leftSideBearing() argument 110 if (glyphId < this.numHMetrics) { in leftSideBearing() 111 return this.hMetricLSB(glyphId); in leftSideBearing() 113 return this.lsbTableEntry(glyphId - this.numHMetrics); in leftSideBearing()
|