/** @noSelfInFile */ /** * Homegirl uses GIF files as fonts. * Each character is stored as a frame and the character width is stored as the frame's duration in centiseconds. */ declare namespace text { /** * Load a font and return it. * If `fontname` doesn't refer directly to a filename, it will search the program directory, the `fonts` folder on the root of the origin drive and `sys:` drive, in that order. */ export function loadfont(fontname: string): Font; /** * Draw given text with given font at given spot and return the size of the text in pixels. * @tupleReturn */ export function draw(text: string, font: Font, x: number, y: number): [width: number, height: number]; } interface Font {}