| Package | Description |
|---|---|
| com.openhtmltopdf.extend | |
| com.openhtmltopdf.outputdevice.helper |
| Modifier and Type | Method and Description |
|---|---|
default void |
SVGDrawer.addFontStream(FSSupplier<InputStream> supplier,
String family,
Integer weight,
BaseRendererBuilder.FontStyle style)
Adds a font that is supplied as a stream rather than as a file, so that fonts
registered with
useFont(FSSupplier<InputStream>, ...) can be used
by SVG (or MathML) content too. |
| Modifier and Type | Class and Description |
|---|---|
class |
FontFaceFontSupplier |
| Modifier and Type | Field and Description |
|---|---|
FSSupplier<InputStream> |
AddedFont.supplier |
| Modifier and Type | Method and Description |
|---|---|
static Font |
FontCache.get(FSSupplier<Font> fontSupplier)
Like
FontCache.get(String, long, FSSupplier) with the key and last modified stamp taken from
the supplier itself. |
static Font |
FontCache.get(String cacheKey,
long lastModified,
FSSupplier<Font> fontSupplier)
Returns the cached font for the given key, creating it with the supplier if it is not
cached yet or if the resource it was created from changed.
|
static Font |
FontCache.getTrueTypeFont(FSSupplier<InputStream> streamSupplier)
Returns the true type font supplied by the given supplier, keyed on
cacheKey(). |
static Font |
FontCache.getTrueTypeFont(String cacheKey,
long lastModified,
FSSupplier<InputStream> streamSupplier)
Like
FontCache.getTrueTypeFont(FSSupplier) but with an explicit key, so that callers can opt
out of caching by passing null. |
TFinalClass |
BaseRendererBuilder.useFont(FSSupplier<InputStream> supplier,
String fontFamily)
Simpler overload for
BaseRendererBuilder.useFont(FSSupplier, String, Integer, FontStyle, boolean) |
TFinalClass |
BaseRendererBuilder.useFont(FSSupplier<InputStream> supplier,
String fontFamily,
Integer fontWeight,
BaseRendererBuilder.FontStyle fontStyle,
boolean subset)
Add a font programmatically.
|
TFinalClass |
BaseRendererBuilder.useFont(FSSupplier<InputStream> supplier,
String fontFamily,
Integer fontWeight,
BaseRendererBuilder.FontStyle fontStyle,
boolean subset,
Set<BaseRendererBuilder.FSFontUseCase> useFontFlags)
Add a font programmatically.
|
| Constructor and Description |
|---|
AddedFont(FSSupplier<InputStream> supplier,
File fontFile,
Integer weight,
String family,
boolean subset,
BaseRendererBuilder.FontStyle style,
Set<BaseRendererBuilder.FSFontUseCase> usedFor) |
Copyright © 2004–2026. All rights reserved.