Skip to main content
Module

x/imagescript/mod.ts>Image.renderText

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

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