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

# Type Alias DeclaredFontFace

A font file declared by the style, along with the bookkeeping needed to draw with it.

type DeclaredFontFace \= {  
    [family](#family): string;  
    [loaded](#loaded)?: Promise<boolean\>;  
    [ranges](#ranges): [UnicodeRange](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.UnicodeRange/)\[\];  
    [url](#url): string;  
}

##### Index

### Properties

[family](#family) [loaded?](#loaded) [ranges](#ranges) [url](#url)

## Properties

### family[](#family)

family: string

The CSS family name the file is registered under. It is generated rather than taken from the style so that a style cannot restyle the surrounding page by declaring a font face named after one the page uses, and so that each file can be selected on its own.

### `Optional`loaded[](#loaded)

loaded?: Promise<boolean\>

Resolves to whether the file loaded and can be drawn with. Started the first time a codepoint needs this file, so that a style may declare more fonts than any one map ever draws with.

### ranges[](#ranges)

ranges: [UnicodeRange](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.UnicodeRange/)\[\]

The codepoints the style lets this file cover.

### url[](#url)

url: string

The font file's URL, as written in the style.
