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

x/deno_chart/utils/index.ts>drawTextWithFont

A graph library for deno. Inspired by Chart.js. A simpler implementation for basic bar graphs that save to an image.
Latest
function drawTextWithFont
import { drawTextWithFont } from "https://deno.land/x/deno_chart@1.1.0/utils/index.ts";

Helper function that draws given text with a font, restoring the font back to the original

Parameters

text: string

Text to draw

x: number

X-Axis Position

y: number

Y-Axis Position

optional
font: string

(Optional) Font Name