PHP 8.2.30
Preview: GlyphPosition.js Size: 815 B
/home/byroehnu/.trash/node_modules11/fontkit/src/layout/GlyphPosition.js

/**
 * Represents positioning information for a glyph in a GlyphRun.
 */
export default class GlyphPosition {
  constructor(xAdvance = 0, yAdvance = 0, xOffset = 0, yOffset = 0) {
    /**
     * The amount to move the virtual pen in the X direction after rendering this glyph.
     * @type {number}
     */
    this.xAdvance = xAdvance;

    /**
     * The amount to move the virtual pen in the Y direction after rendering this glyph.
     * @type {number}
     */
    this.yAdvance = yAdvance;

    /**
     * The offset from the pen position in the X direction at which to render this glyph.
     * @type {number}
     */
    this.xOffset = xOffset;

    /**
     * The offset from the pen position in the Y direction at which to render this glyph.
     * @type {number}
     */
    this.yOffset = yOffset;
  }
}

Directory Contents

Dirs: 0 × Files: 6

Name Size Perms Modified Actions
815 B lrw-r--r-- 2026-02-14 19:19:32
Edit Download
2.49 KB lrw-r--r-- 2026-02-14 19:19:34
Edit Download
2.49 KB lrw-r--r-- 2026-02-14 19:19:38
Edit Download
5.66 KB lrw-r--r-- 2026-02-14 19:19:38
Edit Download
5.32 KB lrw-r--r-- 2026-02-14 19:19:40
Edit Download
6.66 KB lrw-r--r-- 2026-02-14 19:19:40
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).