Class FontConverter
java.lang.Object
com.levigo.jadice.web.server.font.FontConverter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InputStream
getFontAsWOFF
(InputStream seekableInputStream, String friendlyName) Converts a TTF-font to WOFF.
-
Constructor Details
-
FontConverter
public FontConverter()
-
-
Method Details
-
getFontAsWOFF
Converts a TTF-font to WOFF. Uses jadice cache for better performance- Parameters:
seekableInputStream
- the stream containing the TTF-fontfriendlyName
- the friendly name (Font name with attributes, e.g. "Arimo Bold Italic")- Returns:
- the converted font as Stream
-