Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
Merge pull request #193 from google/fea-fix
Browse files Browse the repository at this point in the history
Ligature fix
  • Loading branch information
jamesgk authored Jun 23, 2016
2 parents f5b8b71 + ce5547a commit f61b7a2
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 10 deletions.
2 changes: 1 addition & 1 deletion scripts/run_android_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class TestCharacterCoverage(font_tests.TestCharacterCoverage):
) - include # don't exclude legacy PUA


class TestLigatures(font_tests.TestLigatures):
class TestLigatures(run_general_tests.TestLigatures):
loaded_fonts = FONTS


Expand Down
14 changes: 8 additions & 6 deletions scripts/run_general_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,16 @@ class TestCharacterCoverage(font_tests.TestCharacterCoverage):
class TestLigatures(font_tests.TestLigatures):
loaded_fonts = FONTS
active = (
(None, ('ffi', 'ffl')),
(None, ('fi', 'fl', 'ffi', 'ffl')),
('--language=FRA', ('fi', 'fl', 'ffi', 'ffl')),
('--language=TRK', ('fl', 'ffl')),
('--features=dlig', ('ff', 'st', u'ſt')),
)
#TODO uncomment when working
#inactive = (
# ('--language=TRK', ('fi', 'ffi')),
#)
inactive = ()
inactive = (
(None, ('ff', 'st', u'ſt')),
('--language=TRK', ('fi', 'ffi')),
('--script=arab', ('fi', 'fl', 'ffi', 'ffl')),
)


class TestFeatures(font_tests.TestFeatures):
Expand Down
2 changes: 1 addition & 1 deletion scripts/run_web_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class TestVerticalMetrics(font_tests.TestVerticalMetrics):
expected_os2_usWinAscent = 1946


class TestLigatures(font_tests.TestLigatures):
class TestLigatures(run_general_tests.TestLigatures):
loaded_fonts = FONTS


Expand Down
23 changes: 21 additions & 2 deletions src/v2/Roboto_Regular.ufo/features.fea
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ languagesystem latn dflt;
languagesystem latn MOL;
languagesystem latn ROM;
languagesystem latn FRA;
languagesystem latn TUR;
languagesystem latn TRK;
languagesystem latn AZE;
languagesystem latn CRT;
languagesystem latn NAV;
Expand Down Expand Up @@ -939,7 +939,26 @@ feature liga {
sub f l by f_l;
} liga02;

language TUR exclude_dflt;
# include all ligatures for these languages
language FRA; # French
lookup liga01;
lookup liga02;
language MOL; # Moldavian
lookup liga01;
lookup liga02;
language NAV; # Navajo
lookup liga01;
lookup liga02;
language ROM; # Romanian
lookup liga01;
lookup liga02;

# don't include fi/ffi ligatures for these languages
language AZE exclude_dflt; # Azerbaijani
lookup liga02;
language CRT exclude_dflt; # Crimean Tatar
lookup liga02;
language TRK exclude_dflt; # Turkish
lookup liga02;

} liga;
Expand Down

0 comments on commit f61b7a2

Please sign in to comment.