diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2018-06-07 10:18:17 +0000 |
|---|---|---|
| committer | Tavmjong Bah <tavmjong@free.fr> | 2018-06-07 10:18:17 +0000 |
| commit | eb62d96023e5655e9c0a4dcf7205f60a1e50d650 (patch) | |
| tree | 29b63e3b8826efd3effeff917948fcd2fe6917be /src/libnrtype | |
| parent | Add GUI support for 'font-variant-east-asian' property. (diff) | |
| download | inkscape-eb62d96023e5655e9c0a4dcf7205f60a1e50d650.tar.gz inkscape-eb62d96023e5655e9c0a4dcf7205f60a1e50d650.zip | |
Add preview of more OpenType tables.
Diffstat (limited to 'src/libnrtype')
| -rw-r--r-- | src/libnrtype/OpenTypeUtil.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/libnrtype/OpenTypeUtil.cpp b/src/libnrtype/OpenTypeUtil.cpp index 4e726995b..9b7762d67 100644 --- a/src/libnrtype/OpenTypeUtil.cpp +++ b/src/libnrtype/OpenTypeUtil.cpp @@ -114,8 +114,14 @@ 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" || + // Also look at character substitution tables ('cv01', etc.). + bool style = + table.first == "salt" /* Stylistic Alternatives */ || + table.first == "swsh" /* Swash */ || + table.first == "cwsh" /* Contextual Swash */ || + table.first == "ornm" /* Ornaments */ || + table.first == "nalt" /* Alternative Annotation */ || + table.first == "hist" /* Historical Forms */ || (table.first[0] == 's' && table.first[1] == 's' && !(table.first[2] == 't')) || (table.first[0] == 'c' && table.first[1] == 'v'); |
