Skip to content

programingjd/font_subset

Repository files navigation

jcenter

Font Subset Extractor

Creates woff font files from truetype files, including only a subset of the glyphs.
This is based on Google's sfntly.

Download

The maven artifacts are on Bintray and jcenter.

Download the latest jar.

Maven

Include those settings to be able to resolve jcenter artifacts.

<dependency>
  <groupId>info.jdavid.font.subset</groupId>
  <artifactId>extractor</artifactId>
  <version>1.2.0</version>
</dependency>

Gradle

Add jcenter to the list of maven repositories.

repositories {
  jcenter()
}
dependencies {
  compile 'info.jdavid.font.subset:extractor1.2.0'
}

Usage

java

final Extractor extractor = new Extractor(ttfBytes);
final byte[] woffBytes = extractor.woff("subset_string");
assert woffBytes.length > 0;

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages