public static enum TextEditOptions.NoCharacterAction extends Enum<TextEditOptions.NoCharacterAction>
Action to perform if font does not contain required character
Enum Constant and Description |
---|
ReplaceAnyway
Replace text anyway without font substitution
|
ReplaceFonts
Replaces fonts as necessary to ensure all characters in the text can be displayed.
|
ThrowException
Throw exception
|
UseCustomReplacementFont
Replace font to defined replacement font
|
UseStandardFont
Repalce font to standard font which contains required character
|
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
static TextEditOptions.NoCharacterAction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TextEditOptions.NoCharacterAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextEditOptions.NoCharacterAction ThrowException
Throw exception
public static final TextEditOptions.NoCharacterAction UseStandardFont
Repalce font to standard font which contains required character
public static final TextEditOptions.NoCharacterAction ReplaceAnyway
Replace text anyway without font substitution
public static final TextEditOptions.NoCharacterAction ReplaceFonts
Replaces fonts as necessary to ensure all characters in the text can be displayed.
The font substitution algorithm follows these steps:
1. If the user explicitly sets the Font property, check if the specified font can display the desired characters.
2. If no user-defined font is set, search through fonts added via the FontRepository.Sources
(FontRepository#getSources
).
3. Analyze the text to identify its alphabet or script and suggest font names accordingly.
Attempt to locate and use these fonts from the system.
4. As a fallback, search the system for any font capable of displaying the required characters.
public static final TextEditOptions.NoCharacterAction UseCustomReplacementFont
Replace font to defined replacement font
public static TextEditOptions.NoCharacterAction[] values()
for (TextEditOptions.NoCharacterAction c : TextEditOptions.NoCharacterAction.values()) System.out.println(c);
public static TextEditOptions.NoCharacterAction valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getValue()
Copyright © 2025 Aspose. All Rights Reserved.