same_family
Whether two family names are the same family: compared without spaces or case, since design
files and font files write "SF Pro", "SFPro" and "sf pro" for one family.
Import
Section titled “Import”Cargo feature font (enabled by default). To compile only this module:
or in Cargo.toml:
Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
a | &str | A family name. |
b | &str | Another one. |
Returns
Section titled “Returns”bool — true if the names are equal once spaces are removed and case is ignored.
