fugafacere
Version:
A pure-JS implementation of the W3C's Canvas-2D Context API that can run on top of either Expo Graphics or a browser WebGL context.
18 lines (16 loc) • 414 B
JavaScript
import { calibri } from './calibri';
import { couriernew } from './couriernew';
import { timesnewroman } from './timesnewroman';
// TODO: find fonts?
export function getBuiltinFonts() {
return {
cursive: null,
fantasy: null,
monospace: couriernew,
serif: timesnewroman,
'sans-serif': calibri,
'Courier New': couriernew,
'Times New Roman': timesnewroman,
Calibri: calibri,
};
}