{"id":276,"date":"2025-11-29T09:06:36","date_gmt":"2025-11-29T01:06:36","guid":{"rendered":"https:\/\/www.52runoob.com\/?p=276"},"modified":"2025-11-29T09:06:36","modified_gmt":"2025-11-29T01:06:36","slug":"xart-generate-art-ascii-texts","status":"publish","type":"post","link":"https:\/\/www.52runoob.com\/index.php\/2025\/11\/29\/xart-generate-art-ascii-texts\/","title":{"rendered":"XART&#8212;generate art ascii texts."},"content":{"rendered":"\n<p>Nice \u2014 here are several <strong>ready-to-use ASCII-art text options<\/strong> plus small tools (CLI \/ Python \/ Node) so you can generate any text in dozens of styles. I made multiple sample styles for the word <strong><code>XART<\/code><\/strong> so you immediately see the possibilities.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">1) Quick samples (for <code>XART<\/code>)<\/h1>\n\n\n\n<p>Standard block:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n _  __    _    ____ \n| |\/ \/   \/ \\  |  _ \\\n| &#039; \/   \/ _ \\ | |_) |\n| . \\  \/ ___ \\|  _ &amp;lt; \n|_|\\_\\\/_\/   \\_\\_| \\_\\\n\n<\/pre><\/div>\n\n\n<p>Big banner:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n __   __   ___  _____ _______ \n \\ \\ \/ \/  \/ _ \\|_   _|__   __|\n  \\ V \/  | | | | | |    | |   \n   | |   | |_| | | |    | |   \n   |_|    \\___\/  |_|    |_|   \n\n<\/pre><\/div>\n\n\n<p>Slanted\/lean:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n      __  ___   ____ \n  \/\\  |  \\\/  | |  _ \\\n \/  \\ | \\  \/ | | |_) |\n\/ \/\\ \\| |\\\/| | |  _ &amp;lt; \n_\/  \\_\\_|  |_| |_| \\_\\\n\n<\/pre><\/div>\n\n\n<p>Small\/compact:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nX A R T\n\n<\/pre><\/div>\n\n\n<p>Fancy (ASCII &#8220;bubble&#8221;):<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n  __   __   ___   ____  \n \/ \/  \/ \/  \/ _ \\ |  _ \\ \n\/ \/_ \/ \/_ | | | || |_) |\n\\___\\\\___\\|_| |_||____\/ \n\n<\/pre><\/div>\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>If you like a specific one above, I can enlarge it, tweak spacing, or make it ready for terminal\/README\/console banner.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">2) Generate any text locally \u2014 Command-line options<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">Install <code>figlet<\/code> (Linux\/macOS)<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n# Debian\/Ubuntu\nsudo apt install figlet\n\n# macOS (Homebrew)\nbrew install figlet\n\n<\/pre><\/div>\n\n\n<p>Usage:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nfiglet &quot;XART&quot;\nfiglet -f slant &quot;Generate Art&quot;\n\n<\/pre><\/div>\n\n\n<p>You can list fonts:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nfiglet -I2      # show figlet dir\nls \/usr\/share\/figlet    # fonts location (varies)\n\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">Fancy <code>toilet<\/code> (more effects)<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo apt install toilet\ntoilet -f mono12 -F metal &quot;XART&quot;\n\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">3) Python script (pyfiglet) \u2014 generate and save to file<\/h1>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n# save as make_ascii.py\nfrom pyfiglet import Figlet\nf = Figlet(font=&#039;slant&#039;)   # try: &#039;standard&#039;, &#039;big&#039;, &#039;block&#039;, &#039;slant&#039;, &#039;3-d&#039;\ntext = &quot;XART&quot;\nprint(f.renderText(text))\n\n# To save:\nwith open(&#039;xart.txt&#039;,&#039;w&#039;) as out:\n    out.write(f.renderText(text))\n\n<\/pre><\/div>\n\n\n<p>Install:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\npip install pyfiglet\npython make_ascii.py\n\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">4) Node.js quick generator<\/h1>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\/\/ node script.js\nconst figlet = require(&#039;figlet&#039;);\nfiglet.text(&#039;XART&#039;, { font: &#039;Ghost&#039; }, (err, data) =&gt; {\n  if (err) return console.error(err);\n  console.log(data);\n});\n\n<\/pre><\/div>\n\n\n<p>Install:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nnpm install figlet\nnode script.js\n\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">5) Web \/ HTML demo (inline)<\/h1>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&amp;lt;pre id=&quot;ascii&quot;&gt;&amp;lt;\/pre&gt;\n&amp;lt;script src=&quot;https:\/\/cdn.jsdelivr.net\/npm\/figlet@1.5.0\/umd\/figlet.min.js&quot;&gt;&amp;lt;\/script&gt;\n&amp;lt;script&gt;\n  figlet.loadFont(&#039;Standard&#039;, function(){\n    document.getElementById(&#039;ascii&#039;).innerText = figlet.textSync(&#039;XART&#039;, {font: &#039;Standard&#039;});\n  });\n&amp;lt;\/script&gt;\n\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">6) Want more styles \/ images?<\/h1>\n\n\n\n<p>I can:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>produce a <strong>large multi-line banner<\/strong> of any text (choose font: <code>standard<\/code>, <code>slant<\/code>, <code>big<\/code>, <code>3-d<\/code>, <code>banner<\/code>, <code>bubble<\/code>, <code>ghost<\/code>, etc.)<\/li>\n\n\n\n<li>make <strong>ASCII art logos<\/strong> (text + small decorative border)<\/li>\n\n\n\n<li>generate <strong>README-ready<\/strong> header (fixed-width, wrapped at 80 cols)<\/li>\n\n\n\n<li>create an <strong>ASCII art pack<\/strong> (PNG + text file zip) for your project<\/li>\n<\/ul>\n\n\n\n<p>Tell me <strong>one<\/strong> of the following and I\u2019ll generate it immediately (no waiting):<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>a) a large banner for a custom phrase (paste the phrase)<\/li>\n\n\n\n<li>b) choose a font from <code>standard \/ slant \/ big \/ block \/ 3-d \/ bubble \/ ghost \/ banner<\/code> and a phrase<\/li>\n\n\n\n<li>c) make a README header with phrase + subtitle (I\u2019ll format to 80 columns)<\/li>\n\n\n\n<li>d) generate an ASCII logo with border<\/li>\n<\/ul>\n\n\n\n<p>(Or just paste the phrase you want and I\u2019ll pick a few styles and return them right away.)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Nice \u2014 here are several ready-to-use ASC&#8230; <a class=\"more-link\" href=\"https:\/\/www.52runoob.com\/index.php\/2025\/11\/29\/xart-generate-art-ascii-texts\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-276","post","type-post","status-publish","format-standard","hentry","category-12"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/posts\/276","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/comments?post=276"}],"version-history":[{"count":1,"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/posts\/276\/revisions"}],"predecessor-version":[{"id":277,"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/posts\/276\/revisions\/277"}],"wp:attachment":[{"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/media?parent=276"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/categories?post=276"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/tags?post=276"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}