Skip to content

Commit

Permalink
Update @next/font/google fonts (#43385)
Browse files Browse the repository at this point in the history
Add new fonts and font variations.

## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have a helpful link attached, see
[`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md)

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the
feature request has been accepted for implementation before opening a
PR.
- [ ] Related issues linked using `fixes #number`
- [ ]
[e2e](https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs)
tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have a helpful link attached, see
[`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md)

## Documentation / Examples

- [ ] Make sure the linting passes by running `pnpm build && pnpm lint`
- [ ] The "examples guidelines" are followed from [our contributing
doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
hanneslund and kodiakhq[bot] committed Nov 26, 2022
1 parent 758990d commit 2085dac
Show file tree
Hide file tree
Showing 2 changed files with 159 additions and 15 deletions.
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

0 comments on commit 2085dac

Please sign in to comment.