Skip to content

Commit

Permalink
Updated docs: the Quick start section
Browse files Browse the repository at this point in the history
  • Loading branch information
pkolchanov authored and felipesanches committed Jan 12, 2024
1 parent cfcfe91 commit f7b1364
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions docs/source/developer/writing-profiles.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,7 @@ from fontbakery.callable import check, condition
# status emitted by a check is the end result of that check.
# DEBUG can't be an end result, the least severe status
# allowed as a check is PASS.
from fontbakery.checkrunner import (DEBUG, PASS,
INFO, SKIP, WARN, FAIL, ERROR)
from fontbakery.status import DEBUG, PASS, INFO, SKIP, WARN, FAIL, ERROR
# Used to inform get_module_profile whether and
# how to create a profile. This
# example will create an instance of `FontsProfile`.
Expand All @@ -196,7 +195,7 @@ from fontbakery.fonts_profile import ( # NOQA pylint: disable=unused-import
# for this example, containing checks for the accordingly
# named tables
profile_imports = [
['fontbakery.profiles', ['cmap', 'head']]
['fontbakery.profiles', ['shared_conditions']]
]

# Now we picked some checks from other profiles, but
Expand Down Expand Up @@ -252,14 +251,6 @@ def has_cap_r_in_name(font):
# use return within this check.
return PASS, '"R" is in font filename.'


# conditions are used for the dependency injection as arguments
# and to decide if a check will be skipped
@condition
# ttFont is a condition built into FontProfile
# it returns an instance of fontTools.TTLib.TTFont
def is_ttf(ttFont):
return 'glyf' in ttFont

@check(
id='de.graphicore.fontbakery/examples/ttf_has_glyphs',
Expand Down

0 comments on commit f7b1364

Please sign in to comment.