(xAdvance, xOffset, yOffset, width, height)
| 2 | |
| 3 | // Helper to create a basic glyph object |
| 4 | function makeGlyph (xAdvance, xOffset, yOffset, width, height) |
| 5 | { |
| 6 | return { |
| 7 | xAdvance: xAdvance, |
| 8 | xOffset: xOffset !== undefined ? xOffset : 0, |
| 9 | yOffset: yOffset !== undefined ? yOffset : 0, |
| 10 | width: width !== undefined ? width : xAdvance, |
| 11 | height: height !== undefined ? height : 10, |
| 12 | kerning: {} |
| 13 | }; |
| 14 | } |
| 15 | |
| 16 | // Helper to create a basic src mock with sensible defaults |
| 17 | function makeSrc (text, options) |
no outgoing calls
no test coverage detected
searching dependent graphs…