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

CreateRasterizer: (options: [TinySDFOptions](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.TinySDFOptions/), padding: number) \=> [Rasterizer](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.Rasterizer/)

Builds the thing that rasterizes a glyph. Taken as a dependency so that a test can stand in for the canvas it would otherwise need to draw on.

#### Type Declaration

-   -   (options: [TinySDFOptions](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.TinySDFOptions/), padding: number): [Rasterizer](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.Rasterizer/)
    -   #### Parameters
        
        -   options: [TinySDFOptions](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.TinySDFOptions/)
            
            what to draw with, whose `buffer` sizes the canvas
            
        -   padding: number
            
            the room to leave around each glyph in the bitmap, which is not that buffer
            
        
        #### Returns [Rasterizer](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.Rasterizer/)
