public final class Java2DUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static FontInfo |
buildDefaultJava2DBasedFontInfo(FontInfo fontInfo,
FOUserAgent userAgent)
Builds a default
FontInfo object for use with output formats using the Java2D
font setup. |
static java.awt.font.GlyphVector |
createGlyphVector(java.lang.String text,
java.awt.Graphics2D g2d,
Font font,
FontInfo fontInfo)
Creates an instance of
GlyphVector that correctly handle surrogate pairs and advanced font features such
as GSUB/GPOS/GDEF. |
public static FontInfo buildDefaultJava2DBasedFontInfo(FontInfo fontInfo, FOUserAgent userAgent)
FontInfo
object for use with output formats using the Java2D
font setup.fontInfo
- the font info object to populateuserAgent
- the user agentpublic static java.awt.font.GlyphVector createGlyphVector(java.lang.String text, java.awt.Graphics2D g2d, Font font, FontInfo fontInfo)
GlyphVector
that correctly handle surrogate pairs and advanced font features such
as GSUB/GPOS/GDEF.text
- Text to renderg2d
- the target Graphics2D instancefont
- the font instancefontInfo
- the font informationGlyphVector
Copyright 1999-2020 The Apache Software Foundation. All Rights Reserved.