Skip to content

xero/sofancy

Repository files navigation

sofancy

a fun unicode font tool

demo

https://sofancy.0w.nz

source is here

examples

alien           แ–ปแ“แ‘˜ Sแ“ แ–ดแ—ฉแ˜‰แ‘ขแ–ป
asian           ใ„šใ„–ใ„ฉ ไธ‚ใ„– ๅƒๅ‚ๅ‡ ๅŒšใ„š
asian2          ๏พ˜ใฎใฒ ไธ‚ใฎ ๏ฝท๏พ‘ๅˆ€แ„ƒ๏พ˜
bent            ำ‹ึ…ีด ฯšึ… ฦ‘ฤ…ีฒรงีพ
bold            ๐˜๐จ๐ฎ ๐’๐จ ๐…๐š๐ง๐œ๐ฒ
bolditalic      ๐™”๐™ค๐™ช ๐™Ž๐™ค ๐™๐™–๐™ฃ๐™˜๐™ฎ
circled         โ“Žโ“žโ“ค โ“ˆโ“ž โ’ปโ“โ“โ“’โ“จ
currency        ษŽร˜ษ„ โ‚ดร˜ โ‚ฃโ‚ณโ‚ฆโ‚ตษŽ
cursive         ๐“จ๐“ธ๐“พ ๐“ข๐“ธ ๐“•๐“ช๐“ท๐“ฌ๐”‚
doublestruck    ๐•๐• ๐•ฆ ๐•Š๐•  ๐”ฝ๐•’๐•Ÿ๐•”๐•ช
flip            โ…„on ฦงo ิทษ‘ucฮป
fraktur         ๐”œ๐”ฌ๐”ฒ ๐”–๐”ฌ ๐”‰๐”ž๐”ซ๐” ๐”ถ
frakturbold     ๐–„๐–”๐–š ๐•พ๐–” ๐•ฑ๐–†๐–“๐–ˆ๐–ž
greek           ัƒฯƒฯ… ั•ฯƒ ฦ’ฮฑฮทยขัƒ
invertedsquares ๐Ÿ†ˆ๐Ÿ…พ๐Ÿ†„ ๐Ÿ†‚๐Ÿ…พ ๐Ÿ…ต๐Ÿ…ฐ๐Ÿ…ฝ๐Ÿ…ฒ๐Ÿ†ˆ
italic          ๐˜ ๐˜ฐ๐˜ถ ๐˜š๐˜ฐ ๐˜๐˜ข๐˜ฏ๐˜ค๐˜บ
mirror          ฮณoฯ… ฦงo ๊Ÿปษ’ะ˜ษ”ฮณ
mirrorflip      โ…„on So ๊“žษuษ”สŽ
mono            ๐šˆ๐š˜๐šž ๐š‚๐š˜ ๐™ต๐šŠ๐š—๐šŒ๐šข
neon            YOแ‘Œ แ”•O แ–ดแ—ฉแ‘Žแ‘•Y
squares         ๐Ÿ…ˆ๐Ÿ„พ๐Ÿ…„ ๐Ÿ…‚๐Ÿ„พ ๐Ÿ„ต๐Ÿ„ฐ๐Ÿ„ฝ๐Ÿ„ฒ๐Ÿ…ˆ
squiggle1       ืฅเนเธข เธฃเน ลฆเธ„เธ ฯ‚ืฅ
squiggle2       Yฯƒฯ… Sฯƒ Fฮฑษณฦˆแƒง
squiggle3       สึ…สŠ ึ†ึ… ส„วŸีผฦˆส
squiggle4       แŽฉแŽงแฌ แ•แŽง แŽฆแ—แแˆแŽฉ
squiggle5       แƒงฦกลณ ส‚ฦก ส„ฤ…ล‹ฦˆแƒง
squiggle6       เธฏเปเธ™ ลžเป fเธ„เบ–ยขเธฏ
subscript       Yโ‚’แตค โ‚›โ‚’ Fโ‚โ‚™cy
superscript     สธแต’แต˜ หขแต’ แถ แตƒโฟแถœสธ
symbols         ยฅรฐยต ยงรฐ ยฃรฅรฑยขยฅ
upperangle      Yำจะฆ ฦงำจ Fฮ›ะŸแ„ƒY
upsidedown      โ…„on So โ„ฒษuษ”สŽ
wide            ๏ผน๏ฝ๏ฝ• ๏ผณ๏ฝ ๏ผฆ๏ฝ๏ฝŽ๏ฝƒ๏ฝ™

usage

แฟณษ›ฤฑเฝžษ– ลณล‹ฤฑฦˆฦกษ–ษ› ส„ฦ–ษ›าณฤฑล‹ษ ? ๐Ÿ˜œ

usage: sofancy [-f (font) | -t | -r] string

 flags:
  -f|--font (font) : output in a single font
  -t|--titles      : display titles in output
  -r|--random      : pick a random font (clobbers -f)
  -c|--completions : install shell completions
  -h|--help        : display this message

 examples:
  sofancy -f wide aesthetics
๏ฝ๏ฝ…๏ฝ“๏ฝ”๏ฝˆ๏ฝ…๏ฝ”๏ฝ‰๏ฝƒ๏ฝ“
  sofancy -t some string | fzf | xsel -i
  git commit -m "$(sofancy -tr  message | sed 's/^.*  /docs: /')"

install

clone and install

git clone git@github.com:xero/sofancy.git
cd sofancy
npm i -g .

or use npm to globally install npm i -g sofancy

post install

sofancy --completions will prompt your to install the shell completion files for bash and zsh (if those bin's exist). if they fail to install to their default global locations, it will prompt you for a custom path. alternatively, you can run sudo !!

notes

on unix systems node "bins" are normally placed in /usr/local/lib/node or /usr/local/lib/node_modules unless your export a custom NODE_PATH. either way, make sure the appropriate directory is in your path.

license

kopimi logo

all files and scripts in this repo are released CC0 / kopimi! in the spirit of freedom of information, i encourage you to fork, modify, change, share, or do whatever you like with this project! ^c^v