JSFiddle - React, Tailwind, and code Playground
HTML
<button onclick='h-=10;r()'>-</button><button onclick='h+=10;r()'>+</button><pre id='p'></pre>
CSS
#p{font-size:2px}
JavaScript
h=200,(r=function(){for(c=document.createElement('canvas'),c.width=c.height=5000,x=c.getContext('2d'),x.font=h+'px sans-serif',x.fillText('本田技研工業株式会社',0,h),d=x.getImageData(0,0,w=h*10,h).data,s='',a=0;a<h;a++){for(b=0;b<w;b++)s+=d[3+w*4*a+4*b]?0:' ';s+='\n'}document.getElementById('p').innerHTML=s})()