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.
Modifier and Type | Method and Description |
---|---|
XpsGlyphs |
deepClone()
Clone this glyphs.
|
int |
getBidiLevel()
Returns the value specifying the Unicode algorithm bidirectional nesting level.
|
XpsBrush |
getFill()
Returns the brush used to fill the shape of the rendered glyphs.
|
XpsFont |
getFont()
Returns the font resource for the TrueType font used to typeset elements text.
|
float |
getFontRenderingEmSize()
Returns the font size in drawing surface units, expressed as a float
in units of the effective coordinate space.
|
float |
getOriginX()
Returns the x coordinate of the first glyph in the run,
in units of the effective coordinate space.
|
float |
getOriginY()
Returns the y coordinate of the first glyph in the run,
in units of the effective coordinate space.
|
XpsStyleSimulations |
getStyleSimulations()
Returns the value specifying a style simulation.
|
String |
getUnicodeString()
Returns the string of text rendered by the Glyphs element.
|
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.
|
void |
setBidiLevel(int value)
Sets the value specifying the Unicode algorithm bidirectional nesting level.
|
void |
setFill(XpsBrush value)
Sets the brush used to fill the shape of the rendered glyphs.
|
void |
setFontRenderingEmSize(float value)
Sets the font size in drawing surface units, expressed as a float
in units of the effective coordinate space.
|
void |
setOriginX(float value)
Sets the x coordinate of the first glyph in the run,
in units of the effective coordinate space.
|
void |
setOriginY(float value)
Sets the y coordinate of the first glyph in the run,
in units of the effective coordinate space.
|
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.
|
void |
setStyleSimulations(XpsStyleSimulations value)
Sets the value specifying a style simulation.
|
void |
setUnicodeString(String value)
Sets the string of text rendered by the Glyphs element.
|
getClip, getOpacity, getOpacityMask, getRenderTransform, setClip, setOpacity, setOpacityMask, setRenderTransform
getHyperlinkTarget, setHyperlinkTarget
get, iterator, size
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
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.
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.
value
- The value specifying the Unicode algorithm bidirectional nesting level.public XpsBrush getFill()
Returns the brush used to fill the shape of the rendered glyphs.
public void setFill(XpsBrush value)
Sets the brush used to fill the shape of the rendered glyphs.
value
- The brush used to fill the shape of the rendered glyphs.public XpsFont getFont()
Returns the font resource for the TrueType font used to typeset elements text.
public float getFontRenderingEmSize()
Returns the font size in drawing surface units, expressed as a float in units of the effective coordinate space.
public void setFontRenderingEmSize(float value)
Sets the font size in drawing surface units, expressed as a float in units of the effective coordinate space.
value
- The font size.public float getOriginX()
Returns the x coordinate of the first glyph in the run, in units of the effective coordinate space.
public void setOriginX(float value)
Sets the x coordinate of the first glyph in the run, in units of the effective coordinate space.
value
- The x coordinate of the first glyph in the run,
in units of the effective coordinate space.public float getOriginY()
Returns the y coordinate of the first glyph in the run, in units of the effective coordinate space.
public void setOriginY(float value)
Sets the y coordinate of the first glyph in the run, in units of the effective coordinate space.
value
- The y coordinate of the first glyph in the run,
in units of the effective coordinate space.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.
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.
value
- The value indicating that a glyph is turned on its side.public String getUnicodeString()
Returns the string of text rendered by the Glyphs element. The text is specified as Unicode code points.
public void setUnicodeString(String value)
Sets the string of text rendered by the Glyphs element. The text is specified as Unicode code points.
value
- The string of text rendered by the Glyphs element.public XpsStyleSimulations getStyleSimulations()
Returns the value specifying a style simulation.
public void setStyleSimulations(XpsStyleSimulations value)
Sets the value specifying a style simulation.
value
- The value specifying a style simulation.public XpsGlyphs deepClone()
Clone this glyphs.
Copyright © 2022 Aspose. All Rights Reserved.