Viktor

Results 16 comments of Viktor

To get a list of ligatures would really be helpful! Recently a [FontDrop!](https://fontdrop.info/) user sent me a script that he used to get ligatures. He wrote: > _Below is the...

The missing first glyph might be in `lookups.subtables[0].coverage` but it is a bit complicated, because there is different formats: https://docs.microsoft.com/en-us/typography/opentype/otspec170/gsub#lookuptype-4:-ligature-substitution-subtable

Also, I tested the code with my developer. Fonts can contain countless lockups, not only in the first lookup. So we made it search for all LookupType 4 (Ligatures) first,...

I think you do not need this line (we use it in Ember JS so I had to reorder some code, might be a mistake)

Look, here is a first idea for the firstGlyph, just a start, it might help: ``` [...] if (subtable.coverage.format == 1) { var firstGlyph = subtable.coverage.glyphs; }else{ var firstGlyph =...

So far the firstGlyph thing was just a concept, have a look in the `subtable.coverage` property, there is **Format 1** and **Format 2**. Format 1 can be an array of...

Here is code that shows the first letter for ligatures with `subtable.coverage` **Format 1**: https://jsfiddle.net/4o1mqu0w/ (It doesn't work with the font in the fiddle, but I tested it with other...

Found this, what also might help: https://github.com/foliojs/fontkit/issues/187

This works for Format 1 and Format 2: https://jsfiddle.net/nvbajtmo/

This will detect all Ligatures. But at this point we just search through the lookups, it would be better to check the features first and then we can connect the...