PDF-Content-raku

[Raku PDF Project] / [PDF-Content Module] / PDF::Content :: Text :: Style

class PDF::Content::Text::Style

style setting for a text box

Methods

multi method baseline-shift

multi method baseline-shift(
    "alphabetic"
) returns Numeric

compute a vertical offset for a named font alignment mode

This returns a positive or negative y-offset in units of points. The default is alphabetic, which is a zero offset.

multi method baseline-shift

multi method baseline-shift() returns Mu

get/set a numeric font vertical alignment offset

method space-width

method space-width() returns Mu

return the scaled width of spaces

method underline-position

method underline-position() returns Mu

return the scaled underline position

method underline-thickness

method underline-thickness() returns Mu

return the scaled underline thickness

method font-height

method font-height(
    |c
) returns Mu

return the scaled font height