Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

font

import { font } from "https://raw.githubusercontent.com/Hatscat/MetavaScript/main/index.ts";

helper to generate a CSS font value

@example
// returns "12px A"
font(12)
@example
// returns "50% A"
font(50, "%")
@example
// returns "2em Arial"
font("2", "em", "Arial")
function font(
sizeValue: number | string,
sizeUnit?,
family?,
): string;
§
font(sizeValue: number | string, sizeUnit?, family?): string
[src]

§Parameters

§
sizeValue: number | string
[src]
§
sizeUnit? optional
[src]
§
family? optional
[src]

§Return Type

§
string
[src]