ifont
Version:
An isomorphic icon font generator with support for ligatures.
74 lines (73 loc) • 1.59 kB
TypeScript
export function Font(): void;
export class Font {
ascent: number;
copyright: string;
createdDate: Date;
glyphs: any[];
ligatures: any[];
codePoints: {};
isFixedPitch: number;
italicAngle: number;
familyClass: number;
familyName: string;
fsSelection: number;
fsType: number;
lowestRecPPEM: number;
macStyle: number;
modifiedDate: Date;
panose: {
familyType: number;
serifStyle: number;
weight: number;
proportion: number;
contrast: number;
strokeVariation: number;
armStyle: number;
letterform: number;
midline: number;
xHeight: number;
};
revision: number;
sfntNames: any[];
underlineThickness: number;
unitsPerEm: number;
weightClass: number;
width: number;
widthClass: number;
ySubscriptXOffset: number;
ySuperscriptXOffset: number;
int_descent: number;
xHeight: number;
capHeight: number;
}
export function Glyph(): void;
export class Glyph {
contours: any[];
d: string;
id: string;
codes: any[];
height: number;
name: string;
width: number;
get xMin(): number;
get xMax(): number;
get yMin(): number;
get yMax(): number;
}
export function Contour(): void;
export class Contour {
points: any[];
}
export function Point(): void;
export class Point {
onCurve: boolean;
x: number;
y: number;
}
export function SfntName(): void;
export class SfntName {
id: number;
value: string;
}
import toTTF from './ttf.js';
export { toTTF };