Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
123 changes: 122 additions & 1 deletion packages/font/src/google/font-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -5923,6 +5923,72 @@
"vietnamese"
]
},
"Google Sans Flex": {
"weights": [
"100",
"200",
"300",
"400",
"500",
"600",
"700",
"800",
"900",
"1000",
"variable"
],
"styles": ["normal"],
"axes": [
{
"tag": "GRAD",
"min": 0,
"max": 100,
"defaultValue": 0
},
{
"tag": "ROND",
"min": 0,
"max": 100,
"defaultValue": 0
},
{
"tag": "opsz",
"min": 6,
"max": 144,
"defaultValue": 18
},
{
"tag": "slnt",
"min": -10,
"max": 0,
"defaultValue": 0
},
{
"tag": "wdth",
"min": 25,
"max": 151,
"defaultValue": 100
},
{
"tag": "wght",
"min": 1,
"max": 1000,
"defaultValue": 400
}
],
"subsets": [
"canadian-aboriginal",
"cherokee",
"latin",
"latin-ext",
"math",
"nushu",
"symbols",
"syriac",
"tifinagh",
"vietnamese"
]
},
"Gorditas": {
"weights": ["400", "700"],
"styles": ["normal"],
Expand Down Expand Up @@ -7380,6 +7446,11 @@
"styles": ["normal"],
"subsets": ["latin", "latin-ext"]
},
"Kedebideri": {
"weights": ["400", "500", "600", "700", "800", "900"],
"styles": ["normal"],
"subsets": ["latin"]
},
"Kelly Slab": {
"weights": ["400"],
"styles": ["normal"],
Expand Down Expand Up @@ -8071,8 +8142,16 @@
"subsets": ["latin"]
},
"Libre Baskerville": {
"weights": ["400", "700"],
"weights": ["400", "500", "600", "700", "variable"],
"styles": ["normal", "italic"],
"axes": [
{
"tag": "wght",
"min": 400,
"max": 700,
"defaultValue": 400
}
],
"subsets": ["latin", "latin-ext"]
},
"Libre Bodoni": {
Expand Down Expand Up @@ -15927,6 +16006,48 @@
"styles": ["normal"],
"subsets": ["latin"]
},
"Science Gothic": {
"weights": [
"100",
"200",
"300",
"400",
"500",
"600",
"700",
"800",
"900",
"variable"
],
"styles": ["normal"],
"axes": [
{
"tag": "CTRS",
"min": 0,
"max": 85,
"defaultValue": 0
},
{
"tag": "slnt",
"min": -10,
"max": 0,
"defaultValue": 0
},
{
"tag": "wdth",
"min": 50,
"max": 200,
"defaultValue": 100
},
{
"tag": "wght",
"min": 100,
"max": 900,
"defaultValue": 400
}
],
"subsets": ["cyrillic", "cyrillic-ext", "latin", "latin-ext", "vietnamese"]
},
"Scope One": {
"weights": ["400"],
"styles": ["normal"],
Expand Down
104 changes: 102 additions & 2 deletions packages/font/src/google/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9058,6 +9058,53 @@ export declare function Google_Sans_Code<
| 'vietnamese'
>
}): T extends undefined ? NextFont : NextFontWithVariable
export declare function Google_Sans_Flex<
T extends CssVariable | undefined = undefined,
>(options?: {
weight?:
| '100'
| '200'
| '300'
| '400'
| '500'
| '600'
| '700'
| '800'
| '900'
| '1000'
| 'variable'
| Array<
| '100'
| '200'
| '300'
| '400'
| '500'
| '600'
| '700'
| '800'
| '900'
| '1000'
>
style?: 'normal' | Array<'normal'>
display?: Display
variable?: T
preload?: boolean
fallback?: string[]
adjustFontFallback?: boolean
subsets?: Array<
| 'canadian-aboriginal'
| 'cherokee'
| 'latin'
| 'latin-ext'
| 'math'
| 'nushu'
| 'symbols'
| 'syriac'
| 'tifinagh'
| 'vietnamese'
>
axes?: ('GRAD' | 'ROND' | 'opsz' | 'slnt' | 'wdth')[]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing 'wght' axis in TypeScript type definition for Google Sans Flex. The JSON data defines 6 axes including 'wght' (line 5973), but the TypeScript type only includes 5 axes. Users will get TypeScript errors when trying to use the wght axis even though the font supports it.

axes?: ('GRAD' | 'ROND' | 'opsz' | 'slnt' | 'wdth' | 'wght')[]
Suggested change
axes?: ('GRAD' | 'ROND' | 'opsz' | 'slnt' | 'wdth')[]
axes?: ('GRAD' | 'ROND' | 'opsz' | 'slnt' | 'wdth' | 'wght')[]

Spotted by Graphite Agent

Fix in Graphite


Is this helpful? React 👍 or 👎 to let us know.

}): T extends undefined ? NextFont : NextFontWithVariable
export declare function Gorditas<
T extends CssVariable | undefined = undefined,
>(options: {
Expand Down Expand Up @@ -11742,6 +11789,25 @@ export declare function Keania_One<
adjustFontFallback?: boolean
subsets?: Array<'latin' | 'latin-ext'>
}): T extends undefined ? NextFont : NextFontWithVariable
export declare function Kedebideri<
T extends CssVariable | undefined = undefined,
>(options: {
weight:
| '400'
| '500'
| '600'
| '700'
| '800'
| '900'
| Array<'400' | '500' | '600' | '700' | '800' | '900'>
style?: 'normal' | Array<'normal'>
display?: Display
variable?: T
preload?: boolean
fallback?: string[]
adjustFontFallback?: boolean
subsets?: Array<'latin'>
}): T extends undefined ? NextFont : NextFontWithVariable
export declare function Kelly_Slab<
T extends CssVariable | undefined = undefined,
>(options: {
Expand Down Expand Up @@ -12944,8 +13010,14 @@ export declare function Libre_Barcode_EAN13_Text<
}): T extends undefined ? NextFont : NextFontWithVariable
export declare function Libre_Baskerville<
T extends CssVariable | undefined = undefined,
>(options: {
weight: '400' | '700' | Array<'400' | '700'>
>(options?: {
weight?:
| '400'
| '500'
| '600'
| '700'
| 'variable'
| Array<'400' | '500' | '600' | '700'>
style?: 'normal' | 'italic' | Array<'normal' | 'italic'>
display?: Display
variable?: T
Expand Down Expand Up @@ -25211,6 +25283,34 @@ export declare function Schoolbell<
adjustFontFallback?: boolean
subsets?: Array<'latin'>
}): T extends undefined ? NextFont : NextFontWithVariable
export declare function Science_Gothic<
T extends CssVariable | undefined = undefined,
>(options?: {
weight?:
| '100'
| '200'
| '300'
| '400'
| '500'
| '600'
| '700'
| '800'
| '900'
| 'variable'
| Array<
'100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900'
>
style?: 'normal' | Array<'normal'>
display?: Display
variable?: T
preload?: boolean
fallback?: string[]
adjustFontFallback?: boolean
subsets?: Array<
'cyrillic' | 'cyrillic-ext' | 'latin' | 'latin-ext' | 'vietnamese'
>
axes?: ('CTRS' | 'slnt' | 'wdth')[]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing 'wght' axis in TypeScript type definition for Science Gothic. The JSON data defines 4 axes including 'wght' (line 16043), but the TypeScript type only includes 3 axes. Users will get TypeScript errors when trying to use the wght axis even though the font supports it.

axes?: ('CTRS' | 'slnt' | 'wdth' | 'wght')[]
Suggested change
axes?: ('CTRS' | 'slnt' | 'wdth')[]
axes?: ('CTRS' | 'slnt' | 'wdth' | 'wght')[]

Spotted by Graphite Agent

Fix in Graphite


Is this helpful? React 👍 or 👎 to let us know.

}): T extends undefined ? NextFont : NextFontWithVariable
export declare function Scope_One<
T extends CssVariable | undefined = undefined,
>(options: {
Expand Down
Loading