Skip to content

Releases: black7375/font-range

v1.0.2

22 Jan 23:25
Compare
Choose a tag to compare

HOT FIX

  • Fix unicode-range info at fontRange(): Please update those who use fontRange()
  • Reduce package size

v1.0.0

10 Jan 01:21
Compare
Choose a tag to compare

Breaking Change

  • fontRange() API
// Old
fontRange(css_url_or_path, font_path);
fontRange(css_url_or_path, font_path, save_path);     // Option1
fontRange(css_url_or_path, font_path, { ...options ); // Option2

// New
fontRange(font_path, css_url_or_path);
fontRange(font_path, css_url_or_path, save_dir);       // Option1
fontRange(font_path, css_url_or_path, { ...options }); // Option2

Environment

Feature

  • fontSubset(): Subset based on text or text file
  • fontPipe(): Use fontRange() and fontSubset() to perform multiple subset operations
// fontSubset
fontRange(font_path);
fontRange(font_path, save_dir);    // Option1
fontRange(font_path, { ...options }); // Option2

// fontPipe
fontPipe([
  { font_path },                                      // As `fontSubset(font_path)`
  { font_path, option: { text: "abc" } },             // As `fontSubset(font_path, { text: "abc" })`
  { font_path, option: { textFile: file_path } },     // As `fontSubset(font_path, { textFile: file_path })`
  { font_path, option: { cssFile: css_url_or_path } } // As `fontRange(font_path, css_url_or_path)`
]);
fontPipe([{ font_path1 }, { font_path2 }], "<index>/<total>"); // Sharding option use like `1/2`

Performace

  • Shell creation removal: Reduces job start delay
  • Worker pool: Execute subset operations using CPU as much as possible
  • Shard: Supports subset pipelines in distributed environments

Test

image

v0.2.1

11 Jun 00:24
Compare
Choose a tag to compare
  • type info
  • deps update

v0.2.0

15 Oct 08:15
Compare
Choose a tag to compare

Change Option API

  • nameFormat
  • defaultArgs
  • etcArgs

Support local CSS File

v0.1.3

14 Oct 05:12
6c26953
Compare
Choose a tag to compare

Support common module

v0.1.2

14 Oct 02:45
Compare
Choose a tag to compare

workflow fix

v0.1.1

14 Oct 01:10
Compare
Choose a tag to compare

dependency updates

v0.1.0

06 Aug 08:00
Compare
Choose a tag to compare
Fix: action