---
title: "FontFace | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Variable FontFace

FontFace: {  
    prototype: [FontFace](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.FontFace/);  
    new (  
        family: string,  
        source: string | [BufferSource](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.BufferSource/),  
        descriptors?: [FontFaceDescriptors](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.FontFaceDescriptors/),  
    ): [FontFace](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.FontFace/);  
}

#### Type Declaration

-   -   new (  
            family: string,  
            source: string | [BufferSource](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.BufferSource/),  
            descriptors?: [FontFaceDescriptors](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.FontFaceDescriptors/),  
        ): [FontFace](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.FontFace/)
    -   #### Parameters
        
        -   family: string
        -   source: string | [BufferSource](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.BufferSource/)
        -   `Optional`descriptors: [FontFaceDescriptors](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.FontFaceDescriptors/)
        
        #### Returns [FontFace](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.FontFace/)
        
-   ##### prototype: [FontFace](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.FontFace/)
