Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update @next/font/google fonts #43385

Merged
merged 5 commits into from Nov 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
85 changes: 78 additions & 7 deletions packages/font/src/google/font-data.json
Expand Up @@ -146,6 +146,29 @@
"weights": ["400"],
"styles": ["normal"]
},
"Alexandria": {
"weights": [
"100",
"200",
"300",
"400",
"500",
"600",
"700",
"800",
"900",
"variable"
],
"styles": ["normal"],
"axes": [
{
"tag": "wght",
"min": 100,
"max": 900,
"defaultValue": 400
}
]
},
"Alfa Slab One": {
"weights": ["400"],
"styles": ["normal"]
Expand Down Expand Up @@ -764,19 +787,36 @@
"styles": ["normal"]
},
"Asap": {
"weights": ["400", "500", "600", "700", "variable"],
"weights": [
"100",
"200",
"300",
"400",
"500",
"600",
"700",
"800",
"900",
"variable"
],
"styles": ["normal", "italic"],
"axes": [
{
"tag": "wdth",
"min": 75,
"max": 125,
"defaultValue": 100
},
{
"tag": "wght",
"min": 400,
"max": 700,
"min": 100,
"max": 900,
"defaultValue": 400
}
]
},
"Asap Condensed": {
"weights": ["400", "500", "600", "700"],
"weights": ["200", "300", "400", "500", "600", "700", "800", "900"],
"styles": ["normal", "italic"]
},
"Asar": {
Expand Down Expand Up @@ -1821,8 +1861,27 @@
"styles": ["normal"]
},
"Chivo": {
"weights": ["300", "400", "700", "900"],
"styles": ["normal", "italic"]
"weights": [
"100",
"200",
"300",
"400",
"500",
"600",
"700",
"800",
"900",
"variable"
],
"styles": ["normal", "italic"],
"axes": [
{
"tag": "wght",
"min": 100,
"max": 900,
"defaultValue": 400
}
]
},
"Chonburi": {
"weights": ["400"],
Expand Down Expand Up @@ -2668,7 +2727,7 @@
},
"Figtree": {
"weights": ["300", "400", "500", "600", "700", "800", "900", "variable"],
"styles": ["normal"],
"styles": ["normal", "italic"],
"axes": [
{
"tag": "wght",
Expand Down Expand Up @@ -7168,6 +7227,18 @@
}
]
},
"Noto Serif Khojki": {
"weights": ["400", "500", "600", "700", "variable"],
"styles": ["normal"],
"axes": [
{
"tag": "wght",
"min": 400,
"max": 700,
"defaultValue": 400
}
]
},
"Noto Serif Lao": {
"weights": [
"100",
Expand Down
89 changes: 81 additions & 8 deletions packages/font/src/google/index.ts
Expand Up @@ -254,7 +254,7 @@ export declare function Alatsi<
preload?: boolean
fallback?: string[]
adjustFontFallback?: boolean
subsets?: Array<'latin' | 'latin-ext' | 'vietnamese'>
subsets?: Array<'cyrillic-ext' | 'latin' | 'latin-ext' | 'vietnamese'>
}): T extends undefined ? NextFont : NextFontWithVariable
export declare function Albert_Sans<
T extends CssVariable | undefined = undefined
Expand Down Expand Up @@ -439,6 +439,31 @@ export declare function Alex_Brush<
adjustFontFallback?: boolean
subsets?: Array<'latin' | 'latin-ext' | 'vietnamese'>
}): T extends undefined ? NextFont : NextFontWithVariable
export declare function Alexandria<
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<'arabic' | 'latin' | 'latin-ext' | 'vietnamese'>
}): T extends undefined ? NextFont : NextFontWithVariable
export declare function Alfa_Slab_One<
T extends CssVariable | undefined = undefined
>(options: {
Expand Down Expand Up @@ -1469,24 +1494,41 @@ export declare function Asap<
T extends CssVariable | undefined = undefined
>(options?: {
weight?:
| '100'
| '200'
| '300'
| '400'
| '500'
| '600'
| '700'
| '800'
| '900'
| 'variable'
| Array<'400' | '500' | '600' | '700'>
| Array<
'100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900'
>
style?: 'normal' | 'italic' | Array<'normal' | 'italic'>
display?: Display
variable?: T
preload?: boolean
fallback?: string[]
adjustFontFallback?: boolean
subsets?: Array<'latin' | 'latin-ext' | 'vietnamese'>
axes?: 'wdth'[]
}): T extends undefined ? NextFont : NextFontWithVariable
export declare function Asap_Condensed<
T extends CssVariable | undefined = undefined
>(options: {
weight: '400' | '500' | '600' | '700' | Array<'400' | '500' | '600' | '700'>
weight:
| '200'
| '300'
| '400'
| '500'
| '600'
| '700'
| '800'
| '900'
| Array<'200' | '300' | '400' | '500' | '600' | '700' | '800' | '900'>
style?: 'normal' | 'italic' | Array<'normal' | 'italic'>
display?: Display
variable?: T
Expand Down Expand Up @@ -3888,15 +3930,28 @@ export declare function Chilanka<
}): T extends undefined ? NextFont : NextFontWithVariable
export declare function Chivo<
T extends CssVariable | undefined = undefined
>(options: {
weight: '300' | '400' | '700' | '900' | Array<'300' | '400' | '700' | '900'>
>(options?: {
weight?:
| '100'
| '200'
| '300'
| '400'
| '500'
| '600'
| '700'
| '800'
| '900'
| 'variable'
| Array<
'100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900'
>
style?: 'normal' | 'italic' | Array<'normal' | 'italic'>
display?: Display
variable?: T
preload?: boolean
fallback?: string[]
adjustFontFallback?: boolean
subsets?: Array<'latin' | 'latin-ext'>
subsets?: Array<'latin' | 'latin-ext' | 'vietnamese'>
}): T extends undefined ? NextFont : NextFontWithVariable
export declare function Chonburi<
T extends CssVariable | undefined = undefined
Expand Down Expand Up @@ -5879,7 +5934,7 @@ export declare function Figtree<
| '900'
| 'variable'
| Array<'300' | '400' | '500' | '600' | '700' | '800' | '900'>
style?: 'normal' | Array<'normal'>
style?: 'normal' | 'italic' | Array<'normal' | 'italic'>
display?: Display
variable?: T
preload?: boolean
Expand Down Expand Up @@ -14243,7 +14298,7 @@ export declare function Noto_Sans_Sharada<
preload?: boolean
fallback?: string[]
adjustFontFallback?: boolean
subsets?: Array<'sharada'>
subsets?: Array<'latin' | 'latin-ext' | 'sharada'>
}): T extends undefined ? NextFont : NextFontWithVariable
export declare function Noto_Sans_Shavian<
T extends CssVariable | undefined = undefined
Expand Down Expand Up @@ -15171,6 +15226,24 @@ export declare function Noto_Serif_Khmer<
subsets?: Array<'khmer' | 'latin' | 'latin-ext'>
axes?: 'wdth'[]
}): T extends undefined ? NextFont : NextFontWithVariable
export declare function Noto_Serif_Khojki<
T extends CssVariable | undefined = undefined
>(options?: {
weight?:
| '400'
| '500'
| '600'
| '700'
| 'variable'
| Array<'400' | '500' | '600' | '700'>
style?: 'normal' | Array<'normal'>
display?: Display
variable?: T
preload?: boolean
fallback?: string[]
adjustFontFallback?: boolean
subsets?: Array<'khojki' | 'latin' | 'latin-ext'>
}): T extends undefined ? NextFont : NextFontWithVariable
export declare function Noto_Serif_Lao<
T extends CssVariable | undefined = undefined
>(options?: {
Expand Down