Skip to content

Commit

Permalink
demote logging.warning about missing component layer to debug level
Browse files Browse the repository at this point in the history
The current propagate_anchors implementation only finds a matching component layer that has the same layerId so only works for 'master' layers; to reduce the verbosity of the log for fonts that contain lots of special non-master (brace, bracket, etc) layers, for which we currently can't retrieve the corresponding component layer's anchors, for now we demote this from a warning to a debug message.
Note that the old anchor_propagation.py was only processing 'master' layers as well, so ignoring the special layers during anchor propagation is not a regression.
  • Loading branch information
anthrotype authored and schriftgestalt committed Oct 23, 2024
1 parent 2fac9c7 commit 4793866
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/glyphsLib/builder/transformations/propagate_anchors.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def anchors_traversing_components(
# referenced have already been propagated
anchors = get_component_layer_anchors(component, layer, glyphs, done_anchors)
if anchors is None:
logger.warning(
logger.debug(
"could not get layer '%s' for component '%s' of glyph '%s'",
layer.layerId,
component.name,
Expand Down

0 comments on commit 4793866

Please sign in to comment.