@@ -230,7 +230,7 @@ const brandTypographyBundle = (
230230    "/* typography variables from _brand.yml */" , 
231231    '// quarto-scss-analysis-annotation { "action": "push", "origin": "_brand.yml typography" }' , 
232232  ] ; 
233-   const  typographyImports : string [ ]  =  [ ] ; 
233+   const  typographyImports : Set < string >  =  new   Set ( ) ; 
234234  const  fonts  =  brand . data ?. typography ?. fonts  ??  [ ] ; 
235235
236236  const  pathCorrection  =  relative ( brand . projectDir ,  brand . brandDir ) ; 
@@ -268,10 +268,10 @@ const brandTypographyBundle = (
268268        googleFamily  =  thisFamily ; 
269269      }  else  if  ( googleFamily  !==  thisFamily )  { 
270270        throw  new  Error ( 
271-           `Inconsisent  Google font families found: ${ googleFamily }   and ${ thisFamily }  ` , 
271+           `Inconsistent  Google font families found: ${ googleFamily }   and ${ thisFamily }  ` , 
272272        ) ; 
273273      } 
274-       typographyImports . push ( googleFontImportString ( resolvedFont ) ) ; 
274+       typographyImports . add ( googleFontImportString ( resolvedFont ) ) ; 
275275    } 
276276    if  ( googleFamily  ===  "" )  { 
277277      return  undefined ; 
@@ -437,7 +437,7 @@ const brandTypographyBundle = (
437437    // dependency: "bootstrap", 
438438    quarto : { 
439439      defaults : typographyVariables . join ( "\n" ) , 
440-       uses : typographyImports . join ( "\n" ) , 
440+       uses : Array . from ( typographyImports ) . join ( "\n" ) , 
441441      functions : "" , 
442442      mixins : "" , 
443443      rules : "" , 
0 commit comments