Package org.freedesktop.harfbuzz
Enum Class BufferFlags
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<BufferFlags>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum BufferFlags
extends Enum<BufferFlags>
implements Enumeration
Flags for
hb_buffer_t
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionflag indicating that special handling of the beginning of text paragraph can be applied to this buffer.the default buffer flag.All currently defined flags: Since: 4.4.0flag indicating that a dotted circle should not be inserted in the rendering of incorrect character sequences (such at <0905 093E>).flag indicating that special handling of the end of text paragraph can be applied to this buffer, similar toHBBUFFERFLAGBOT
.flag indication that character with Default_Ignorable Unicode property should use the corresponding glyph from the font, instead of hiding them (done by replacing them with the space glyph and zeroing the advance width.) This flag takes precedence overHBBUFFERFLAGREMOVEDEFAULTIGNORABLES
.flag indicating that theHBGLYPHFLAGSAFETOINSERTTATWEEL
glyph-flag should be produced by the shaper.flag indicating that theHBGLYPHFLAGUNSAFETOCONCAT
glyph-flag should be produced by the shaper.flag indication that character with Default_Ignorable Unicode property should be removed from glyph string instead of hiding them (done by replacing them with the space glyph and zeroing the advance width.)HBBUFFERFLAGPRESERVEDEFAULTIGNORABLES
takes precedence over this flag.flag indicating that the hb_shape() call and its variants should perform various verification processes on the results of the shaping operation on the buffer. -
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the BufferFlags classint
getValue()
Get the numeric value of this enumstatic BufferFlags
of
(int value) Create a new BufferFlags for the provided valuestatic BufferFlags
Returns the enum constant of this class with the specified name.static BufferFlags[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
the default buffer flag. -
BOT
flag indicating that special handling of the beginning of text paragraph can be applied to this buffer. Should usually be set, unless you are passing to the buffer only part of the text without the full context. -
EOT
flag indicating that special handling of the end of text paragraph can be applied to this buffer, similar toHBBUFFERFLAGBOT
. -
PRESERVE_DEFAULT_IGNORABLES
flag indication that character with Default_Ignorable Unicode property should use the corresponding glyph from the font, instead of hiding them (done by replacing them with the space glyph and zeroing the advance width.) This flag takes precedence overHBBUFFERFLAGREMOVEDEFAULTIGNORABLES
. -
REMOVE_DEFAULT_IGNORABLES
flag indication that character with Default_Ignorable Unicode property should be removed from glyph string instead of hiding them (done by replacing them with the space glyph and zeroing the advance width.)HBBUFFERFLAGPRESERVEDEFAULTIGNORABLES
takes precedence over this flag. Since: 1.8.0 -
DO_NOT_INSERT_DOTTED_CIRCLE
flag indicating that a dotted circle should not be inserted in the rendering of incorrect character sequences (such at <0905 093E>). Since: 2.4.0 -
VERIFY
flag indicating that the hb_shape() call and its variants should perform various verification processes on the results of the shaping operation on the buffer. If the verification fails, then either a buffer message is sent, if a message handler is installed on the buffer, or a message is written to standard error. In either case, the shaping result might be modified to show the failed output. Since: 3.4.0 -
PRODUCE_UNSAFE_TO_CONCAT
flag indicating that theHBGLYPHFLAGUNSAFETOCONCAT
glyph-flag should be produced by the shaper. By default it will not be produced since it incurs a cost. Since: 4.0.0 -
PRODUCE_SAFE_TO_INSERT_TATWEEL
flag indicating that theHBGLYPHFLAGSAFETOINSERTTATWEEL
glyph-flag should be produced by the shaper. By default it will not be produced. Since: 5.1.0 -
DEFINED
All currently defined flags: Since: 4.4.0
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
of
Create a new BufferFlags for the provided value- Parameters:
value
- the bitfield value- Returns:
- the bitfield for the provided value
-
getValue
public int getValue()Get the numeric value of this enum- Specified by:
getValue
in interfaceEnumeration
- Returns:
- the enum value
-
getType
-