XpsGlyphs

Inheritance: java.lang.Object, com.aspose.xps.XpsObject, com.aspose.xps.XpsElement, com.aspose.xps.XpsHyperlinkElement, com.aspose.xps.XpsContentElement

public final class XpsGlyphs extends XpsContentElement

Class incapsulating Glyphs element features. This element represents a run of uniformly-formatted text from a single font. It provides information necessary for accurate rendering and supports search and selection features in viewing consumers.

Methods

MethodDescription
getBidiLevel()Returns the value specifying the Unicode algorithm bidirectional nesting level.
setBidiLevel(int value)Sets the value specifying the Unicode algorithm bidirectional nesting level.
getFill()Returns the brush used to fill the shape of the rendered glyphs.
setFill(XpsBrush value)Sets the brush used to fill the shape of the rendered glyphs.
getFont()Returns the font resource for the TrueType font used to typeset elements text.
getFontRenderingEmSize()Returns the font size in drawing surface units, expressed as a float in units of the effective coordinate space.
setFontRenderingEmSize(float value)Sets the font size in drawing surface units, expressed as a float in units of the effective coordinate space.
getOriginX()Returns the x coordinate of the first glyph in the run, in units of the effective coordinate space.
setOriginX(float value)Sets the x coordinate of the first glyph in the run, in units of the effective coordinate space.
getOriginY()Returns the y coordinate of the first glyph in the run, in units of the effective coordinate space.
setOriginY(float value)Sets the y coordinate of the first glyph in the run, in units of the effective coordinate space.
isSideways()Returns the value indicating that a glyph is turned on its side, with the origin being defined as the top center of the unturned glyph.
setSideways(boolean value)Sets the value indicating that a glyph is turned on its side, with the origin being defined as the top center of the unturned glyph.
getUnicodeString()Returns the string of text rendered by the Glyphs element.
setUnicodeString(String value)Sets the string of text rendered by the Glyphs element.
getStyleSimulations()Returns the value specifying a style simulation.
setStyleSimulations(XpsStyleSimulations value)Sets the value specifying a style simulation.
deepClone()Clone this glyphs.

getBidiLevel()

public int getBidiLevel()

Returns the value specifying the Unicode algorithm bidirectional nesting level. Even values imply left-to-right layout, odd values imply right-to-left layout. Right-to-left layout places the run origin at the right side of the first glyph, with positive advance widths (representing advances to the left) placing subsequent glyphs to the left of the previous glyph.

Returns: int - The value specifying the Unicode algorithm bidirectional nesting level.

setBidiLevel(int value)

public void setBidiLevel(int value)

Sets the value specifying the Unicode algorithm bidirectional nesting level. Even values imply left-to-right layout, odd values imply right-to-left layout. Right-to-left layout places the run origin at the right side of the first glyph, with positive advance widths (representing advances to the left) placing subsequent glyphs to the left of the previous glyph.

Parameters:

ParameterTypeDescription
valueintThe value specifying the Unicode algorithm bidirectional nesting level.

getFill()

public XpsBrush getFill()

Returns the brush used to fill the shape of the rendered glyphs.

Returns: XpsBrush - The brush used to fill the shape of the rendered glyphs.

setFill(XpsBrush value)

public void setFill(XpsBrush value)

Sets the brush used to fill the shape of the rendered glyphs.

Parameters:

ParameterTypeDescription
valueXpsBrushThe brush used to fill the shape of the rendered glyphs.

getFont()

public XpsFont getFont()

Returns the font resource for the TrueType font used to typeset elements text.

Returns: XpsFont - The font resource for the TrueType font used to typeset elements text.

getFontRenderingEmSize()

public float getFontRenderingEmSize()

Returns the font size in drawing surface units, expressed as a float in units of the effective coordinate space.

Returns: float - The font size.

setFontRenderingEmSize(float value)

public void setFontRenderingEmSize(float value)

Sets the font size in drawing surface units, expressed as a float in units of the effective coordinate space.

Parameters:

ParameterTypeDescription
valuefloatThe font size.

getOriginX()

public float getOriginX()

Returns the x coordinate of the first glyph in the run, in units of the effective coordinate space.

Returns: float - The x coordinate of the first glyph in the run, in units of the effective coordinate space.

setOriginX(float value)

public void setOriginX(float value)

Sets the x coordinate of the first glyph in the run, in units of the effective coordinate space.

Parameters:

ParameterTypeDescription
valuefloatThe x coordinate of the first glyph in the run, in units of the effective coordinate space.

getOriginY()

public float getOriginY()

Returns the y coordinate of the first glyph in the run, in units of the effective coordinate space.

Returns: float - The y coordinate of the first glyph in the run, in units of the effective coordinate space.

setOriginY(float value)

public void setOriginY(float value)

Sets the y coordinate of the first glyph in the run, in units of the effective coordinate space.

Parameters:

ParameterTypeDescription
valuefloatThe y coordinate of the first glyph in the run, in units of the effective coordinate space.

isSideways()

public boolean isSideways()

Returns the value indicating that a glyph is turned on its side, with the origin being defined as the top center of the unturned glyph.

Returns: boolean - The value indicating that a glyph is turned on its side.

setSideways(boolean value)

public void setSideways(boolean value)

Sets the value indicating that a glyph is turned on its side, with the origin being defined as the top center of the unturned glyph.

Parameters:

ParameterTypeDescription
valuebooleanThe value indicating that a glyph is turned on its side.

getUnicodeString()

public String getUnicodeString()

Returns the string of text rendered by the Glyphs element. The text is specified as Unicode code points.

Returns: java.lang.String - The string of text rendered by the Glyphs element.

setUnicodeString(String value)

public void setUnicodeString(String value)

Sets the string of text rendered by the Glyphs element. The text is specified as Unicode code points.

Parameters:

ParameterTypeDescription
valuejava.lang.StringThe string of text rendered by the Glyphs element.

getStyleSimulations()

public XpsStyleSimulations getStyleSimulations()

Returns the value specifying a style simulation.

Returns: XpsStyleSimulations - The value specifying a style simulation.

setStyleSimulations(XpsStyleSimulations value)

public void setStyleSimulations(XpsStyleSimulations value)

Sets the value specifying a style simulation.

Parameters:

ParameterTypeDescription
valueXpsStyleSimulationsThe value specifying a style simulation.

deepClone()

public XpsGlyphs deepClone()

Clone this glyphs.

Returns: XpsGlyphs - Clone of this glyphs.