Show More
Commit Description:
Merge pull request #28 from paphonb/change-default-language...
Commit Description:
Merge pull request #28 from paphonb/change-default-language allow users to change default submission language
References:
File last commit:
Show/Diff file:
Action:
node_modules/fontkit/src/layout/GlyphPosition.js | 30 lines | 815 B | application/javascript | JavascriptLexer |
/**
* 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;
}
}