---
title: "GlyphManager | 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 GlyphManager

##### Index

### Constructors[](#constructors)

[constructor](#constructor)

### Properties[](#properties)

[entries](#entries) [lang?](#lang) [localIdeographFontFamily](#localideographfontfamily) [requestManager](#requestmanager) [url](#url) [loadGlyphRange](#loadglyphrange) [TinySDF](#tinysdf)

### Methods[](#methods)

[destroy](#destroy) [getGlyphs](#getglyphs) [setURL](#seturl)

## Constructors[](#constructors-1)

### constructor[](#constructor)

-   new GlyphManager(  
        requestManager: [RequestManager](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.RequestManager/),  
        localIdeographFontFamily?: string | false,  
        lang?: string,  
    ): GlyphManager[](#constructorglyphmanager)
    
    #### Parameters
    
    -   requestManager: [RequestManager](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.RequestManager/)
    -   `Optional`localIdeographFontFamily: string | false
    -   `Optional`lang: string
    
    #### Returns GlyphManager
    

## Properties[](#properties-1)

### entries[](#entries)

entries: { \[stack: string\]: [Entry](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.Entry/) }

### `Optional`lang[](#lang)

lang?: string

### localIdeographFontFamily[](#localideographfontfamily)

localIdeographFontFamily: string | false

### requestManager[](#requestmanager)

requestManager: [RequestManager](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.RequestManager/)

### url[](#url)

url: string

### `Static`loadGlyphRange[](#loadglyphrange)

loadGlyphRange: (  
    fontstack: string,  
    range: number,  
    urlTemplate: string,  
    requestManager: [RequestManager](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.RequestManager/),  
) \=> Promise<{ \[\_: number\]: [StyleGlyph](https://docs.maptiler.com/sdk-js/api-reference/types/StyleGlyph/) | null }\>

### `Static`TinySDF[](#tinysdf)

TinySDF: typeof [default](https://docs.maptiler.com/sdk-js/api-reference/classes/Externals.default-2/)

## Methods[](#methods-1)

### destroy[](#destroy)

-   destroy(): void[](#destroy-1)
    
    #### Returns void
    

### getGlyphs[](#getglyphs)

-   getGlyphs(glyphs: { \[stack: string\]: number\[\] }): Promise<[GetGlyphsResponse](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.GetGlyphsResponse/)\>[](#getglyphs-1)
    
    #### Parameters
    
    -   glyphs: { \[stack: string\]: number\[\] }
    
    #### Returns Promise<[GetGlyphsResponse](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.GetGlyphsResponse/)\>
    

### setURL[](#seturl)

-   setURL(url?: string | null): void[](#seturl-1)
    
    #### Parameters
    
    -   `Optional`url: string | null
    
    #### Returns void
