Complete the code to import a Google font in Astro.
import [1] from '@astrojs/google-fonts';
The correct import is GoogleFonts from '@astrojs/google-fonts'.
Complete the code to add the Roboto font with weights 400 and 700.
<GoogleFonts fonts=[1] />The font name is lowercase roboto and weights are numbers in an array.
Fix the error in the font preload attribute to improve performance.
<GoogleFonts preload=[1] />The preload attribute expects a boolean true or false, not a string.
Fill both blanks to specify subsets and display strategy for font optimization.
<GoogleFonts fonts=[1] subsets=[2] />
Use the font object for fonts and an array of subsets like ["latin"] for subsets.
Fill all three blanks to optimize font loading with display strategy and preload enabled.
<GoogleFonts fonts=[1] display=[2] preload=[3] />
Use the font object for fonts, a string like "swap" for display, and boolean true for preload.
