{"action":"opened","issue":{"url":"https://api.github.com/repos/fontforge/fontforge/issues/2563","labels_url":"https://api.github.com/repos/fontforge/fontforge/issues/2563/labels{/name}","comments_url":"https://api.github.com/repos/fontforge/fontforge/issues/2563/comments","events_url":"https://api.github.com/repos/fontforge/fontforge/issues/2563/events","html_url":"https://github.com/fontforge/fontforge/issues/2563","id":115610068,"number":2563,"title":"Alphanumeric ligatures","user":{"login":"hirokiosame","id":1075694,"avatar_url":"https://avatars.githubusercontent.com/u/1075694?v=3","gravatar_id":"","url":"https://api.github.com/users/hirokiosame","html_url":"https://github.com/hirokiosame","followers_url":"https://api.github.com/users/hirokiosame/followers","following_url":"https://api.github.com/users/hirokiosame/following{/other_user}","gists_url":"https://api.github.com/users/hirokiosame/gists{/gist_id}","starred_url":"https://api.github.com/users/hirokiosame/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hirokiosame/subscriptions","organizations_url":"https://api.github.com/users/hirokiosame/orgs","repos_url":"https://api.github.com/users/hirokiosame/repos","events_url":"https://api.github.com/users/hirokiosame/events{/privacy}","received_events_url":"https://api.github.com/users/hirokiosame/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-06T23:16:33Z","updated_at":"2015-11-06T23:16:33Z","closed_at":null,"body":"I'm using fontforge to create a font with ligatures, some using numbers in them. I can get ligatures with purely letters to work fine, however, when I use numbers, it throws an error.\r\n\r\nThis is the code I have so far:\r\n\r\n```\r\nimport fontforge\r\n\r\nfont = fontforge.font()\r\n\r\nfont.encoding = 'UnicodeFull'\r\nfont.version = '1.0'\r\nfont.weight = 'Regular'\r\nfont.fontname = 'icon'\r\nfont.familyname = 'icon'\r\nfont.fullname = 'icon'\r\nfont.em = 1008\r\nfont.ascent = 864\r\nfont.descent = 144\r\n\r\n\r\n# Set up ligatures\r\nfont.addLookup('liga', 'gsub_ligature', (), (('liga', (('latn', ('dflt')), )), ))\r\nfont.addLookupSubtable('liga', 'liga')\r\n\r\n\r\ndef createEmptyChar(font, char):\r\n    glyph = font.createChar(ord(char)).glyphPen()\r\n    glyph.moveTo((0, 0))\r\n    glyph = None\r\n\r\n\r\n# Empty all characters to remove gibberish...\r\nfor code in range(0, 256):\r\n    createEmptyChar(font, chr(code))\r\n\r\n\r\n# Name of ligature\r\nname = str('commentsmultiple')\r\n\r\nicon = font.createChar(-1, name)\r\n\r\nicon.addPosSub(\"liga\", tuple(name))\r\n\r\nicon.importOutlines('fonts/icon/svg/e601_commentsmultiple128.svg')\r\n\r\n\r\nfont.generate('fonts/icon/icon.woff')\r\nfont.close()\r\n```\r\n\r\nHowever, when I change the string 'commentsmultiple' to 'commentsmultiple128', it throws an error:\r\n```Lookup subtable contains unused glyph 1 making the whole subtable invalid```\r\nwhere '1' is the first number in the string. This error is thrown when I invoke addPosSub()\r\n\r\nHow can I add numbers to ligatures?\r\n\r\n"}}