Socket
Book a DemoInstallSign in
Socket

get-font-info

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-font-info

Get font information

latest
Source
npmnpm
Version
0.3.0
Version published
Maintainers
1
Created
Source

Font Info

Reads font information from file.

interface FontInfo {
  family: string;
  familylang: string;
  style: string;
  stylelang: string;
  fullname: string;
  fullnamelang: string;
  file: string;
  outline: boolean;
  scalable: boolean;
  lang: string;
  capability: string;
  fontformat: string;
  decorative: boolean;
  postscriptname: string;
  color: boolean;
  symbol: boolean;
  variable: boolean;
}

Requirements

This package depends on fc-scan. Make sure you have it installed in your system.

Installation

npm i get-font-info

Usage

import getFontInfo from "get-font-info";

const font = await getFontInfo("./Inter-Regular.otf");
console.log({ font });

Keywords

font

FAQs

Package last updated on 25 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts