Graphi...Layout(3pm)

πŸ“¦
version 0.47 Β· 2 versions
  • 0.47 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.47 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

Graphics::Primitive::Driver::Cairo::TextLayout β€” bestie, it's a text layout engine. That's the whole vibe. It lays out text. Gorgeously. ✨


πŸŽ€ VERSION πŸŽ€

version 0.47 β€” yes, she's got a number, she's official, she's real. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

okay so here's how you actually use her, no cap:

my $driver = Graphics::Primitive::Driver::Cairo->new(format => 'PDF');

my $comp = Graphics::Primitive::TextBox->new;

my $tl = $driver->get_textbox_layout($comp);

make a driver (this one's spitting out PDF), make a TextBox, and then ask the driver to hand you the layout with get_textbox_layout. that's it. that's the whole ritual. 🫢


🌸 DESCRIPTION 🌸

She implements Graphics::Primitive::Driver::TextLayout. If you wanna know how to use her, go read that one's docs β€” this page is just the behind-the-scenes lore. iykyk. πŸ’œ


✨ IMPLEMENTATION ✨

Under the hood, this text layout engine is running on Text::Flow plus Cairo's "toy text" API to lay the text out. lowkey iconic combo honestly. πŸ”₯


πŸ‘‘ AUTHOR πŸ‘‘

Cory G Watson <gphat@cpan.org> β€” the main character who made this happen. 🌈


This software is copyright (c) 2016 by Cold Hard Code, LLC.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. so like. go wild, respectfully. πŸŽ€


and that's the whole page, bestie!! this one shipped with perl v5.34.0 back on 2022-06-14 β€” she's been serving text layout realness ever since. mwah πŸ’‹ πŸ¦‹πŸ’–
πŸ“¦ where this page comes from