Skip to content

Commit

Permalink
Update font data (#68639)
Browse files Browse the repository at this point in the history
This auto-generated PR updates font data with latest available

---------

Co-authored-by: samcx <[email protected]>
  • Loading branch information
2 people authored and ztanner committed Aug 26, 2024
1 parent 2f7fa98 commit dd32e0f
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 12 deletions.
24 changes: 17 additions & 7 deletions packages/font/src/google/font-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -1965,7 +1965,7 @@
"defaultValue": 400
}
],
"subsets": ["cyrillic-ext", "latin", "latin-ext", "vietnamese"]
"subsets": ["latin", "latin-ext", "vietnamese"]
},
"Bruno Ace": {
"weights": ["400"],
Expand Down Expand Up @@ -5063,13 +5063,13 @@
"900",
"variable"
],
"styles": ["normal"],
"styles": ["normal", "italic"],
"axes": [
{
"tag": "slnt",
"min": -10,
"max": 0,
"defaultValue": 0
"tag": "opsz",
"min": 14,
"max": 32,
"defaultValue": 14
},
{
"tag": "wght",
Expand Down Expand Up @@ -10685,7 +10685,7 @@
"Philosopher": {
"weights": ["400", "700"],
"styles": ["normal", "italic"],
"subsets": ["cyrillic", "cyrillic-ext", "latin", "vietnamese"]
"subsets": ["cyrillic", "cyrillic-ext", "latin", "latin-ext", "vietnamese"]
},
"Phudu": {
"weights": ["300", "400", "500", "600", "700", "800", "900", "variable"],
Expand Down Expand Up @@ -12235,6 +12235,11 @@
"styles": ["normal"],
"subsets": ["latin", "latin-ext"]
},
"Sankofa Display": {
"weights": ["400"],
"styles": ["normal"],
"subsets": ["latin", "latin-ext", "vietnamese"]
},
"Sansita": {
"weights": ["400", "700", "800", "900"],
"styles": ["normal", "italic"],
Expand Down Expand Up @@ -14400,6 +14405,11 @@
"styles": ["normal"],
"subsets": ["latin"]
},
"Zain": {
"weights": ["200", "300", "400", "700", "800", "900"],
"styles": ["normal"],
"subsets": ["arabic", "latin"]
},
"Zen Antique": {
"weights": ["400"],
"styles": ["normal"],
Expand Down
2 changes: 1 addition & 1 deletion packages/font/src/google/get-font-axes.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('getFontAxes errors', () => {
expect(() => getFontAxes('Inter', ['variable'], [], true as any))
.toThrowErrorMatchingInlineSnapshot(`
"Invalid axes value for font \`Inter\`, expected an array of axes.
Available axes: \`slnt\`"
Available axes: \`opsz\`"
`)
})

Expand Down
41 changes: 37 additions & 4 deletions packages/font/src/google/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3351,7 +3351,7 @@ export declare function Bricolage_Grotesque<
preload?: boolean
fallback?: string[]
adjustFontFallback?: boolean
subsets?: Array<'cyrillic-ext' | 'latin' | 'latin-ext' | 'vietnamese'>
subsets?: Array<'latin' | 'latin-ext' | 'vietnamese'>
axes?: ('opsz' | 'wdth')[]
}): T extends undefined ? NextFont : NextFontWithVariable
export declare function Bruno_Ace<
Expand Down Expand Up @@ -9051,7 +9051,7 @@ export declare function Inter<
| Array<
'100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900'
>
style?: 'normal' | Array<'normal'>
style?: 'normal' | 'italic' | Array<'normal' | 'italic'>
display?: Display
variable?: T
preload?: boolean
Expand All @@ -9066,7 +9066,7 @@ export declare function Inter<
| 'latin-ext'
| 'vietnamese'
>
axes?: 'slnt'[]
axes?: 'opsz'[]
}): T extends undefined ? NextFont : NextFontWithVariable
export declare function Inter_Tight<
T extends CssVariable | undefined = undefined
Expand Down Expand Up @@ -18222,7 +18222,9 @@ export declare function Philosopher<
preload?: boolean
fallback?: string[]
adjustFontFallback?: boolean
subsets?: Array<'cyrillic' | 'cyrillic-ext' | 'latin' | 'vietnamese'>
subsets?: Array<
'cyrillic' | 'cyrillic-ext' | 'latin' | 'latin-ext' | 'vietnamese'
>
}): T extends undefined ? NextFont : NextFontWithVariable
export declare function Phudu<
T extends CssVariable | undefined = undefined
Expand Down Expand Up @@ -20823,6 +20825,18 @@ export declare function Sancreek<
adjustFontFallback?: boolean
subsets?: Array<'latin' | 'latin-ext'>
}): T extends undefined ? NextFont : NextFontWithVariable
export declare function Sankofa_Display<
T extends CssVariable | undefined = undefined
>(options: {
weight: '400' | Array<'400'>
style?: 'normal' | Array<'normal'>
display?: Display
variable?: T
preload?: boolean
fallback?: string[]
adjustFontFallback?: boolean
subsets?: Array<'latin' | 'latin-ext' | 'vietnamese'>
}): T extends undefined ? NextFont : NextFontWithVariable
export declare function Sansita<
T extends CssVariable | undefined = undefined
>(options: {
Expand Down Expand Up @@ -24687,6 +24701,25 @@ export declare function ZCOOL_XiaoWei<
adjustFontFallback?: boolean
subsets?: Array<'latin'>
}): T extends undefined ? NextFont : NextFontWithVariable
export declare function Zain<
T extends CssVariable | undefined = undefined
>(options: {
weight:
| '200'
| '300'
| '400'
| '700'
| '800'
| '900'
| Array<'200' | '300' | '400' | '700' | '800' | '900'>
style?: 'normal' | Array<'normal'>
display?: Display
variable?: T
preload?: boolean
fallback?: string[]
adjustFontFallback?: boolean
subsets?: Array<'arabic' | 'latin'>
}): T extends undefined ? NextFont : NextFontWithVariable
export declare function Zen_Antique<
T extends CssVariable | undefined = undefined
>(options: {
Expand Down

0 comments on commit dd32e0f

Please sign in to comment.