# Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """Test assumptions that web fonts rely on.""" import unittest from nototools import font_data import common_tests FONTS = common_tests.load_fonts( ['out/web/*.ttf'], expected_count=18) class TestItalicAngle(common_tests.TestItalicAngle): loaded_fonts = FONTS expected_italic_angle = -12.0 class TestMetaInfo(common_tests.TestMetaInfo): loaded_fonts = FONTS mark_heavier_as_bold = True # Since different font files are hinted at different times, the actual # outlines differ slightly. So we are keeping the version numbers as a hint. test_version_numbers = None
# Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """Test general health of the fonts.""" import unittest from robofab.world import OpenFont import common_tests import roboto_data FONTS = common_tests.load_fonts(["hinted/*.ttf"], expected_count=18) UFOS = common_tests.load_fonts( ["out/RobotoUFO/*.ufo", "out/RobotoCondensedUFO/*.ufo"], expected_count=18, font_class=OpenFont ) UFO_MASTERS = common_tests.load_fonts(["src/v2/*.ufo"], expected_count=3, font_class=OpenFont) class TestItalicAngle(common_tests.TestItalicAngle): loaded_fonts = FONTS expected_italic_angle = -12.0 class TestMetaInfo(common_tests.TestMetaInfo): """Bugs:
# http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """Test general health of the fonts.""" import unittest import common_tests FONTS = common_tests.load_fonts( ['hinted/*.ttf'], expected_count=18) class TestItalicAngle(common_tests.TestItalicAngle): loaded_fonts = FONTS class TestMetaInfo(common_tests.TestMetaInfo): loaded_fonts = FONTS test_us_weight = None test_version_numbers = None class TestDigitWidths(common_tests.TestDigitWidths): loaded_fonts = FONTS
# http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """Test general health of the fonts.""" import unittest from robofab.world import OpenFont import common_tests FONTS = common_tests.load_fonts(['hinted/*.ttf'], expected_count=18) UFOS = common_tests.load_fonts( ['out/RobotoUFO/*.ufo', 'out/RobotoCondensedUFO/*.ufo'], expected_count=18, font_class=OpenFont) UFO_MASTERS = common_tests.load_fonts(['src/v2/*.ufo'], expected_count=3, font_class=OpenFont) class TestItalicAngle(common_tests.TestItalicAngle): loaded_fonts = FONTS
# You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """Test general health of the fonts.""" import unittest import common_tests FONTS = common_tests.load_fonts(['hinted/*.ttf'], expected_count=18) class TestItalicAngle(common_tests.TestItalicAngle): loaded_fonts = FONTS class TestMetaInfo(common_tests.TestMetaInfo): loaded_fonts = FONTS test_us_weight = None test_version_numbers = None class TestDigitWidths(common_tests.TestDigitWidths): loaded_fonts = FONTS