devexpress-richedit
Version:
DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.
23 lines (22 loc) • 984 B
TypeScript
import { FontInfo } from '../../fonts/font-info';
import { FontMeasurer } from '../../fonts/measurer';
import { HashBasedCache } from '../hash-based-cache';
export declare class FontInfoCache extends HashBasedCache<FontInfo> {
private static _defaultFontInfo;
static defaultFonts: FontInfo[];
static defaultFontName: string;
static fallbackFontName: string;
fontMeasurer: FontMeasurer;
constructor(fontMeasurer: FontMeasurer);
static get defaultFontInfo(): FontInfo;
protected processNewItem(property: FontInfo): void;
getItemByName(name: string): FontInfo | null;
getFontNames(sort?: boolean): string[];
getAllFonts(): FontInfo[];
addFont(name: string, cssString?: string): FontInfo;
static correctCssString(cssString: string): string;
deleteFont(info: FontInfo): void;
static fillDefaultFonts(fontInfoCache: FontInfoCache): void;
copyFrom(obj: FontInfoCache): void;
clone(): FontInfoCache;
}