Skip to content

[opentype/slant_direction] False positive FAILs under certain conditions. #5041

@kalapi

Description

@kalapi

Observed behaviour

I am working on a VF binary with two axes (slnt & wght).

  • The slnt min/dflt/max are -8/0/0 and the wght min/max are 100/800.
  • The default master in the VF is slnt:0 wght:100

When running check-googlefonts/typenetwork on the the binary, it fails this check.

When I set my default master to slnt:0 wght:400 it passes.

This means that the values obtained by the x_delta function when checking the outline profile in wght:100 reference glyphs is not returning True for slnt minValue < maxValue.

Expected behaviour

The check should pass (when settings are up-to-spec) regardless of the stem-widths of the default master.

Resources and steps needed to reproduce

The font I'm working on is propreitary so can't offer it here but can offer it via email for testing.

I'm using the latest FontBakery version (1.0.1) on macOS 15.3.2 using Python 3.9.6

There's a little bit more info on the P.R. for this check.

cc: @yanone

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions