Skip to content

JSLess/Demo-Tor-Font

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Charagraphy Demo

Simple demonstration of Charagraphy,
substituting custom fonts using ASCII art.


[ Demo ]  



If the demo doesn't look like this, your
systems monospace font might be problematic.


Concept

In constraint environments - such as the Tor browser -
custom fonts are blocked ( by default ) for security reasons.

To work around this and have more styling choices, we
simply have to make our own font, to this end we can
use charagraphy ( ASCII Text Art ) to recreate certain fonts.

This demo uses the @pordeno/ascii-font library to convert
text into multiline combinations of Block Element characters
that aim to emulate the look of the old MS Sans Serif font.

Important

Without the .Text rule in Style.css the text won't look correct


How To

  • Install Deno

  • Start the server

    deno run dev
  • Open a browser at

    http://localhost:8000