genericKeyFaceFor function
The generic fallback for families without a renderer of their own: flat faces in the spec's shapes (no family-specific artwork).
Implementation
M3eKeyFace genericKeyFaceFor(ThemeSpec spec) {
final shape = spec.keyShape;
return M3eKeyFace(
restShape: restGeometry(shape),
operatorShape: operatorGeometry(shape),
pressedCornerPermille: shape.morphCornerPermille ?? shape.cornerPermille,
slashedZero: spec.type.slashedZero,
);
}