Class FontConverter

java.lang.Object
com.levigo.jadice.web.server.font.FontConverter

public class FontConverter extends Object
  • Constructor Details

    • FontConverter

      public FontConverter()
  • Method Details

    • getFontAsWOFF

      public static InputStream getFontAsWOFF(InputStream seekableInputStream, String friendlyName)
      Converts a TTF-font to WOFF. Uses jadice cache for better performance
      Parameters:
      seekableInputStream - the stream containing the TTF-font
      friendlyName - the friendly name (Font name with attributes, e.g. "Arimo Bold Italic")
      Returns:
      the converted font as Stream