View on GitHub

HarfBuzz-Shaper-Cairo-raku

HarfBuzz / Cairo shaping integration

[Raku HarfBuzz Project] / [HarfBuzz-Shaper-Cairo Module] / HarfBuzz::Font::Cairo

class HarfBuzz::Font::Cairo

A FreeType integrated Cairo font

Methods

new

    multi method new(Font::FreeType::Face:D :$ft-face!, *%opts)
    multi method new(Str:D :$file!, *%opts)

Creates an object from a FreeType::face object, or a file to be loaded as a FreeType::face object.

shaping-font

method shaping-font returns HarfBuzz::Font::FreeType

Returns the built HarfBuzz::Font::FreeType object.