Skip to content

Commit

Permalink
Ignore unexpected ligatures
Browse files Browse the repository at this point in the history
  • Loading branch information
matype committed May 18, 2024
1 parent 962eeb5 commit cb0db25
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 4 deletions.
8 changes: 7 additions & 1 deletion sources/0xProto-Italic.glyphs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
.appVersion = "3303";
.appVersion = "3306";
.formatVersion = 3;
classes = (
{
Expand Down Expand Up @@ -299,6 +299,8 @@ lookup less_bar {

# ||
lookup bar_bar {
ignore sub bar' bar bar;
ignore sub bar bar' bar;
sub bar.spacer bar' by bar_bar;
sub bar' bar by bar.spacer;
} bar_bar;
Expand Down Expand Up @@ -527,12 +529,16 @@ lookup numbersign_equal {

# %%
lookup percent_percent {
ignore sub percent' percent percent;
ignore sub percent percent' percent;
sub percent.spacer percent' by percent_percent;
sub percent' percent by percent.spacer;
} percent_percent;

# &&
lookup ampersand_ampersand {
ignore sub ampersand' ampersand ampersand;
ignore sub ampersand ampersand' ampersand;
sub ampersand.spacer ampersand' by ampersand_ampersand;
sub ampersand' ampersand by ampersand.spacer;
} ampersand_ampersand;
Expand Down
6 changes: 6 additions & 0 deletions sources/0xProto-Italic.ufo/features.fea
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,8 @@ lookup less_bar {

# ||
lookup bar_bar {
ignore sub bar' bar bar;
ignore sub bar bar' bar;
sub bar.spacer bar' by bar_bar;
sub bar' bar by bar.spacer;
} bar_bar;
Expand Down Expand Up @@ -488,12 +490,16 @@ lookup numbersign_equal {

# %%
lookup percent_percent {
ignore sub percent' percent percent;
ignore sub percent percent' percent;
sub percent.spacer percent' by percent_percent;
sub percent' percent by percent.spacer;
} percent_percent;

# &&
lookup ampersand_ampersand {
ignore sub ampersand' ampersand ampersand;
ignore sub ampersand ampersand' ampersand;
sub ampersand.spacer ampersand' by ampersand_ampersand;
sub ampersand' ampersand by ampersand.spacer;
} ampersand_ampersand;
Expand Down
2 changes: 1 addition & 1 deletion sources/0xProto-Italic.ufo/lib.plist
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
</dict>
</array>
<key>com.schriftgestaltung.appVersion</key>
<string>3303</string>
<string>3306</string>
<key>com.schriftgestaltung.customParameter.GSFont.Write lastChange</key>
<integer>0</integer>
<key>com.schriftgestaltung.customParameter.GSFont.disablesAutomaticAlignment</key>
Expand Down
6 changes: 6 additions & 0 deletions sources/0xProto-Regular.ufo/features.fea
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,8 @@ lookup less_bar {

# ||
lookup bar_bar {
ignore sub bar' bar bar;
ignore sub bar bar' bar;
sub bar.spacer bar' by bar_bar;
sub bar' bar by bar.spacer;
} bar_bar;
Expand Down Expand Up @@ -488,12 +490,16 @@ lookup numbersign_equal {

# %%
lookup percent_percent {
ignore sub percent' percent percent;
ignore sub percent percent' percent;
sub percent.spacer percent' by percent_percent;
sub percent' percent by percent.spacer;
} percent_percent;

# &&
lookup ampersand_ampersand {
ignore sub ampersand' ampersand ampersand;
ignore sub ampersand ampersand' ampersand;
sub ampersand.spacer ampersand' by ampersand_ampersand;
sub ampersand' ampersand by ampersand.spacer;
} ampersand_ampersand;
Expand Down
2 changes: 1 addition & 1 deletion sources/0xProto-Regular.ufo/lib.plist
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
</dict>
</array>
<key>com.schriftgestaltung.appVersion</key>
<string>3303</string>
<string>3306</string>
<key>com.schriftgestaltung.customParameter.GSFont.Write lastChange</key>
<integer>0</integer>
<key>com.schriftgestaltung.customParameter.GSFont.disablesAutomaticAlignment</key>
Expand Down
8 changes: 7 additions & 1 deletion sources/0xProto.glyphs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
.appVersion = "3303";
.appVersion = "3306";
.formatVersion = 3;
classes = (
{
Expand Down Expand Up @@ -299,6 +299,8 @@ lookup less_bar {
# ||
lookup bar_bar {
ignore sub bar' bar bar;
ignore sub bar bar' bar;
sub bar.spacer bar' by bar_bar;
sub bar' bar by bar.spacer;
} bar_bar;
Expand Down Expand Up @@ -527,12 +529,16 @@ lookup numbersign_equal {
# %%
lookup percent_percent {
ignore sub percent' percent percent;
ignore sub percent percent' percent;
sub percent.spacer percent' by percent_percent;
sub percent' percent by percent.spacer;
} percent_percent;
# &&
lookup ampersand_ampersand {
ignore sub ampersand' ampersand ampersand;
ignore sub ampersand ampersand' ampersand;
sub ampersand.spacer ampersand' by ampersand_ampersand;
sub ampersand' ampersand by ampersand.spacer;
} ampersand_ampersand;
Expand Down

0 comments on commit cb0db25

Please sign in to comment.