split_postscript
Splits a PostScript font name into family and style at its first hyphen:
NeutrifPro-SemiBold is NeutrifPro and SemiBold.
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 |
|---|---|---|
name | &str | The PostScript name. |
Returns
Section titled “Returns”(&str, &str) — The family and the style, borrowed from name. The style is empty when there is no hyphen.
