---
title: "default | 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.

# Class default

##### Index

### Constructors[](#constructors)

[constructor](#constructor)

### Methods[](#methods)

[draw](#draw)

## Constructors[](#constructors-1)

### constructor[](#constructor)

-   new default(options: [TinySDFOptions](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.TinySDFOptions/)): default[](#constructordefault)
    
    #### Parameters
    
    -   options: [TinySDFOptions](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.TinySDFOptions/)
    
    #### Returns default
    

## Methods[](#methods-1)

### draw[](#draw)

-   draw(  
        char: string,  
    ): {  
        data: Uint8ClampedArray;  
        glyphAdvance: number;  
        glyphHeight: number;  
        glyphLeft: number;  
        glyphTop: number;  
        glyphWidth: number;  
        height: number;  
        width: number;  
    }[](#draw-1)
    
    #### Parameters
    
    -   char: string
    
    #### Returns {  
        data: Uint8ClampedArray;  
        glyphAdvance: number;  
        glyphHeight: number;  
        glyphLeft: number;  
        glyphTop: number;  
        glyphWidth: number;  
        height: number;  
        width: number;  
    }
