console-table
console-table copied to clipboard
Wrong spacing with emojis
Hi ! Thanks you for this library but there is an issue with emojis in general 😄📚.
Code that breaks
<?php
require_once __DIR__ . "/../vendor/autoload.php";
$table = new LucidFrame\Console\ConsoleTable();
$table = $table
->addHeader("A")
->addHeader("B")
->addRow()
->addColumn("📚")
->addColumn("Hello")
->addRow()
->addColumn("X")
->addColumn("Foo Bared")
->display();
Expected behavior:

Actual behavior:

Environment
Shell: fish 3.3.1 PHP 8.0.12 (cli) phplucidframe/console-table: ^1.2
I have the same problem :)
Isn't this depending on the used font? Perhaps find a monospace font where smileys also occupy just 1 space