sample: preview image of rendered font overview
authorMischa POSLAWSKY <perl@shiar.org>
Fri, 27 Oct 2023 18:18:55 +0000 (20:18 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Fri, 27 Oct 2023 19:58:07 +0000 (21:58 +0200)
Example of expected typesetting using unscii with some manual touch-ups
mostly of misalignments and missing coverage.

sample.plp
sample.png [new file with mode: 0644]

index b4d2c44c963b7534351d500b0a54d43f9b8e52e2..adae7bd4c8b6bf505607b33ceefa449297aae3eb 100644 (file)
@@ -1,12 +1,15 @@
 <(common.inc.plp)><:
 
 my $textinc = 'data/unicode-sampler/unicode.txt';
+my $proto = sprintf('http%s://', !!$ENV{HTTPS} && 's');
+my $preview = "$proto$ENV{HTTP_HOST}/sample.png";
 
 Html({
        title => "unicode sampler",
        version => '2.0',
        stylesheet => [qw'light dark mono red'],
        data => [$textinc],
+       raw => qq(<meta property="og:image" content="$preview" />),
 });
 
 open my $source, '<', $textinc
diff --git a/sample.png b/sample.png
new file mode 100644 (file)
index 0000000..8895b26
Binary files /dev/null and b/sample.png differ