diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2018-06-05 11:19:24 +0000 |
|---|---|---|
| committer | Tavmjong Bah <tavmjong@free.fr> | 2018-06-05 11:19:24 +0000 |
| commit | 70b492003bf669f08d2d6d705a34c29e2c29667e (patch) | |
| tree | 416c94da967304b6e3a76e4f13e13b61dc1ecbd6 /src | |
| parent | Prevent widget from getting too big. (diff) | |
| download | inkscape-70b492003bf669f08d2d6d705a34c29e2c29667e.tar.gz inkscape-70b492003bf669f08d2d6d705a34c29e2c29667e.zip | |
Add support for character variant OpenType tags (cv01, cv02, ...).
Diffstat (limited to 'src')
| -rw-r--r-- | src/libnrtype/OpenTypeUtil.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libnrtype/OpenTypeUtil.cpp b/src/libnrtype/OpenTypeUtil.cpp index 14130db48..4e726995b 100644 --- a/src/libnrtype/OpenTypeUtil.cpp +++ b/src/libnrtype/OpenTypeUtil.cpp @@ -114,8 +114,10 @@ void readOpenTypeGsubTable (const FT_Face ft_face, for (auto table: tables) { // Only look at style substitution tables ('salt', 'ss01', etc. but not 'ssty'). + // Also look at charcter substitution tables ('cv01', etc.). bool style = table.first == "salt" || - (table.first[0] == 's' && table.first[1] == 's' && !(table.first[2] == 't')); + (table.first[0] == 's' && table.first[1] == 's' && !(table.first[2] == 't')) || + (table.first[0] == 'c' && table.first[1] == 'v'); bool ligature = ( table.first == "liga" || // Standard ligatures table.first == "clig" || // Common ligatures |
