diff --git a/doc/custom-build.md b/doc/custom-build.md index 318b7e9c6..5aeb672bb 100644 --- a/doc/custom-build.md +++ b/doc/custom-build.md @@ -73,7 +73,8 @@ Inside the plan, top-level properties include: - `U+27F6` LONG RIGHTWARDS ARROW - `U+27FB` LONG LEFTWARDS ARROW FROM BAR - `U+27FC` LONG RIGHTWARDS ARROW FROM BAR - - `fixed`: Apply `fontconfig-mono` changes and further remove ligations, `NWID` and `WWID` typographic features. + - Remove `NWID` and `WWID` features typographic features + - `fixed`: Apply `fontconfig-mono` changes and further remove ligations. * `serifs`: Optional, String, configures style of serifs. - When set to `slab`, the font will be converted into slab-serif. - Otherwise the font will be sans-serif. diff --git a/font-src/otl/gsub-cv-ss.ptl b/font-src/otl/gsub-cv-ss.ptl index 5f5c758ab..b3e5c158b 100644 --- a/font-src/otl/gsub-cv-ss.ptl +++ b/font-src/otl/gsub-cv-ss.ptl @@ -13,7 +13,6 @@ define [CvLookupName tag] : 'lookup_cv_' + tag define [SsLookupName tag] : 'lookup_ss_' + tag export : define [buildCVSS sink para glyphStore] : begin - if [not para.enableCvSs] : return nothing define {chain-rule} : ChainRuleBuilder sink local rec : BeginLookupBlock sink diff --git a/font-src/otl/index.ptl b/font-src/otl/index.ptl index 457114aba..eaa0e23ba 100644 --- a/font-src/otl/index.ptl +++ b/font-src/otl/index.ptl @@ -22,15 +22,17 @@ define [buildGSUB para glyphStore markGlyphs] : begin define gsub : CreateEmptyTable # NWID / WWID - buildGrFeature gsub glyphStore Gr.Nwid - buildGrFeature gsub glyphStore Gr.Wwid + if para.enableNwidWwid : begin + buildGrFeature gsub glyphStore Gr.Nwid + buildGrFeature gsub glyphStore Gr.Wwid # lnum / onum buildGrFeature gsub glyphStore Gr.Lnum buildGrFeature gsub glyphStore Gr.Onum # APLF - buildGrFeature gsub glyphStore Gr.AplForm + if para.enableCvSs : begin + buildGrFeature gsub glyphStore Gr.AplForm # numr / dnom buildGrFeature gsub glyphStore Gr.NumeratorForm @@ -53,7 +55,8 @@ define [buildGSUB para glyphStore markGlyphs] : begin buildGsubThousands gsub para glyphStore # cv##, ss## - buildCVSS gsub para glyphStore + if para.enableCvSs : begin + buildCVSS gsub para glyphStore # locl # Builds last, but the lookups are added into the beginning of the lookup list diff --git a/params/parameters.toml b/params/parameters.toml index b67837d0c..67eedde79 100644 --- a/params/parameters.toml +++ b/params/parameters.toml @@ -57,6 +57,9 @@ powerlineShiftX = 0 # Horizontal shift # Whether to generate CV-SS features enableCvSs = true +# Whether to generate NWID/WWID features +enableNwidWwid = true + # Whether to generate ligation enableLigation = true @@ -108,12 +111,14 @@ spacing = 0 # "FontFonfig Monospace" [spacing-fontconfig-mono] spacing = 0 +enableNwidWwid = false forceMonospace = true # Fixed variant [spacing-fixed] spacing = 0 enableLigation = false +enableNwidWwid = false forceMonospace = true # Quasi-proportional