1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | 1 1 222 222 222 222 104 222 222 222 222 1 | unicode = require 'unicode-properties' class GlyphInfo constructor: (@id, @codePoints = [], features = []) -> # TODO: get this info from GDEF if available @isMark = @codePoints.every unicode.isMark @isLigature = @codePoints.length > 1 @features = {} for feature in features @features[feature] = true @ligatureID = null @ligatureComponent = null @cursiveAttachment = null @markAttachment = null module.exports = GlyphInfo |