Lines Matching refs:glyph

15990     value: function widthOfGlyph(glyph) {
15991 return this.glyphWidths[glyph] || 0;
16140 var glyph = glyphs[i];
16146 advanceWidth: this.font.widthOfGlyph(glyph)
16279 var glyph = glyphs[i];
16280 var gid = this.subset.includeGlyph(glyph.id);
16283 this.widths[gid] = glyph.advanceWidth * this.scale;
16286 this.unicode[gid] = glyph.codePoints;
20341 function docWriteGlyph(glyph) {
20342 doc.addContent('<' + glyph + '> Tj');
20940 glyph: hex[i],
22635 docWriteGlyph(pos[j].glyph);
22861 glyph: pos[j].glyph,
54463 _proto9.getCharString = function getCharString(glyph) {
54464 this.stream.pos = this.topDict.CharStrings[glyph].offset;
54465 return this.stream.readBuffer(this.topDict.CharStrings[glyph].length);
54588 glyph: r.uint16,
54594 var glyph = new r.VersionedStruct('version', {
55148 glyph: r.uint16,
55679 glyph: r.uint16,
55936 glyph: r.uint16
56521 var glyph = glyphs[index];
56522 if (glyph.isMark) {
57163 var glyph = this.glyphs[index];
57165 var b = glyph.bbox;
57762 _proto19.lookup = function lookup(glyph) {
57766 return this.table.values.getItem(glyph);
57780 if (glyph < seg.firstGlyph) {
57782 } else if (glyph > seg.lastGlyph) {
57788 return seg.values[glyph - seg.firstGlyph];
57803 if (seg.glyph === 0xffff) {
57806 if (glyph < seg.glyph) {
57808 } else if (glyph > seg.glyph) {
57818 return this.table.values[glyph - this.table.firstGlyph];
57850 res.push(_segment.glyph);
57889 var glyph = null;
57895 glyph = glyphs[index];
57896 if (glyph.id === 0xffff) {
57900 classCode = this.lookupTable.lookup(glyph.id);
57910 processEntry(glyph, entry, index);
57946 var glyph = _step23.value;
57948 opts.enter(glyph, entry);
57954 opts.exit(glyph, entry);
58066 _proto21.processIndicRearragement = function processIndicRearragement(glyph, entry, index) {
58075 …_proto21.processContextualSubstitution = function processContextualSubstitution(glyph, entry, inde…
58080 glyph = this.glyphs[this.markedGlyph];
58081 var gid = lookupTable.lookup(glyph.id);
58083 this.glyphs[this.markedGlyph] = this.font.getGlyph(gid, glyph.codePoints);
58089 glyph = this.glyphs[index];
58090 var gid = _lookupTable.lookup(glyph.id);
58092 this.glyphs[index] = this.font.getGlyph(gid, glyph.codePoints);
58099 _proto21.processLigature = function processLigature(glyph, entry, index) {
58142 var glyph = glyphs[index];
58143 if (glyph.id !== 0xffff) {
58144 var gid = lookupTable.lookup(glyph.id);
58147 glyphs[index] = this.font.getGlyph(gid, glyph.codePoints);
58164 _proto21.processGlyphInsertion = function processGlyphInsertion(glyph, entry, index) {
58227 enter: function enter(glyph, entry) {
58234 var g = _this3.font.getGlyph(glyph);
58477 var glyph = _step34.value;
58479 glyph.features[feature] = true;
58535 var glyph = glyphs[i];
58536 if (glyph.codePoints[0] === 0x2044) {
58553 glyph.features.frac = true;
58628 var glyph = glyphs[i];
58629 var type = getShapingClass(glyph.codePoints[0]);
58647 var glyph = glyphs[index];
58649 glyph.features[feature] = true;
58684 _proto24.shouldIgnore = function shouldIgnore(glyph) {
58685glyph.isMark || this.flags.ignoreBaseGlyphs && glyph.isBase || this.flags.ignoreLigatures && glyph
58952 _proto25.coverageIndex = function coverageIndex(coverage, glyph) {
58953 if (glyph == null) {
58954 glyph = this.glyphIterator.cur.id;
58958 return coverage.glyphs.indexOf(glyph);
58962 if (range.start <= glyph && glyph <= range.end) {
58963 return range.startCoverageIndex + glyph - range.start;
58972 var glyph = this.glyphIterator.increment(sequenceIndex);
58974 while (idx < sequence.length && glyph && fn(sequence[idx], glyph)) {
58979 glyph = this.glyphIterator.next();
58988 return this.match(sequenceIndex, sequence, function (component, glyph) {
58989 return component === glyph.id;
58994 return this.match(sequenceIndex, sequence, function (component, glyph) {
58996 if (!(_this4.currentFeature in glyph.features)) {
58999 return component === glyph.id;
59004 return this.match(sequenceIndex, sequence, function (coverage, glyph) {
59005 return _this5.coverageIndex(coverage, glyph.id) >= 0;
59008 _proto25.getClassID = function getClassID(glyph, classDef) {
59012 var i = glyph - classDef.startGlyph;
59020 if (range.start <= glyph && glyph <= range.end) {
59030 return this.match(sequenceIndex, sequence, function (classID, glyph) {
59031 return classID === _this6.getClassID(glyph.id, classDef);
59205 var glyph = glyphs[i];
59206 var code = glyph.codePoints[0];
59339 var glyph = glyphs[i];
59340 var code = glyph.codePoints[0];
59352 var ljmo = getGlyph(font, l, glyph.features);
59354 var vjmo = getGlyph(font, v, glyph.features);
59358 var tjmo = getGlyph(font, t, glyph.features);
59366 var glyph = glyphs[i];
59376 tjmo = glyph;
59381 vjmo = glyph;
59386 tjmo = glyph;
59402 glyphs.splice(i - del + 1, del, getGlyph(font, s, glyph.features));
59437 var glyph = glyphs[i];
59446 return glyphs.splice(i - len, 0, glyph);
59449 var glyph = glyphs[i];
59452 …var dottedCircle = getGlyph(font, DOTTED_CIRCLE, glyph.features); // If the tone mark is zero widt…
59743 function indicCategory(glyph) {
59744 return trie$1.get(glyph.codePoints[0]) >> 8;
59746 function indicPosition(glyph) {
59747 return 1 << (trie$1.get(glyph.codePoints[0]) & 0xff);
59783 function isConsonant(glyph) {
59784 return glyph.shaperInfo.category & CONSONANT_FLAGS;
59786 function isJoiner(glyph) {
59787 return glyph.shaperInfo.category & JOINER_FLAGS;
59789 function isHalantOrCoeng(glyph) {
59790 return glyph.shaperInfo.category & HALANT_OR_COENG_FLAGS;
59795 var glyph = _step54.value;
59796 glyph.features = (_glyph$features = {}, _glyph$features[feature] = true, _glyph$features);
60516 function useCategory(glyph) {
60517 return trie$2.get(glyph.codePoints[0]);
60545 var glyph = _step56.value;
60546 glyph.substituted = false;
60551 var glyph = _step57.value;
60552 if (glyph.substituted && glyph.features.rphf) {
60554 glyph.shaperInfo.category = 'R';
60560 var glyph = _step58.value;
60561 if (glyph.substituted) {
60563 glyph.shaperInfo.category = 'VPre';
60622 function isHalant(glyph) {
60623 return glyph.shaperInfo.category === 'H' && !glyph.isLigated;
60803 var glyph = this.glyphIterator.cur;
60806 glyph.id = glyph.id + table.deltaGlyphID & 0xffff;
60809 glyph.id = table.substitute.get(index);
60832 var glyph = new GlyphInfo(_this7.font, gid, undefined, features);
60833 glyph.shaperInfo = curGlyph.shaperInfo;
60834 glyph.isLigated = curGlyph.isLigated;
60835 glyph.ligatureComponent = i + 1;
60836 glyph.substituted = true;
60837 glyph.isMultiplied = true;
60838 return glyph;
60879 … var ligatureGlyph = new GlyphInfo(this.font, ligature.glyph, characters, _curGlyph.features);
61249 var glyph = this.glyphs[i];
61250 if (glyph.cursiveAttachment != null) {
61251 var j = glyph.cursiveAttachment;
61252 glyph.cursiveAttachment = null;
61259 var glyph = this.glyphs[i];
61260 if (glyph.markAttachment != null) {
61261 var j = glyph.markAttachment;
61300 this.glyphInfos = glyphRun.glyphs.map(function (glyph) {
61301 return new GlyphInfo(_this8.font, glyph.id, [].concat(glyph.codePoints));
61409 var glyph = _step64.value;
61410 codePoints.push.apply(codePoints, glyph.codePoints);
61444 glyphRun.positions = glyphRun.glyphs.map(function (glyph) {
61445 return new GlyphPosition(glyph.advanceWidth);
62058 var glyph = GlyfHeader.decode(stream);
62059 var cbox = new BBox(glyph.xMin, glyph.yMin, glyph.xMax, glyph.yMax);
62091 var glyph = GlyfHeader.decode(stream);
62092 if (glyph.numberOfContours > 0) {
62093 this._decodeSimple(glyph, stream);
62094 } else if (glyph.numberOfContours < 0) {
62095 this._decodeComposite(glyph, stream, startPos);
62097 return glyph;
62099 _proto34._decodeSimple = function _decodeSimple(glyph, stream) {
62101 glyph.points = [];
62102 var endPtsOfContours = new r.Array(r.uint16, glyph.numberOfContours).decode(stream);
62103 glyph.instructions = new r.Array(r.uint8, r.uint16).decode(stream);
62120 glyph.points.push(point);
62125glyph.points[i].x = px = this._parseGlyphCoord(stream, px, flag & X_SHORT_VECTOR, flag & SAME_X);
62130glyph.points[i].y = py = this._parseGlyphCoord(stream, py, flag & Y_SHORT_VECTOR, flag & SAME_Y);
62133 var points = glyph.points.slice();
62134 points.push.apply(points, this._getPhantomPoints(glyph));
62136 glyph.phantomPoints = points.slice(-4);
62140 _proto34._decodeComposite = function _decodeComposite(glyph, stream, offset) {
62145 glyph.components = [];
62176 glyph.components.push(component);
62180 for (var j = 0; j < glyph.components.length; j++) {
62181 var component = glyph.components[j];
62184 points.push.apply(points, this._getPhantomPoints(glyph));
62186 glyph.phantomPoints = points.splice(-4, 4);
62189 glyph.components[i].dx = point.x;
62190 glyph.components[i].dy = point.y;
62195 _proto34._getPhantomPoints = function _getPhantomPoints(glyph) {
62205glyph.xMin - leftBearing, 0), new Point(false, true, glyph.xMin - leftBearing + advanceWidth, 0), …
62209 var glyph = this._decode();
62210 if (!glyph) {
62214 if (glyph.numberOfContours < 0) {
62216 …for (var _iterator70 = _createForOfIteratorHelperLoose(glyph.components), _step70; !(_step70 = _it…
62230 points = glyph.points || [];
62233 if (glyph.phantomPoints && !this._font.directory.tables.HVAR) {
62234 this._metrics.advanceWidth = glyph.phantomPoints[1].x - glyph.phantomPoints[0].x;
62235 this._metrics.advanceHeight = glyph.phantomPoints[3].y - glyph.phantomPoints[2].y;
62236 this._metrics.leftBearing = glyph.xMin - glyph.phantomPoints[0].x;
62237 this._metrics.topBearing = glyph.phantomPoints[2].y - glyph.yMax;
62937 var COLRLayer = function COLRLayer(glyph, color) {
62938 this.glyph = glyph;
62956 var b = layer.glyph.bbox;
62970 glyph = _step71$value.glyph,
62973 glyph.render(ctx, size);
63436 _proto39.includeGlyph = function includeGlyph(glyph) {
63437 if (typeof glyph === 'object') {
63438 glyph = glyph.id;
63440 if (this.mapping[glyph] == null) {
63441 this.glyphs.push(glyph);
63442 this.mapping[glyph] = this.glyphs.length - 1;
63444 return this.mapping[glyph];
63609 var glyph = this.font.getGlyph(gid);
63610 var glyf = glyph._decode(); // get the offset to the glyph from the loca table
63627 buffer = this.glyphEncoder.encodeSimple(glyph.path, glyf.instructions);
63632 advance: glyph.advanceWidth,
63633 bearing: glyph._getMetrics().leftBearing
63727 var glyph = this.font.getGlyph(gid);
63728 var path = glyph.path; // this causes the glyph to be parsed
63730 for (var subr in glyph._usedGsubrs) {
63772 var glyph = this.font.getGlyph(gid);
63773 var path = glyph.path; // this causes the glyph to be parsed
63775 for (var subr in glyph._usedSubrs) {
63793 var glyph = this.font.getGlyph(gid);
63794 var path = glyph.path; // this causes the glyph to be parsed
63796 for (var subr in glyph._usedSubrs) {
64054 _proto43._getBaseGlyph = function _getBaseGlyph(glyph, characters) {
64058 if (!this._glyphs[glyph]) {
64060 this._glyphs[glyph] = new TTFGlyph(glyph, characters, this);
64062 this._glyphs[glyph] = new CFFGlyph(glyph, characters, this);
64065 return this._glyphs[glyph] || null;
64076 _proto43.getGlyph = function getGlyph(glyph, characters) {
64080 if (!this._glyphs[glyph]) {
64082 this._glyphs[glyph] = new SBIXGlyph(glyph, characters, this);
64084 this._glyphs[glyph] = new COLRGlyph(glyph, characters, this);
64086 this._getBaseGlyph(glyph, characters);
64089 return this._glyphs[glyph] || null;
64578 _proto46._getBaseGlyph = function _getBaseGlyph(glyph, characters) {
64582 if (!this._glyphs[glyph]) {
64587 return this._glyphs[glyph] = new WOFF2Glyph(glyph, characters, this);
64589 return _TTFFont2.prototype._getBaseGlyph.call(this, glyph, characters);
64599 var glyph = {};
64601 glyph.numberOfContours = nContours;
64611 glyph.points = decodeTriplet(table.flags, table.glyphs, totalPoints);
64613 glyph.points[nPoints[_i] - 1].endContour = true;
64620 }, glyph, table.composites);
64625 glyphs.push(glyph);