@types/svg2ttf
TypeScript icon, indicating that this package has built-in type declarations

5.0.3 • Public • Published

Installation

npm install --save @types/svg2ttf

Summary

This package contains type definitions for svg2ttf (https://github.com/fontello/svg2ttf).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/svg2ttf.

index.d.ts

/** Converts SVG fonts to TTF format */
declare function svg2ttf(svgFontString: string, options?: svg2ttf.FontOptions): svg2ttf.MicroBuffer;

declare namespace svg2ttf {
    interface FontOptions {
        copyright?: string | undefined;
        description?: string | undefined;
        /**
         * Unix timestamp (in seconds) to override creation time
         */
        ts?: number | undefined;
        /**
         * manufacturer url
         */
        url?: string | undefined;
        /**
         * font version string, can be Version x.y or x.y
         * @default 'Version 1.0'
         */
        version?: string | undefined;
    }

    interface MicroBuffer {
        buffer: Uint8Array;
    }
}

export = svg2ttf;

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by Ewan Morrison.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @types/svg2ttf

      Weekly Downloads

      13,680

      Version

      5.0.3

      License

      MIT

      Unpacked Size

      3.98 kB

      Total Files

      5

      Last publish

      Collaborators

      • types