Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/imagescript/ImageScript.js>Image.renderText

zero-dependency JavaScript image manipulation
Extremely Popular
Go to Latest
method Image.renderText
import { Image } from "https://deno.land/x/imagescript@v1.2.14/ImageScript.js";

Creates a new image containing the rendered text.

Parameters

font

TrueType (ttf/ttc) or OpenType (otf) font buffer to use

scale

Font size to use

text

Text to render

optional
color = [UNSUPPORTED]

Text color to use

optional
layout = [UNSUPPORTED]

The text layout to use