Home

Awesome

ph-fonts

A set of TTF/OTF OSS fonts to be used in PDF creation or any other use case. It wraps the TTF/OTF files in a Java resource and provides reasonable APIs.

The original use case was the easy support of fonts for https://github.com/phax/ph-pdf-layout/

Usage with Maven

Add the following to your pom.xml to use this project, replacing x.y.z with the real version number:

<dependency>
  <groupId>com.helger.font</groupId>
  <artifactId>ph-fonts-api</artifactId>
  <version>x.y.z</version>
</dependency>

<dependency>
  <groupId>com.helger.font</groupId>
  <!-- replace XXX with one of the list below --> 
  <artifactId>XXX</artifactId>
  <version>x.y.z</version>
</dependency>

Note: prior to v4.1.0 the Maven groupId was com.helger.

Available artefacts including the fonts are:

To add a different font using ph-fonts-api just use one of the above mentioned projects. Should be quite self explanatory.

News and noteworthy


My personal Coding Styleguide | It is appreciated if you star the GitHub project if you like it.