public class Glyphs extends Object
The glyphs. The Glyphs 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.
| Constructor and Description |
|---|
Glyphs()
Initializes a new instance of the
Glyphs class. |
| Modifier and Type | Method and Description |
|---|---|
String |
getBidiLevel()
Gets or sets the BIDI level.
|
String |
getCaretStops()
Gets or sets the caret stops.
|
String |
getClip()
Gets or sets the clip.
|
String |
getDeviceFontName()
Gets or sets the device font name.
|
String |
getFill()
Gets or sets the fill.
|
String |
getFixedPageNavigateUri()
Gets or sets the fixed page navigate uri.
|
double |
getFontRenderingEmSize()
Gets or sets the font rendering EM size.
|
String |
getFontUri()
Gets or sets the font uri.
|
Geometry |
getGlyphsClip()
Gets or sets the glyphs clip.
|
Brush |
getGlyphsFill()
Gets or sets the glyphs fill.
|
Brush |
getGlyphsOpacityMask()
Gets or sets the glyphs opacity mask.
|
Transform |
getGlyphsRenderTransform()
Gets or sets the glyphs render transform.
|
String |
getIndices()
Gets or sets the indices.
|
String |
getLanguage()
Gets or sets the language.
|
String |
getName()
Gets or sets the name.
|
double |
getOpacity()
Gets or sets the opacity.
|
String |
getOpacityMask()
Gets or sets the opacity mask.
|
double |
getOriginX()
Gets or sets the origin x.
|
double |
getOriginY()
Gets or sets the origin y.
|
String |
getRenderTransform()
Gets or sets the render transform.
|
String |
getStyleSimulations()
Gets or sets the style simulations.
|
String |
getUnicodeString()
Gets or sets the unicode string.
|
boolean |
isSideways()
Gets or sets a value indicating whether is sideways.
|
void |
setBidiLevel(String value)
Gets or sets the BIDI level.
|
void |
setCaretStops(String value)
Gets or sets the caret stops.
|
void |
setClip(String value)
Gets or sets the clip.
|
void |
setDeviceFontName(String value)
Gets or sets the device font name.
|
void |
setFill(String value)
Gets or sets the fill.
|
void |
setFixedPageNavigateUri(String value)
Gets or sets the fixed page navigate uri.
|
void |
setFontRenderingEmSize(double value)
Gets or sets the font rendering EM size.
|
void |
setFontUri(String value)
Gets or sets the font uri.
|
void |
setGlyphsClip(Geometry value)
Gets or sets the glyphs clip.
|
void |
setGlyphsFill(Brush value)
Gets or sets the glyphs fill.
|
void |
setGlyphsOpacityMask(Brush value)
Gets or sets the glyphs opacity mask.
|
void |
setGlyphsRenderTransform(Transform value)
Gets or sets the glyphs render transform.
|
void |
setIndices(String value)
Gets or sets the indices.
|
void |
setLanguage(String value)
Gets or sets the language.
|
void |
setName(String value)
Gets or sets the name.
|
void |
setOpacity(double value)
Gets or sets the opacity.
|
void |
setOpacityMask(String value)
Gets or sets the opacity mask.
|
void |
setOriginX(double value)
Gets or sets the origin x.
|
void |
setOriginY(double value)
Gets or sets the origin y.
|
void |
setRenderTransform(String value)
Gets or sets the render transform.
|
void |
setSideways(boolean value)
Gets or sets a value indicating whether is sideways.
|
void |
setStyleSimulations(String value)
Gets or sets the style simulations.
|
void |
setUnicodeString(String value)
Gets or sets the unicode string.
|
public Glyphs()
Initializes a new instance of the Glyphs class.
public final Transform getGlyphsRenderTransform()
Gets or sets the glyphs render transform. Establishes a new coordinate frame for the glyph run specified by the Glyphs element. The render transform affects clip, opacity mask, fill, x origin, y origin, the actual shape of individual glyphs, and the advance widths. The render transform also affects the font size and values specified in the Indices attribute.
public final void setGlyphsRenderTransform(Transform value)
Gets or sets the glyphs render transform. Establishes a new coordinate frame for the glyph run specified by the Glyphs element. The render transform affects clip, opacity mask, fill, x origin, y origin, the actual shape of individual glyphs, and the advance widths. The render transform also affects the font size and values specified in the Indices attribute.
public final Geometry getGlyphsClip()
Gets or sets the glyphs clip. Limits the rendered region of the element. Only portions of the Glyphs element that fall within the clip region (even partially clipped characters) produce marks on the page.
public final void setGlyphsClip(Geometry value)
Gets or sets the glyphs clip. Limits the rendered region of the element. Only portions of the Glyphs element that fall within the clip region (even partially clipped characters) produce marks on the page.
public final Brush getGlyphsOpacityMask()
Gets or sets the glyphs opacity mask. Specifies a mask of alpha values that is applied to the glyphs in the same fashion as the Opacity attribute, but allowing different alpha values for different areas of the element.
public final void setGlyphsOpacityMask(Brush value)
Gets or sets the glyphs opacity mask. Specifies a mask of alpha values that is applied to the glyphs in the same fashion as the Opacity attribute, but allowing different alpha values for different areas of the element.
public final Brush getGlyphsFill()
Gets or sets the glyphs fill. Describes the brush used to fill the shape of the rendered glyphs.
public final void setGlyphsFill(Brush value)
Gets or sets the glyphs fill. Describes the brush used to fill the shape of the rendered glyphs.
public final String getBidiLevel()
Gets or sets the BIDI level. Specifies 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.Valid values range from 0 to 61, inclusive.
public final void setBidiLevel(String value)
Gets or sets the BIDI level. Specifies 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.Valid values range from 0 to 61, inclusive.
public final String getCaretStops()
Gets or sets the caret stops. Identifies the positions within the sequence of Unicode characters at which a text-selection tool can place a text-editing caret. Potential caret-stop positions are identified by their indices into the UTF-16 code units represented by the UnicodeString attribute value. When this attribute is missing, the text in the UnicodeString attribute value MUST be interpreted as having a caret stop between every Unicode UTF-16 code unit and at the beginning and end of the text. The value SHOULD indicate that the caret cannot stop in front of most combining marks or in front of the second UTF-16 code unit of UTF-16 surrogate pairs.
public final void setCaretStops(String value)
Gets or sets the caret stops. Identifies the positions within the sequence of Unicode characters at which a text-selection tool can place a text-editing caret. Potential caret-stop positions are identified by their indices into the UTF-16 code units represented by the UnicodeString attribute value. When this attribute is missing, the text in the UnicodeString attribute value MUST be interpreted as having a caret stop between every Unicode UTF-16 code unit and at the beginning and end of the text. The value SHOULD indicate that the caret cannot stop in front of most combining marks or in front of the second UTF-16 code unit of UTF-16 surrogate pairs.
public final String getDeviceFontName()
Gets or sets the device font name. Uniquely identifies a specific device font. The identifier is typically defined by a hardware vendor or font vendor.
public final void setDeviceFontName(String value)
Gets or sets the device font name. Uniquely identifies a specific device font. The identifier is typically defined by a hardware vendor or font vendor.
public final String getFill()
Gets or sets the fill.
public final void setFill(String value)
Gets or sets the fill.
public final double getFontRenderingEmSize()
Gets or sets the font rendering EM size. Specifies the font size in drawing surface units, expressed as a float in units of the effective coordinate space. A value of 0 results in no visible text.
public final void setFontRenderingEmSize(double value)
Gets or sets the font rendering EM size. Specifies the font size in drawing surface units, expressed as a float in units of the effective coordinate space. A value of 0 results in no visible text.
public final String getFontUri()
Gets or sets the font uri. The URI of the physical font from which all glyphs in the run are drawn.The URI MUST reference a font contained in the package. If the physical font referenced is a TrueType Collection (containing multiple font faces), the fragment portion of the URI is a 0-based index indicating which font face of the TrueType Collection should be used.
public final void setFontUri(String value)
Gets or sets the font uri. The URI of the physical font from which all glyphs in the run are drawn.The URI MUST reference a font contained in the package. If the physical font referenced is a TrueType Collection (containing multiple font faces), the fragment portion of the URI is a 0-based index indicating which font face of the TrueType Collection should be used.
public final double getOriginX()
Gets or sets the origin x. Specifies the x coordinate of the first glyph in the run, in units of the effective coordinate space. The glyph is placed so that the leading edge of its advance vector and its baseline intersect with the point defined by the OriginX and OriginY attributes.
public final void setOriginX(double value)
Gets or sets the origin x. Specifies the x coordinate of the first glyph in the run, in units of the effective coordinate space. The glyph is placed so that the leading edge of its advance vector and its baseline intersect with the point defined by the OriginX and OriginY attributes.
public final double getOriginY()
Gets or sets the origin y. Specifies the y coordinate of the first glyph in the run, in units of the effective coordinate space. The glyph is placed so that the leading edge of its advance vector and its baseline intersect with the point defined by the OriginX and OriginY attributes.
public final void setOriginY(double value)
Gets or sets the origin y. Specifies the y coordinate of the first glyph in the run, in units of the effective coordinate space. The glyph is placed so that the leading edge of its advance vector and its baseline intersect with the point defined by the OriginX and OriginY attributes.
public final boolean isSideways()
Gets or sets a value indicating whether is sideways. Indicates that a glyph is turned on its side, with the origin being defined as the top center of the unturned glyph.
public final void setSideways(boolean value)
Gets or sets a value indicating whether is sideways. Indicates that a glyph is turned on its side, with the origin being defined as the top center of the unturned glyph.
public final String getIndices()
Gets or sets the indices. Specifies a series of glyph indices and their attributes used for rendering the glyph run. If the UnicodeString attribute of the Glyphs element is not specified or contains an empty value (“” or “{ }”), and if the Indices attribute is not specified or contains no glyph indices, then a consumer MUST instantiate an error condition.
public final void setIndices(String value)
Gets or sets the indices. Specifies a series of glyph indices and their attributes used for rendering the glyph run. If the UnicodeString attribute of the Glyphs element is not specified or contains an empty value (“” or “{ }”), and if the Indices attribute is not specified or contains no glyph indices, then a consumer MUST instantiate an error condition.
public final String getUnicodeString()
Gets or sets the unicode string. Contains the string of text rendered by the Glyphs element. The text is specified as Unicode code points. If the UnicodeString attribute of the Glyphs element is not specified or contains an empty value (“” or “{ }”), and if the Indices attribute is not specified or contains no glyph indices, then a consumer MUST instantiate an error condition.
public final void setUnicodeString(String value)
Gets or sets the unicode string. Contains the string of text rendered by the Glyphs element. The text is specified as Unicode code points. If the UnicodeString attribute of the Glyphs element is not specified or contains an empty value (“” or “{ }”), and if the Indices attribute is not specified or contains no glyph indices, then a consumer MUST instantiate an error condition.
public final String getStyleSimulations()
Gets or sets the style simulations. Specifies a style simulation. Valid values are None, ItalicSimulation, BoldSimulation, and BoldItalicSimulation.
public final void setStyleSimulations(String value)
Gets or sets the style simulations. Specifies a style simulation. Valid values are None, ItalicSimulation, BoldSimulation, and BoldItalicSimulation.
public final String getRenderTransform()
Gets or sets the render transform. Establishes a new coordinate frame for the glyph run specified by the Glyphs element. The render transform affects clip, opacity mask, fill, x origin, y origin, the actual shape of individual glyphs, and the advance widths. The render transform also affects the font size and values specified in the Indices attribute.
public final void setRenderTransform(String value)
Gets or sets the render transform. Establishes a new coordinate frame for the glyph run specified by the Glyphs element. The render transform affects clip, opacity mask, fill, x origin, y origin, the actual shape of individual glyphs, and the advance widths. The render transform also affects the font size and values specified in the Indices attribute.
public final String getClip()
Gets or sets the clip. Limits the rendered region of the element. Only portions of the Glyphs element that fall within the clip region (even partially clipped characters) produce marks on the page.
public final void setClip(String value)
Gets or sets the clip. Limits the rendered region of the element. Only portions of the Glyphs element that fall within the clip region (even partially clipped characters) produce marks on the page.
public final double getOpacity()
Gets or sets the opacity. Defines the uniform transparency of the glyph element. Values range from 0 (fully transparent) to 1 (fully opaque), inclusive.Values outside of this range are invalid.
public final void setOpacity(double value)
Gets or sets the opacity. Defines the uniform transparency of the glyph element. Values range from 0 (fully transparent) to 1 (fully opaque), inclusive.Values outside of this range are invalid.
public final String getOpacityMask()
Gets or sets the opacity mask. Specifies a mask of alpha values that is applied to the glyphs in the same fashion as the Opacity attribute, but allowing different alpha values for different areas of the element.
public final void setOpacityMask(String value)
Gets or sets the opacity mask. Specifies a mask of alpha values that is applied to the glyphs in the same fashion as the Opacity attribute, but allowing different alpha values for different areas of the element.
public final String getName()
Gets or sets the name. Contains a string value that identifies the current element as a named, addressable point in the document for the purpose of hyperlinking.
public final void setName(String value)
Gets or sets the name. Contains a string value that identifies the current element as a named, addressable point in the document for the purpose of hyperlinking.
public final String getFixedPageNavigateUri()
Gets or sets the fixed page navigate uri. Associates a hyperlink URI with the element. May be a relative reference or a URI that addresses a resource that is internal to or external to the package.
public final void setFixedPageNavigateUri(String value)
Gets or sets the fixed page navigate uri. Associates a hyperlink URI with the element. May be a relative reference or a URI that addresses a resource that is internal to or external to the package.
public final String getLanguage()
Gets or sets the language. Specifies the default language used for the current element and for any child or descendant elements. The language is specified according to RFC 3066.
public final void setLanguage(String value)
Gets or sets the language. Specifies the default language used for the current element and for any child or descendant elements. The language is specified according to RFC 3066.
Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.