-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from omacranger/feat/fa-620-support
FontAwesome 6.2.0+ Support
- Loading branch information
Showing
12 changed files
with
1,883 additions
and
1,156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { FAFamilyType, FAStyleType, Subset, TargetFormat } from "./types"; | ||
|
||
// Maps style to actual font name / file name. | ||
export const STYLE_FONT_MAP: Record<Subset, string> = { | ||
solid: "fa-solid-900", | ||
light: "fa-light-300", | ||
regular: "fa-regular-400", | ||
thin: "fa-thin-100", | ||
brands: "fa-brands-400", | ||
duotone: "fa-duotone-900", | ||
"sharp-solid": "fa-sharp-solid-900", | ||
}; | ||
|
||
export const OUTPUT_FORMAT_MAP: Record<TargetFormat, string> = { | ||
sfnt: "ttf", | ||
woff: "woff", | ||
woff2: "woff2", | ||
}; | ||
|
||
export const SUBSET_FAMILY_MAP: Record<Subset, FAFamilyType> = { | ||
"sharp-solid": "sharp", | ||
brands: "classic", | ||
duotone: "duotone", | ||
light: "classic", | ||
regular: "classic", | ||
solid: "classic", | ||
thin: "classic", | ||
}; | ||
|
||
export const SUBSET_STYLE_MAP: Record<Subset, FAStyleType> = { | ||
"sharp-solid": "solid", | ||
brands: "brands", | ||
duotone: "solid", | ||
light: "light", | ||
regular: "regular", | ||
solid: "solid", | ||
thin: "thin", | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.