pub struct PdfPageTextChar<'a> { /* private fields */ }
Expand description

A single character in a PdfPageTextChars collection.

Implementations

Returns the raw Unicode literal value for this character.

To return Rust’s Unicode char representation of this Unicode literal, use the PdfPageTextChar::unicode_char() function. To return the string representation of this Unicode literal, use the PdfPageTextChar::unicode_string() function.

Returns Rust’s Unicode char representation for this character, if available.

To return the raw Unicode literal value for this character, use the PdfPageTextChar::unicode_value() function. To return the string representation of this char, use the PdfPageTextChar::unicode_string() function.

Returns a string containing Rust’s Unicode char representation for this character, if available.

To return the raw Unicode literal value for this character, use the PdfPageTextChar::unicode_value() function. To return Rust’s Unicode char representation of this Unicode literal, use the PdfPageTextChar::unicode_char() function.

Returns the effective size of this character when rendered, taking into account both the font size applied to the character as well as any vertical scale factor applied to the character’s transformation matrix.

To retrieve only the specified font size, ignoring any vertical scaling, use the PdfPageTextChar::unscaled_font_size() function.

Returns the font size applied to this character.

Note that the effective size of the character when rendered may differ from the font size if a scaling factor has been applied to this character’s transformation matrix. To retrieve the effective font size, taking vertical scaling into account, use the PdfPageTextChar::scaled_font_size() function.

Returns the name of the font applied to this character.

Returns the weight of the font applied to this character.

Pdfium may not reliably return the correct value of this property for built-in fonts.

Returns true if all the glyphs in the font applied to this character have the same width.

Pdfium may not reliably return the correct value of this flag for built-in fonts.

Returns true if the glyphs in the font applied to this character have variable widths.

Pdfium may not reliably return the correct value of this flag for built-in fonts.

Returns true if one or more glyphs in the font applied to this character have serifs - short strokes drawn at an angle on the top or bottom of glyph stems to decorate the glyphs. For example, Times New Roman is a serif font.

Pdfium may not reliably return the correct value of this flag for built-in fonts.

Returns true if no glyphs in the font applied to this character have serifs - short strokes drawn at an angle on the top or bottom of glyph stems to decorate the glyphs. For example, Helvetica is a sans-serif font.

Pdfium may not reliably return the correct value of this flag for built-in fonts.

Returns true if the font applied to this character contains glyphs outside the Adobe standard Latin character set.

This classification of non-symbolic and symbolic fonts is peculiar to PDF. A font may contain additional characters that are used in Latin writing systems but are outside the Adobe standard Latin character set; PDF considers such a font to be symbolic.

Pdfium may not reliably return the correct value of this flag for built-in fonts.

Returns true if the font applied to this character does not contain glyphs outside the Adobe standard Latin character set.

This classification of non-symbolic and symbolic fonts is peculiar to PDF. A font may contain additional characters that are used in Latin writing systems but are outside the Adobe standard Latin character set; PDF considers such a font to be symbolic.

Pdfium may not reliably return the correct value of this flag for built-in fonts.

Returns true if the glyphs in the font applied to this character are designed to resemble cursive handwriting.

Pdfium may not reliably return the correct value of this flag for built-in fonts.

Returns true if the glyphs in the font applied to this character include dominant vertical strokes that are slanted.

Pdfium may not reliably return the correct value of this flag for built-in fonts.

Returns true if the font applied to this character contains no lowercase letters by design.

Pdfium may not reliably return the correct value of this flag for built-in fonts.

Returns true if the lowercase letters in the font applied to this character have the same shapes as the corresponding uppercase letters but are sized proportionally so they have the same size and stroke weight as lowercase glyphs in the same typeface family.

Pdfium may not reliably return the correct value of this flag for built-in fonts.

Returns true if bold glyphs in the font applied to this character are painted with extra pixels at very small font sizes.

Typically when glyphs are painted at small sizes on low-resolution devices, individual strokes of bold glyphs may appear only one pixel wide. Because this is the minimum width of a pixel based device, individual strokes of non-bold glyphs may also appear as one pixel wide and therefore cannot be distinguished from bold glyphs. If this flag is set, individual strokes of bold glyphs may be thickened at small font sizes.

Pdfium may not reliably return the correct value of this flag for built-in fonts.

Returns the text rendering mode for this character.

Returns the fill color applied to this character.

Returns the stroke color applied to this character.

Returns the rotation angle of this character, expressed in degrees.

Returns the rotation angle of this character, expressed in radians.

Returns a precise bounding box for this character, taking the character’s specific shape into account.

To return a loose bounding box that covers the entire glyph bounds, use the PdfPageTextChar::loose_bounds() function.

Returns a loose bounding box for this character, covering the entire glyph bounds.

To return a tight bounding box that takes this character’s specific shape into account, use the PdfPageTextChar::tight_bounds() function.

Returns the current horizontal and vertical translation of the origin of this character.

Returns the current horizontal translation of the origin of this character.

Returns the current vertical translation of the origin of this character.

Returns the current horizontal and vertical scale factors applied to this character.

Returns the current horizontal scale factor applied to this character.

Returns the current vertical scale factor applied to this character.

Returns the counter-clockwise rotation applied to this character, in degrees.

If the character is both rotated and skewed, the return value of this function will reflect the combined operation.

Returns the clockwise rotation applied to this character, in degrees.

If the character is both rotated and skewed, the return value of this function will reflect the combined operation.

Returns the counter-clockwise rotation applied to this character, in radians.

If the character is both rotated and skewed, the return value of this function will reflect the combined operation.

Returns the clockwise rotation applied to this character, in radians.

If the character is both rotated and skewed, the return value of this function will reflect the combined operation.

Returns the current x axis and y axis skew angles applied to this character, in degrees.

If the character is both rotated and skewed, the return value of this function will reflect the combined operation.

Returns the current x axis skew angle applied to this character, in degrees.

If the character is both rotated and skewed, the return value of this function will reflect the combined operation.

Returns the current y axis skew applied to this character, in degrees.

If the character is both rotated and skewed, the return value of this function will reflect the combined operation.

Returns the current x axis and y axis skew angles applied to this character, in radians.

If the character is both rotated and skewed, the return value of this function will reflect the combined operation.

Returns the current x axis skew applied to this character, in radians.

If the character is both rotated and skewed, the return value of this function will reflect the combined operation.

Returns the current y axis skew applied to this character, in radians.

If the character is both rotated and skewed, the return value of this function will reflect the combined operation.

Returns the origin x and y positions of this character relative to its containing page.

Returns the origin x position of this character relative to its containing page.

Returns the origin y position of this character relative to its containing page.

Returns true if the glyph shape of this character descends below the font baseline.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.