summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2018-06-05 17:53:29 +0000
committerTavmjong Bah <tavmjong@free.fr>2018-06-05 17:53:29 +0000
commit137314ebbcbebd2d87b762560f740019bb4ef9f5 (patch)
treefd4af83e8c56d05f55bcb9bc8c1847012f653529 /src/ui
parentUse all available space for Ordinal label. (diff)
downloadinkscape-137314ebbcbebd2d87b762560f740019bb4ef9f5.tar.gz
inkscape-137314ebbcbebd2d87b762560f740019bb4ef9f5.zip
Remove tables that should not be exposed to user from OpenType table list.
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/widget/font-variants.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/ui/widget/font-variants.cpp b/src/ui/widget/font-variants.cpp
index a152ca33b..61cdb6517 100644
--- a/src/ui/widget/font-variants.cpp
+++ b/src/ui/widget/font-variants.cpp
@@ -669,6 +669,7 @@ namespace Widget {
if( (it = table_copy.find("smcp")) != table_copy.end() ) table_copy.erase( it );
if( (it = table_copy.find("c2sc")) != table_copy.end() ) table_copy.erase( it );
if( (it = table_copy.find("pcap")) != table_copy.end() ) table_copy.erase( it );
+ if( (it = table_copy.find("c2pc")) != table_copy.end() ) table_copy.erase( it );
if( (it = table_copy.find("unic")) != table_copy.end() ) table_copy.erase( it );
if( (it = table_copy.find("titl")) != table_copy.end() ) table_copy.erase( it );
if( (it = table_copy.find("lnum")) != table_copy.end() ) table_copy.erase( it );
@@ -679,6 +680,24 @@ namespace Widget {
if( (it = table_copy.find("afrc")) != table_copy.end() ) table_copy.erase( it );
if( (it = table_copy.find("ordn")) != table_copy.end() ) table_copy.erase( it );
if( (it = table_copy.find("zero")) != table_copy.end() ) table_copy.erase( it );
+
+ // An incomplete list of tables that should not be exposed to the user:
+ if( (it = table_copy.find("abvs")) != table_copy.end() ) table_copy.erase( it );
+ if( (it = table_copy.find("akhn")) != table_copy.end() ) table_copy.erase( it );
+ if( (it = table_copy.find("blwf")) != table_copy.end() ) table_copy.erase( it );
+ if( (it = table_copy.find("fina")) != table_copy.end() ) table_copy.erase( it );
+ if( (it = table_copy.find("half")) != table_copy.end() ) table_copy.erase( it );
+ if( (it = table_copy.find("haln")) != table_copy.end() ) table_copy.erase( it );
+ if( (it = table_copy.find("init")) != table_copy.end() ) table_copy.erase( it );
+ if( (it = table_copy.find("locl")) != table_copy.end() ) table_copy.erase( it );
+ if( (it = table_copy.find("medi")) != table_copy.end() ) table_copy.erase( it );
+ if( (it = table_copy.find("pres")) != table_copy.end() ) table_copy.erase( it );
+ if( (it = table_copy.find("pstf")) != table_copy.end() ) table_copy.erase( it );
+ if( (it = table_copy.find("psts")) != table_copy.end() ) table_copy.erase( it );
+ if( (it = table_copy.find("rlig")) != table_copy.end() ) table_copy.erase( it );
+ if( (it = table_copy.find("ssty")) != table_copy.end() ) table_copy.erase( it );
+ if( (it = table_copy.find("vatu")) != table_copy.end() ) table_copy.erase( it );
+
std::string ott_list = "OpenType tables not included above: ";
for(it = table_copy.begin(); it != table_copy.end(); ++it) {
// std::cout << "Other: " << it->first << " Occurrences: " << it->second << std::endl;