__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
#!/usr/bin/perl
use strict;
use warnings;
use utf8;
use Cairo;
use constant
{
WIDTH => 250,
HEIGHT => 200,
NUM_GLYPHS => 10,
TEXT => 'abcdefghij',
};
my $surface = Cairo::PdfSurface->create ('glyph-text.pdf', WIDTH, HEIGHT);
my $cr = Cairo::Context->create ($surface);
$cr->select_font_face ('sans', 'normal', 'normal');
$cr->set_font_size (40);
my @glyphs = ();
my $dx = 0;
my $dy = 0;
foreach (0 .. NUM_GLYPHS - 1) {
# This selects the first few glyphs defined in the font,
# usually C<< !"#$%&'()* >>.
my $glyph = { index => $_ + 4, x => $dx, y => $dy };
my $extents = $cr->glyph_extents ($glyph);
$dx += $extents->{x_advance};
$dy += $extents->{y_advance};
push @glyphs, $glyph;
}
# One-to-one mapping between glyphs and bytes in a string. This relies on the
# utf8 represenation of the letters in TEXT being one byte long.
my @clusters = map { {num_bytes => 1, num_glyphs => 1} } (1 .. NUM_GLYPHS);
my $height = $cr->font_extents->{height};
# Display the glyphs normally
$cr->translate (0, $height);
$cr->show_glyphs (@glyphs);
# Display the glyphs such that when you select and copy them, you actually get
# reverse of TEXT, i.e. 'jihgfedcba'.
$cr->translate (0, $height);
$cr->show_text_glyphs (TEXT, \@glyphs, \@clusters, 'backward');
$cr->show_page;
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| png | Folder | 0755 |
|
|
| freetype-font.pl | File | 761 B | 0644 |
|
| glyph-text.pl | File | 1.25 KB | 0644 |
|
| mime-unique-id.pl | File | 6.33 KB | 0755 |
|
| pdf-tagged-text.pl | File | 7.01 KB | 0755 |
|
| png-streams.pl | File | 693 B | 0644 |
|
| simple.pl | File | 1.24 KB | 0644 |
|
| subclassing.pl | File | 1.06 KB | 0644 |
|
| twisted-text.pl | File | 8.18 KB | 0644 |
|