linebender / norad

Rust crate for working with Unified Font Object files
Apache License 2.0
44 stars 12 forks source link

Always retain the default layer #342

Closed madig closed 4 months ago

madig commented 4 months ago

Previously, you could drop the default layer if it had been renamed.

Code suggested by @RickyDaMa :)

anthrotype commented 4 months ago

The correct fix that doesn't depend on any specific layer name or ordering is to treat as default the layer whose path points to the default glyphs directory