Google Fonts' fontbakery tool has recently made it mandatory for fonts supporting complex scripts to contain a dotted circle (U+25CC) glyph, and for this glyph to have appropriate anchors for all attachable marks.
This is a boring job to do manually, and both the drawing and the anchor positioning can be automated.
This PR introduces a filter which can be called at font build time (--filter "ufo2ft.filters.dottedCircleFilter::DottedCircleFilter(pre=True)") which checks for the presence of a dotted circle glyph, adds one if there is not one present, computes average anchor positions for attaching anchors and adds any missing anchors to the dotted circle glyph.
Google Fonts' fontbakery tool has recently made it mandatory for fonts supporting complex scripts to contain a dotted circle (U+25CC) glyph, and for this glyph to have appropriate anchors for all attachable marks.
This is a boring job to do manually, and both the drawing and the anchor positioning can be automated.
This PR introduces a filter which can be called at font build time (
--filter "ufo2ft.filters.dottedCircleFilter::DottedCircleFilter(pre=True)"
) which checks for the presence of a dotted circle glyph, adds one if there is not one present, computes average anchor positions for attaching anchors and adds any missing anchors to the dotted circle glyph.Example: