public final class InFontFormatter extends Object
| Modifier and Type | Field and Description |
|---|---|
static ElementAttribute |
scriptAttribute
the resolved Unicode script of an element.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
canRenderWithFont(FontData font,
AttributedRun run,
int start,
int limit)
Indentify a minimum character sequence and determine if it can be rendered
using a given font.
|
static int |
canRenderWithNotdef(AttributedRun run,
int start,
int limit) |
static int |
firstPass(AttributedRun run,
int start,
int limit) |
static int |
format(AttributedRun run,
int start,
int limit,
boolean shouldKern)
Format the run.
|
static int |
preFormat(AttributedRun run,
int start,
int limit) |
public static final ElementAttribute scriptAttribute
UScript, which is neither
INHERITED nor COMMON.public static int preFormat(AttributedRun run, int start, int limit)
public static int firstPass(AttributedRun run, int start, int limit)
public static int canRenderWithFont(FontData font, AttributedRun run, int start, int limit) throws InvalidFontException, UnsupportedFontException, FontLoadingException
start in the
run, and extends at most to limit.
The second step is to determine if that atomic sequence can be rendered
without .notdef by font. If that is not possible, this
method returns 0. If that is possible, this method return the number of
characters in the atomic sequence.
It may be necessary to determine the length of an atomic sequence, even
if its rendering will produce one or more.notdef. To do this, set
the notdefOK parameter to true.
When this method is called, at least the element at index
start must be a character.
This method does not modify the run. In particular, it is up to the
caller to put the ElementAttribute.font attribute if desired.public static int canRenderWithNotdef(AttributedRun run, int start, int limit) throws InvalidFontException, UnsupportedFontException, FontLoadingException
public static int format(AttributedRun run, int start, int limit, boolean shouldKern) throws InvalidFontException, UnsupportedFontException, FontLoadingException
Copyright © 2010 - 2020 Adobe. All Rights Reserved