Closed mdumic closed 12 years ago
Hi,
You should be able to update the pull request by simply pushing more commits to the same branch you initiated the pull request from (mdumic:ligatures).
Just a note about the commit:
I realized the Font and options are in many-to-many relation (due to the "autoDetect" option), so neither can simply store the other. That made the caching within Font.applyLigatures a little more complicated than I wanted, but I think it's pretty good overall.
Added support for Basic Latin Ligatures (Code points \uFB00 to \uFB06, as per Unicode 6.1 / Latin Ligatures)
The core cufon.js does substitution of letter groups to Unicode ligatures if the font file defines glyphs at those code points.
I left the generator unchanged as it already includes the ligature range if option "all" is checked. Though, it could be improved by adding specific range just for ligatures.
I tested the feature with "PT Sans" (2 glyphs) and "Anivers" (5 glyphs) but I'm not sure these should be included into the project so I left the examples out as Vegur does not have glyphs for ligatures.