outline

fontbakery.profiles.outline.close_but_not_on(yExpected, yTrue, tolerance)[source][source]
com.google.fonts/check/outline_alignment_miss[source][source]

Are there any misaligned on-curve points?

Rationale:

This check heuristically looks for on-curve points which are close to, but do not sit on, significant boundary coordinates. For example, a point which has a Y-coordinate of 1 or -1 might be a misplaced baseline point. As well as the baseline, here we also check for points near the x-height (but only for lowercase Latin letters), cap-height, ascender and descender Y coordinates.

Not all such misaligned curve points are a mistake, and sometimes the design may call for points in locations near the boundaries. As this check is liable to generate significant numbers of false positives, it will pass if there are more than 100 reported misalignments.

com.google.fonts/check/outline_colinear_vectors[source][source]

Do any segments have colinear vectors?

Rationale:

This check looks for consecutive line segments which have the same angle. This normally happens if an outline point has been added by accident.

This check is not run for variable fonts, as they may legitimately have colinear vectors.

com.google.fonts/check/outline_jaggy_segments[source][source]

Do outlines contain any jaggy segments?

Rationale:

This check heuristically detects outline segments which form a particularly small angle, indicative of an outline error. This may cause false positives in cases such as extreme ink traps, so should be regarded as advisory and backed up by manual inspection.

com.google.fonts/check/outline_semi_vertical[source][source]

Do outlines contain any semi-vertical or semi-horizontal lines?

Rationale:

This check detects line segments which are nearly, but not quite, exactly horizontal or vertical. Sometimes such lines are created by design, but often they are indicative of a design error.

This check is disabled for italic styles, which often contain nearly-upright lines.

com.google.fonts/check/outline_short_segments[source][source]

Are any segments inordinately short?

Rationale:

This check looks for outline segments which seem particularly short (less than 0.6% of the overall path length).

This check is not run for variable fonts, as they may legitimately have short segments. As this check is liable to generate significant numbers of false positives, it will pass if there are more than 100 reported short segments.

FontBakeryCondition fontbakery.profiles.outline.outlines_dict[source][source]